Spaces:
Paused
Paused
Update templates/index.html
Browse files- templates/index.html +18 -31
templates/index.html
CHANGED
@@ -1,33 +1,20 @@
|
|
1 |
-
<!
|
2 |
<html lang="en">
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
<div
|
14 |
-
<
|
15 |
-
<
|
16 |
-
<div id="sessionInfo" style="display: none">
|
17 |
-
<p>Session ID: <span id="sessionId"></span></p>
|
18 |
-
<p>
|
19 |
-
Share this Session ID with your opponent to join the game.
|
20 |
-
</p>
|
21 |
-
</div>
|
22 |
-
<div id="joinGame" style="display: none">
|
23 |
-
<input
|
24 |
-
type="text"
|
25 |
-
id="joinSessionId"
|
26 |
-
placeholder="Enter Session ID"
|
27 |
-
/>
|
28 |
-
<button id="joinButton">Join Game</button>
|
29 |
-
</div>
|
30 |
</div>
|
31 |
-
|
32 |
-
|
33 |
-
</
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>1v1 Hangman</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<div class="container">
|
11 |
+
<h1>1v1 Hangman</h1>
|
12 |
+
<button id="playButton">Play</button>
|
13 |
+
<div id="sessionInfo" style="display: none;">
|
14 |
+
<p>Session ID: <span id="sessionId"></span></p>
|
15 |
+
<p id="waitingMessage">Waiting for player 2...</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
</div>
|
17 |
+
</div>
|
18 |
+
<script src="{{ url_for('static', filename='js/game.js') }}"></script>
|
19 |
+
</body>
|
20 |
+
</html>
|