-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·74 lines (66 loc) · 2.92 KB
/
Copy pathindex.html
File metadata and controls
executable file
·74 lines (66 loc) · 2.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mobile Clock</title>
<link href="/assets/clock.css" rel="stylesheet" type="text/css">
<link href="/assets/main.css" rel="stylesheet" type="text/css">
<link href="/assets/eggs.css" rel="stylesheet" type="text/css">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EGBMJBFWQF"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-EGBMJBFWQF');
</script>
<link rel="apple-touch-icon" sizes="180x180" href="./images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon-16x16.png">
<link rel="manifest" type="application/manifest+json" href="./site.webmanifest">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta id="meta-title" property="og:title" content="Mobile Clock">
<meta id="meta-desc" property="og:description"
content="A basic mobile clock web app with 400+ different backgrounds. You don't get to choose though. Tap the Share button and press Add to Home Screen to use it as a PWA.">
<meta id="meta-image" name="og:image" itemprop="image"
content="https://raw.githubusercontent.com/Reper2/switch-album/acnh/2021020916540700_c.jpg">
<meta property="og:site_name" content="Mobile Clock | reper2.github.io">
<meta property="twitter:card" content="summary_large_image">
<meta name="theme-color" content="#14d8ee">
<script src="/app/lib/jquery-4.0.0.min.js" defer></script>
<script>
// Block rendering for a millisecond to pull the theme before the DOM draws
if (localStorage.getItem("site-theme") === "alt") {
const link = document.createElement("link");
link.id = "theme-link";
link.rel = "stylesheet";
link.href = "/assets/alt-theme.css";
document.head.appendChild(link);
} else if (!localStorage.getItem("site-theme")) {
localStorage.setItem("site-theme", "alt");
}
</script>
</head>
<body id="_bg" data-bg-force="holidays">
<div class="egg" data-egg="mClock_aboveHeader"></div>
<header>Mobile Clock</header>
<main>
<div class="egg" data-egg="mClock_aboveClock"></div>
<span id="clock"></span>
</main>
<div class="egg" data-egg="mClock_aboveFooter"></div>
<footer id="footer" class="bottom"></footer>
</body>
<script type="module" src="/app/dist/index.js"></script>
<script defer>
const clock = document.getElementById("clock");
function updateClock() {
const now = new Date();
clock.textContent = now.toLocaleTimeString();
/* ms remaining until next second */
const delay = 1000 - now.getMilliseconds();
setTimeout(updateClock, delay);
}
updateClock();
</script>
</html>