-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
42 lines (40 loc) · 1.31 KB
/
Copy pathheader.php
File metadata and controls
42 lines (40 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<header style="
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
background-color: #ffffff;
border-bottom: 3px solid #003366;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
">
<div style="display: flex; align-items: center; gap: 20px;">
<img src="icon.png" alt="University Logo" style="height: 50px;">
<div>
<h1 style="font-size: 20px; color: #003366; margin: 0; text-transform: uppercase;">
Your Institute Name
</h1>
<p style="font-size: 12px; color: #666; margin: 0;">Hostel Management Services</p>
</div>
</div>
<div id="real-time" style="
font-size: 15px;
font-weight: 600;
color: #444;
background: #f0f2f5;
padding: 8px 15px;
border-radius: 5px;
">
</div>
</header>
<script>
function updateClock() {
const now = new Date();
const options = {
weekday: 'long', year: 'numeric', month: 'short',
day: 'numeric', hour: '2-digit', minute: '2-digit', second: '2-digit'
};
document.getElementById('real-time').innerText = now.toLocaleString('en-US', options);
}
setInterval(updateClock, 1000);
updateClock();
</script>