Skip to content

Commit 1534605

Browse files
authored
Update tube.html
1 parent d163daf commit 1534605

File tree

1 file changed

+34
-50
lines changed

1 file changed

+34
-50
lines changed

tube.html

Lines changed: 34 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<link rel="manifest" href="/manifest.json" />
4+
<link rel="manifest" href="/manifest.json" />
55
<meta charset="UTF-8" />
6-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>London Underground | Trackle™</title>
8-
<meta name="theme-color" content="#000f9f" /> <!-- Default theme color for light mode -->
96
<link
10-
rel="icon"
11-
type="image/x-icon"
12-
href="/logo.png"
7+
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap"
8+
rel="stylesheet"
139
/>
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
11+
<title>London Underground | Trackle™</title>
12+
<meta name="theme-color" content="#ee7c0e" />
13+
<link rel="icon" type="image/x-icon" href="/logo.png" />
1414

1515
<style>
1616
iframe {
@@ -28,24 +28,29 @@
2828
</style>
2929
<script>
3030
function updateThemeColor() {
31-
const metaThemeColor = document.querySelector("meta[name='theme-color']");
32-
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
31+
const metaThemeColor = document.querySelector(
32+
"meta[name='theme-color']"
33+
);
34+
const isDarkMode = window.matchMedia(
35+
"(prefers-color-scheme: dark)"
36+
).matches;
3337

3438
// Update the content based on the current theme
3539
if (isDarkMode) {
36-
metaThemeColor.setAttribute("content", "#00004D"); // Dark blue for dark theme
40+
metaThemeColor.setAttribute("content", "#BD4B00"); // Dark purple for dark theme
3741
} else {
38-
metaThemeColor.setAttribute("content", "#000f9f"); // Light blue for light theme
42+
metaThemeColor.setAttribute("content", "#ee7c0e"); // Original purple for light theme
3943
}
4044
}
4145

4246
// Run the function to set the initial theme color
4347
updateThemeColor();
4448

4549
// Listen for changes in theme preference
46-
window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", updateThemeColor);
50+
window
51+
.matchMedia("(prefers-color-scheme: dark)")
52+
.addEventListener("change", updateThemeColor);
4753
</script>
48-
4954
<link
5055
rel="stylesheet"
5156
href="https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.css"
@@ -68,49 +73,28 @@
6873
<body>
6974
<div class="game">
7075
<div class="header">
71-
<div id="instructions">
72-
<h1>Trackle™ - London Underground</h1>
73-
<h2>How many Underground stations can you guess?</h2>
74-
</div>
76+
<a href="/home.html"><button class="backButton">Back</button></a>
77+
<center><h1>London Underground</h1></center>
78+
<button class="resetButton" onclick="app.resetGame()">Reset</button>
7579
</div>
7680

7781
<div id="mapContainer">
7882
<div id="map"></div>
79-
<div class="formContainer">
80-
<div class="form">
81-
<input id="guess" type="text" placeholder="Enter a station" />
82-
<button class="enterButton" onclick="enterGuess()">Guess</button>
83-
<button class="resetButton" onclick="app.resetGame()">
84-
Reset Game
85-
</button>
86-
<button
87-
class="websiteButton"
88-
onclick="window.top.location.href='/home.html'"
89-
>
90-
Exit Game
91-
</button>
92-
</div>
93-
</div>
94-
</div>
95-
</div>
96-
97-
<div class="pageOverlay">
98-
<div id="scoreContainer">
99-
Your score:
100-
<strong><span id="score"></span> / <span id="total"></span></strong>
10183
</div>
102-
<div class="credits">
103-
<p>
104-
©️ SB Designs 2024:
10584

106-
<u>
107-
<a
108-
href="https://sbdesigns.pages.dev"
109-
style="text-decoration: none; color: inherit"
110-
>Website</a
111-
>
112-
</u>
113-
</p>
85+
<div class="formContainer">
86+
<div class="form">
87+
<input id="guess" type="text" placeholder="Enter a station" />
88+
</div>
89+
<br />
90+
<div id="scoreContainer">
91+
<strong><span id="score"></span> / <span id="total"></span></strong>
92+
</div>
93+
<a
94+
href="https://github.com/SB-Designs/Trackle?tab=readme-ov-file#credits--licence"
95+
style="text-decoration: none; color: inherit; outline: none"
96+
>&#8505;</a
97+
>
11498
</div>
11599
</div>
116100
</body>

0 commit comments

Comments
 (0)