-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLO.html
More file actions
91 lines (85 loc) · 2.57 KB
/
LO.html
File metadata and controls
91 lines (85 loc) · 2.57 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>Trackle™ - The Tube Guessing Game</title>
<link rel="manifest" href="/manifest.json" />
<meta
name="description"
content="How many tube stations can you name? Find out by playing Trackle™."
/>
<link rel="stylesheet" href="/LO/style.css" />
<link
rel="icon"
type="image/x-icon"
href="/favicon.ico"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<script
src="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""
></script>
<script src="/LO/main.js" type="text/javascript"></script>
<script src="/LO/places.js" type="text/javascript"></script>
<script src="/LO/game.js" type="text/javascript"></script>
<script>
window.onload = loadPage;
</script>
</head>
<body>
<div class="game">
<div class="header">
<div id="instructions">
<h1>Trackle™ - London Overground</h1>
<h2>How many London Overground stations can you guess?</h2>
</div>
</div>
<div id="mapContainer">
<div id="map"></div>
<div class="formContainer">
<div class="form">
<input id="guess" type="text" placeholder="Enter a station here" />
<button class="enterButton" onclick="enterGuess()">Guess</button>
<button class="resetButton" onclick="app.resetGame()">
Reset Game
</button>
</div>
</div>
</div>
</div>
<div class="pageOverlay">
<div id="scoreContainer">
Your score:
<strong><span id="score"></span> / <span id="total"></span></strong>
</div>
<div class="credits">
<p>©️ SHB 2024</p>
</div>
</div>
<script>
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("/service-worker.js")
.then((registration) => {
console.log(
"Service Worker registered with scope:",
registration.scope
);
})
.catch((error) => {
console.error("Service Worker registration failed:", error);
});
}
</script>
</body>
</html>