-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (90 loc) · 3.3 KB
/
index.html
File metadata and controls
104 lines (90 loc) · 3.3 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
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
<!DOCTYPE html>
<html>
<head>
<title>0x6d656c61726269</title>
<style>
body {
background-image: url('images/0x6d656c61726269_new.jpg');
background-repeat: repeat;
font-family: 'Times New Roman', serif;
color: #333;
text-align: center;
padding: 20px;
}
.container {
width: 80%;
margin: auto;
overflow: hidden;
}
.photo {
float: left;
width: 30%;
padding: 10px;
box-shadow: 5px 5px 10px #888;
margin: 10px;
border: 1px solid #ddd;
transition: transform .2s;
}
.photo:hover {
transform: scale(1.1);
}
/* style for the date (serves as the title) */
#currentDate {
font-size: 24px;
text-decoration: underline;
color: #555;
margin-bottom: 10px;
}
/* style for the UTC and EPOCH time */
#utcTime,
#epochTime {
font-size: 16px;
color: #666;
margin-top: 5px;
}
</style>
</head>
<body>
<!-- div for displaying the date (serves as the title) -->
<div id="currentDate"></div>
<!-- divs for displaying the UTC time and epoch time -->
<div id="utcTime"></div>
<div id="epochTime"></div>
<!-- div for displaying the images -->
<div class="container">
<img src="images/thetuss_logo.jpg" alt="Photo" class="photo">
<img src="images/small_brown_rabbit.JPG" alt="Photo" class="photo">
<img src="images/vintage_filter_pink_clematis_fence.JPG" alt="Photo" class="photo">
<img src="images/scott_pilgrim.jpeg" alt="Photo" class="photo">
<img src="images/street_cleaner_sweeping_leaves.JPG" alt="Photo" class="photo">
<img src="images/highlighted_white_cat_stairs.JPG" alt="Photo" class="photo">
<img src="images/palmistry_tinkerbell_logo.JPG" alt="Photo" class="photo">
</div>
<!-- jS for updating the date, UTC time, and epoch time -->
<script>
function updateDate() {
const now = new Date();
const estTime = new Date(now.toLocaleString('en-US', { timeZone: 'America/New_York' }));
const year = estTime.getFullYear();
const month = String(estTime.getMonth() + 1).padStart(2, '0');
const day = String(estTime.getDate()).padStart(2, '0');
const formattedDate = `${year}${month}${day}`;
document.getElementById("currentDate").innerText = formattedDate;
}
function updateUTCTime() {
const now = new Date();
const utcTime = now.toUTCString().slice(17, 25); // extract only the time part
document.getElementById("utcTime").innerText = utcTime;
}
function updateEpochTime() {
const now = new Date();
const epochTime = Math.floor(now.getTime() / 1000);
document.getElementById("epochTime").innerText = epochTime;
}
updateDate();
setInterval(updateDate, 24 * 60 * 60 * 1000);
setInterval(updateUTCTime, 1000); // update UTC time every second
setInterval(updateEpochTime, 1000); // update Unix Epoch Time every second
</script>
</body>
</html>