forked from alirahimi818/simple-PWA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (44 loc) · 1.99 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Digital clock</title>
<meta name="description" content="Minimal, digital clock with always-on screen. Add to your homescreen for easy access.">
<meta property="og:title" content="Digital clock" />
<meta property="og:image" content="img/clock.png" />
<meta property="twitter:title" content="Digital clock" />
<meta property="twitter:description" content="Minimal, digital clock with always-on screen. Add to your homescreen for easy access." />
<meta property="twitter:image" content="img/clock.png" />
<meta name="msapplication-TileColor" content="#af0a1a">
<meta name="theme-color" content="#ffffff">
<link rel="shortcut icon" href="img/clock.png">
<link rel="apple-touch-icon" href="img/clock.png">
<link rel="manifest" href="pwa-manifest.json">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<script type='text/javascript' src="main.js"></script>
<script type='text/javascript' src="clock.js"></script>
<script type='text/javascript' src="a2hs.js"></script>
</head>
<body>
<main class="clock">
<div id="hour" class="digits">01</div>
<div class="separator">:</div>
<div id="minute" class="digits">23</div>
<div class="separator">:</div>
<div id="second" class="digits">45</div>
</main>
<footer>
<div id="a2hs">
<span>add to home screen?</span>
<span class="btn" onclick="addToHomeScreen()"> yes </span>
<span> / </span>
<span class="btn" onclick="dismissA2hsPrompt()"> no </span>
</div>
</footer>
</body>
</html>