-
Notifications
You must be signed in to change notification settings - Fork 1
/
time.html
373 lines (366 loc) · 17 KB
/
time.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<!doctype html>
<html lang="en" data-bs-theme="dark" class="spaceBG">
<script>
//let me guess, you want to see the source code?
//i'm not insane, there are comments here
//you can go see them at https://github.com/rungulus/runguszone/
//ok bye
</script>
<head>
<!-- these meta tags cannot be nested in a module, so they're out here -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>time converter - rungus zone</title>
<meta name="title" content="rungus zone" />
<meta charset="utf-8">
<meta name="description" content="whats the time on mars" />
<!-- preload critical css first -->
<!-- long stylesheet time! -->
<link rel="stylesheet" href="https://cdn.rungus.zone/v4/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.rungus.zone/v4/css/custom.css">
<!-- defer backdrop and icons -->
<link rel="preload" href="https://cdn.rungus.zone/v4/css/backdroponly.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdn.rungus.zone/v4/css/backdroponly.css"></noscript>
<link rel="preload" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css"></noscript>
<tags>
<!-- opengraph -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https://rungus.zone/time" />
<meta property="og:title" content="time converter - rungus zone" />
<meta property="og:description" content="whats the time on mars" />
<meta property="og:image" content="https://cdn.rungus.zone/profile.gif" />
<!-- twitter -->
<!-- of course twitter has their own -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://rungus.zone/time" />
<meta property="twitter:title" content="time converter - rungus zone" />
<meta property="twitter:description" content="whats the time on mars" />
<meta property="twitter:image" content="https://cdn.rungus.zone/profile.gif" />
</tags>
<script src="https://cdn.rungus.zone/cow/private.js"></script>
<script src="https://cdn.rungus.zone/cow/cow.js" defer></script>
<!-- <link rel="stylesheet" href="https://cdn.rungus.zone/cow/cow.css"> -->
<style>
.cowhold {
height: 100vh;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: black;
color: white;
font-size: 1.5vh;
}
pre {
font-family: monospace;
white-space: pre;
margin: 0;
}
</style>
</head>
</head>
<lg-sidebar class="stickyBar z-3 d-none d-lg-block alert">
<!-- i wrangled with css and bootstrap for like 2 days to get this to work good -->
<!-- turns out im a dumbass, there is no margin-left (ml) in bootstrap, its ms for margin-start! -->
<!-- why? who the hell knows -->
<div class="p-0 ps-1 pt-3 pb-1 btn btn-dark">
<div>
<div class="runguszone">
<span class="sidewaysText">
<span class="fs-2">
<span style="color:#69f0ae">r</span>ungus<span class="text-muted">.zone</span>
</span>
<div class="fs-3">
<a class="bi-youtube link-danger pt-1 mb-n" href="https://www.youtube.com/@rungus" aria-label="youtube"></a>
<!-- for some reason youtube has a big margin on the bottom -->
<a class="bi bi-discord link-primary pt-1 m-0" href="https://discord.gg/2VuJFdEcwM" aria-label="discord"></a>
<a rel="me" class="bi bi-mastodon link-success pt-1 m-0" href="https://wetdry.world/@rungus" aria-label="mastodon"></a>
<a class="bi bi-twitter link-info pt-1 m-0" href="https://twitter.com/rungulus" aria-label="twitter"></a>
<a class="bi bi-github link-light pt-1 m-0" href="https://github.com/rungulus" aria-label="github"></a>
</div>
</span>
</div>
</div>
<hr class="m-0 mt-2 me-1 p-0">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical btn-group-sm">
<a class="btn btn-danger" href="https://rungusrungus.tumblr.com/" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-pencil-square"></i>
<span class="smallLink">blog</span>
</a>
<a class="btn btn-light" href="https://news.rungus.zone" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-newspaper"></i>
<span class="smallLink">rungnews</span>
</a>
<a class="btn btn-primary" href="https://rungus.zone/randomizer">
<i class="bi bi-shuffle"></i>
<span class="smallLink">randomizer</span>
</a>
<a class="btn btn-warning" href="https://rungus.zone/time">
<i class="bi bi-clock-history"></i>
<span class="smallLink">time</span>
</a>
<a class="btn btn-dark" href="https://rungus.zone/type">
<i class="bi bi-body-text"></i>
<span class="smallLink">type here</span>
</a>
<a class="btn btn-success" href="https://rungus.zone/cow">
<i class="bi bi-chat-quote"></i>
<span class="smallLink">cow advice</span>
</a>
</div>
<hr class="m-0 mt-1 mb-0 me-1 p-0">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical btn-group-sm">
<a class="btn btn-secondary" href="https://rungus.zone/">
<i class="bi bi-house-fill"></i>
<span class="smallLink">back home</span>
</a>
</div>
</div>
<!-- this is probably terrible on *really* ultrawide monitors -->
</lg-sidebar>
<!-- sm-md sidebar (tablets, some laptops) -->
<s-sidebar class="stickyBar z-3 d-lg-none d-sm-block d-none m-1">
<div class="p-0 ps-1 pt-3 pb-1 btn btn-dark" type="button" data-bs-toggle="collapse" data-bs-target="#s-sidebarLinks">
<div>
<div class="runguszone ps-1">
<span class="sidewaysText">
<span class="fs-2">
<span style="color:#69f0ae">r</span>ungus<span class="text-muted">.zone</span>
</span>
</span>
</div>
</div>
<div class="collapse navbar-collapse" id="s-sidebarLinks">
<hr class="m-0 mt-2 me-1 p-0">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical">
<a class="btn btn-danger" href="https://rungusrungus.tumblr.com/" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-pencil-square"></i>
<br>
</a>
<a class="btn btn-light" href="https://news.rungus.zone" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-newspaper"></i>
<br>
</a>
<a class="btn btn-primary" href="https://rungus.zone/randomizer">
<i class="bi bi-shuffle"></i>
<br>
</a>
<a class="btn btn-warning" href="https://rungus.zone/time">
<i class="bi bi-clock-history"></i>
<br>
</a>
<a class="btn btn-dark" href="https://rungus.zone/type">
<i class="bi bi-body-text"></i>
</a>
<a class="btn btn-success" href="https://rungus.zone/cow">
<i class="bi bi-chat-quote"></i>
<br>
</a>
</div>
<hr class="m-0 mt-1 mb-0 me-1 p-0">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical btn-group-sm">
<a class="btn btn-secondary" href="https://rungus.zone/">
<i class="bi bi-house-fill"></i>
<span class="smallLink"></span>
</a>
</div>
<hr class="m-0 mt-2 me-1 p-0">
<div class="fs-3 btn-group-vertical d-grid mt-1 pe-1 pb-1 pt-1">
<a class="bi-youtube link-danger pt-1 mb-n" href="https://www.youtube.com/@rungus" aria-label="youtube"></a>
<a class="bi bi-discord link-primary pt-1 m-0" href="https://discord.gg/2VuJFdEcwM" aria-label="discord"></a>
<a rel="me" class="bi bi-mastodon link-success pt-1 m-0" href="https://wetdry.world/@rungus" aria-label="mastodon"></a>
<a class="bi bi-twitter link-info pt-1 m-0" href="https://twitter.com/rungulus" aria-label="twitter"></a>
<a class="bi bi-github link-light pt-1 m-0" href="https://github.com/rungulus" aria-label="github"></a>
</div>
</div>
</div>
</s-sidebar>
<!-- xs sidebar (phones) -->
<xs-sidebar class="stickyBar z-3 d-lg-none d-sm-none d-block m-1">
<div class="p-0 pe-1 pb-1 btn btn-dark" type="button" data-bs-toggle="collapse" data-bs-target="#xs-sidebarLinks">
<div>
<div class="runguszone ms-3 me-3 text-center">
<span class="text-center">
<span class="fs-2 text-center ps-1">
<span style="color:#69f0ae">r</span><span class="text-muted">z</span>
</span>
</span>
</div>
</div>
<div class="collapse navbar-collapse" id="xs-sidebarLinks">
<hr class="m-0 mt-2 me-1 p-0 ms-1">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical ms-1 m-0 p-0">
<a class="btn btn-danger" href="https://rungusrungus.tumblr.com/" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-pencil-square"></i>
<br>
</a>
<a class="btn btn-light" href="https://news.rungus.zone" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="Tooltip on right">
<i class="bi bi-newspaper"></i>
<br>
</a>
<a class="btn btn-primary" href="https://rungus.zone/randomizer">
<i class="bi bi-shuffle"></i>
<br>
</a>
<a class="btn btn-warning" href="https://rungus.zone/time">
<i class="bi bi-clock-history"></i>
<br>
</a>
<a class="btn btn-dark" href="https://rungus.zone/type">
<i class="bi bi-body-text"></i>
</a>
<a class="btn btn-success" href="https://rungus.zone/cow">
<i class="bi bi-chat-quote"></i>
<br>
</a>
</div>
<hr class="m-0 mt-1 mb-0 me-1 p-0">
<div class="text-center d-grid mt-1 pe-1 pb-1 pt-1 btn-group-vertical btn-group-sm">
<a class="btn btn-secondary" href="https://rungus.zone/">
<i class="bi bi-house-fill"></i>
<span class="smallLink"></span>
</a>
</div>
<hr class="m-0 mt-2 me-1 p-0 ms-1">
<div class="fs-3 btn-group-vertical d-grid mt-1 pe-1 pb-1 pt-1">
<a class="bi-youtube link-danger pt-1 mb-n" href="https://www.youtube.com/@rungus" aria-label="youtube"></a>
<a class="bi bi-discord link-primary pt-1 m-0" href="https://discord.gg/2VuJFdEcwM" aria-label="discord"></a>
<a rel="me" class="bi bi-mastodon link-success pt-1 m-0" href="https://wetdry.world/@rungus" aria-label="mastodon"></a>
<a class="bi bi-twitter link-info pt-1 m-0" href="https://twitter.com/rungulus" aria-label="twitter"></a>
<a class="bi bi-github link-light pt-1 m-0" href="https://github.com/rungulus" aria-label="github"></a>
</div>
</div>
</div>
</xs-sidebar>
<!-- the body -->
<body>
<div class="container-fluid z-n1 position-absolute">
<!-- this way edits on the sidebars do not affect placement of elements on the main area -->
<div class="container">
<pagelogo>
<div class="container">
<!-- top of screen info, used for a welcome message and rungus zone yeah cool -->
<div class="">
<p class="text-center m-0"><span class="runguszone text-light siteText">time conve<span style="color:#69f0ae">r</span>ter</span></span></p>
</div>
<!-- can use this for announcements -->
<announcement>
<!-- <nocss class="nocss text-center mt-n">
<p class="text-center mt-n mb-n2">seems like everything didn't load successfully<br>
you should try refreshing</p>
</nocss> -->
</announcement>
</div>
</pagelogo>
</pagelogo>
<maincontent>
<div class="container alert frostedglass">
<div class="row">
<div class="col-auto">
<p id="earthTime" class="runguszone fs-1">loading<span class="spinner-border" role="status"></span></p>
<p id="earthMDY" class="runguszone fs-2">local date</p>
<p class="lead">that's the current time, according to your device</p>
</div>
<div class="col-auto">
<p id="marsTime" class="runguszone fs-1">loading<span class="spinner-border" role="status"></span></p>
<p id="marsMDY" class="runguszone fs-2">mars date</p>
<p class="lead">time (and date) on mars</p>
</div>
</div>
</div>
<div class="container alert frostedglass">
<p class="fs-3 runguszone" class="runguszone">america (mainland)</p>
<div class="row">
<div class="col-auto">
<p class="fs-1 runguszone" id="-5">eastern time</h1>
<p>eastern time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="-6">central time</h1>
<p>central time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="-7">mountain time</h1>
<p>mountain time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="-8">pacific time</h1>
<p>pacific time</p>
</div>
</div></div>
<div class="container alert frostedglass">
<p class="fs-3 runguszone" class="fs-3 runguszone">europe</p>
<div class="row">
<div class="col-auto">
<p class="fs-1 runguszone" id="0">uk time</h1>
<p>uk time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="2">france time</h1>
<p>france time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="1">netherlands time</h1>
<p>netherlands time</p>
</div>
</div></div>
<div class="container alert frostedglass">
<p class="fs-3 runguszone">australia</p>
<div class="row">
<div class="col-auto">
<p class="fs-1 runguszone" id="8">western time</h1>
<p>western australia time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="9">adelaide time</h1>
<p>central time</p>
</div>
<div class="col-auto">
<p class="fs-1 runguszone" id="10">the rest time</h1>
<p>the rest of australia</p>
</div>
</div>
</maincontent>
</div>
<div class="container alert frostedglass">
<span class="runguszone" style="margin-bottom:-0.2rem;">
<a href="https://rungus.zone/terms" class="alert-link">tos</a> -
<a href="https://cdn.rungus.zone" class="alert-link">cdn</a>
<span class="position-absolute top-50 start-50 translate-middle">
<i class="bi bi-heart-fill"></i> -
<i class="bi bi-github"></i>
<i class="bi bi-bootstrap"></i>
<i class="bi bi-google"></i></span>
<span class="float-end">© rungus</span>
</div>
</div>
</div>
</body>
<script src="https://cdn.rungus.zone/v3/js/marsdate.js"></script>
<script>
//look, im sorry i looked very hard for the math to actually do this on my own, but i couldnt find it
//eventually i stumbled upon a lovely library to do this for me
//im sorry gamers
function doMarsTime(){
var earthTimestamp = Date.now();
var marsDate = new MarsDate(earthTimestamp);
var marsTime = new MarsDate(earthTimestamp);
document.getElementById("marsMDY").innerHTML = (marsDate.formatDate("dddd"+ ", " + "mmmm d yyyy"));
document.getElementById("marsTime").innerHTML = (marsDate.formatDate("hh:MM:ss tt"));
}
function doEarthTime(){
var earthDate = new Date()
document.getElementById("earthMDY").innerHTML = (earthDate.toLocaleDateString('en-us', { weekday:"long", year:"numeric", month:"long", day:"numeric"}));
document.getElementById("earthTime").innerHTML = (earthDate.toLocaleTimeString('en-US'));
}
function doTime(){
//20 years in the joint made you a FUCKING pussy!
doEarthTime(); //EARTH NUMBA ONE
doMarsTime(); //SUCK IT REDS
}
setInterval(doTime, 1000);
window.onload(doTime);
</script>
<script src="https://cdn.rungus.zone/main/js/time.js"></script>
</html>