-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
57 lines (51 loc) · 1.5 KB
/
index.html
File metadata and controls
57 lines (51 loc) · 1.5 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
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="memory.css">
<link rel="manifest" href="manifest.json">
<title>Memory</title>
</head>
<body>
<h1>Memory</h1>
<div>
<p>Mosse totali: <span id="nMoves">0</span></p>
</div>
<div id="menu">
<button id="reset">Reset</button>
</div>
<div id="grid">
<div id="row-1">
<button id="btn-0"> </button>
<button id="btn-1"> </button>
<button id="btn-2"> </button>
<button id="btn-3"> </button>
</div>
<div id="row-2">
<button id="btn-4"> </button>
<button id="btn-5"> </button>
<button id="btn-6"> </button>
<button id="btn-7"> </button>
</div>
<div id="row-3">
<button id="btn-8"> </button>
<button id="btn-9"> </button>
<button id="btn-10"> </button>
<button id="btn-11"> </button>
</div>
<div id="row-4">
<button id="btn-12"> </button>
<button id="btn-13"> </button>
<button id="btn-14"> </button>
<button id="btn-15"> </button>
</div>
</div>
<script src="memory.js"></script>
<script>
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', { scope: '/' });
}
</script>
</body>
</html>