-
Notifications
You must be signed in to change notification settings - Fork 9
/
events.html
111 lines (108 loc) · 2.77 KB
/
events.html
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NST-SDC</title>
<link rel="stylesheet" href="/event.css">
</head>
<body>
<div class="body">
<!-------------header------------>
<header>
<h1>NST-SDC</h1>
<h3>Code, Create, Connect!</h3>
<div id="date-time"></div>
</header>
<hr>
<div class="nav">
<div class="nav-item">
<a href="/home.html">Home</a>
</div>
<div class="nav-item">
<a href="/about.html">About</a>
</div>
<div class="nav-item">
<a href="/events.html">Events</a>
</div>
<div class="nav-item">
<a href="/gallery.html">Gallery</a>
</div>
<div class="nav-item">
<a href="/contact.html">Contact</a>
</div>
</div>
<!-------------/header/------------>
<hr>
<!-- upcoming events -->
<div class="upevent">
<h2><u>Upcoming Events</u></h2>
<div class="upevent-item">
<img src="/photos/event1.jpeg">
<h3>Event 1</h3>
</div>
<div class="upevent-item">
<img src="/photos/event2.jpeg">
<h3>Event 2</h3>
</div>
<div class="upevent-item">
<img src="/photos/event3.jpeg">
<h3>Event 3</h3>
</div>
</div>
<!--/upcoming events -->
<!-- pastevents -->
<div class="pastevent">
<h2><u>Past Events</u></h2>
<div class="paevent">
<img src="/photos/event1.jpeg">
<h3>Event 1</h3>
</div>
<div class="paevent">
<img src="/photos/event2.jpeg">
<h3>Event 2</h3>
</div>
<div class="paevent">
<img src="/photos/event3.jpeg">
<h3>Event 3</h3>
</div>
</div>
<!--/pastevents -->
<!--footer -->
<div class="footer">
<footer>
<div class="footer-content">
<p>© 2024 NST-SDC: All rights reserved</p>
<div class="social-icons">
<img src="/photos/github.png" alt="GitHub" class="img">
<img src="/photos/instagram.png" alt="Instagram" class="img">
<img src="/photos/discord.png" alt="Discord" class="img">
<img src="/photos/youtube.png" alt="YouTube" class="img">
</div>
</div>
</footer>
</div>
<!--/footer -->
</div>
</body>
<script>
// Function to update date and time
function updateDateTime() {
const now = new Date();
const options = {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit'
};
document.getElementById('date-time').textContent = now.toLocaleDateString('en-US', options);
}
// Initial call to set the date and time
updateDateTime();
// Update the time every second
setInterval(updateDateTime, 1000);
</script>
</html>