-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (40 loc) · 1.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cards</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png">
<link rel="mask-icon" href="icons/safari-pinned-tab.svg" color="#5bc881">
<meta name="apple-mobile-web-app-title" content="Cards">
<meta name="application-name" content="Cards">
<meta name="msapplication-TileColor" content="#5bc881">
<meta name="theme-color" content="#5bc881">
<style>
main {opacity: 0}
script + main {opacity: unset}
</style>
</head>
<body>
<main style>
<a href="#" title="Start a new game" class="refresh">⟳</a>
<a href="#" title="How long have I been playing?" class="time">⧖</a>
</main>
<script>
const n = 'cards' + (window.location.search && window.location.search.includes('classic') ? '_classic' : '');
let mf = document.createElement('link');
let c = document.createElement('link');
let j = document.createElement('script');
mf.setAttribute('rel', 'manifest');
c.setAttribute('rel', 'stylesheet');
mf.href = 'icons/' + n + '.webmanifest';
c.href = n + '.css';
j.src = n + '.js';
document.head.append(mf);
document.head.append(c);
document.body.prepend(j);
</script>
</body>
</html>