|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html lang="de"> |
3 | | - <head> |
4 | | - <meta charset="UTF-8" /> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | | - <title>Counting Boxes</title> |
7 | | - <link rel="icon" type="image/png" href="../img/Truzzles.png" /> |
8 | | - <link |
9 | | - href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" |
10 | | - rel="stylesheet" |
11 | | - /> |
12 | | - <link rel="stylesheet" href="styles.css" /> |
13 | | - </head> |
14 | | - <body> |
15 | | - <div class="game-container"> |
16 | | - <h1>Counting Boxes</h1> |
17 | | - <p> |
18 | | - Click on a box to increase the number of the box itself and the neighbouring boxes. |
19 | | - The aim is to set all boxes to 0. |
20 | | - </p> |
21 | | - <div class="content-wrapper"> |
22 | | - <div class="container"> |
23 | | - <div class="box" id="box-0"> |
24 | | - <span class="value" data-change="+1">0</span> |
25 | | - <span class="counter">Clicks: 0</span> |
26 | | - </div> |
27 | | - <div class="box" id="box-1"> |
28 | | - <span class="value" data-change="+1">0</span> |
29 | | - <span class="counter">Clicks: 0</span> |
30 | | - </div> |
31 | | - <div class="box" id="box-2"> |
32 | | - <span class="value" data-change="+1">0</span> |
33 | | - <span class="counter">Clicks: 0</span> |
34 | | - </div> |
35 | | - <div class="box" id="box-3"> |
36 | | - <span class="value" data-change="+1">0</span> |
37 | | - <span class="counter">Clicks: 0</span> |
38 | | - </div> |
39 | | - </div> |
40 | | - <div class="button-container"> |
41 | | - <p id="current-clicks">Total clicks: 0</p> |
42 | | - <p id="message"></p> |
43 | | - <button id="reset-btn">Reset</button> |
44 | | - <button id="new-game-btn" style="display: none">New game</button> |
45 | | - </div> |
46 | | - </div> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Counting Boxes</title> |
| 7 | + <link rel="icon" type="image/png" href="../img/Truzzles.png" /> |
| 8 | + <link |
| 9 | + href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" |
| 10 | + rel="stylesheet" |
| 11 | + /> |
| 12 | + <link rel="stylesheet" href="styles.css" /> |
| 13 | + </head> |
| 14 | + <body> |
| 15 | + <div class="game-container"> |
| 16 | + <h1>Counting Boxes</h1> |
| 17 | + <p> |
| 18 | + Click on a box to increase the number of the box itself and the |
| 19 | + neighbouring boxes. The aim is to set all boxes to 0. |
| 20 | + </p> |
| 21 | + <div class="content-wrapper"> |
| 22 | + <div class="container"> |
| 23 | + <div class="box" id="box-0"> |
| 24 | + <span class="value" data-change="+1">0</span> |
| 25 | + <span class="counter">Clicks: 0</span> |
| 26 | + </div> |
| 27 | + <div class="box" id="box-1"> |
| 28 | + <span class="value" data-change="+1">0</span> |
| 29 | + <span class="counter">Clicks: 0</span> |
| 30 | + </div> |
| 31 | + <div class="box" id="box-2"> |
| 32 | + <span class="value" data-change="+1">0</span> |
| 33 | + <span class="counter">Clicks: 0</span> |
| 34 | + </div> |
| 35 | + <div class="box" id="box-3"> |
| 36 | + <span class="value" data-change="+1">0</span> |
| 37 | + <span class="counter">Clicks: 0</span> |
| 38 | + </div> |
47 | 39 | </div> |
48 | | - <script src="script.js"></script> |
49 | | - </body> |
| 40 | + <div class="button-container"> |
| 41 | + <p id="current-clicks">Total clicks: 0</p> |
| 42 | + <p id="message"></p> |
| 43 | + <button id="reset-btn">Reset</button> |
| 44 | + <button id="new-game-btn" style="display: none">New game</button> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + <script src="script.js"></script> |
| 49 | + </body> |
50 | 50 | </html> |
0 commit comments