-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (81 loc) · 3.23 KB
/
index.html
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
92
93
94
95
96
97
98
99
<!-- In HTML Comments are written like this -->
<!-- They can all be removed for your apps -->
<!doctype html> <!-- This first line tells browsers to expect modern standard html 5 -->
<html lang="en-gb"> <!-- This is indicates the page is written in British English, useful for accessibility -->
<meta charset="utf-8"> <!-- This indicates how the file is encoded. utf-8 is standard -->
<title>2048</title> <!-- All pages need a title, this will be displayed in the browser's title bar -->
<link rel="stylesheet" href="default.css"> <!-- Import style sheet – default.css -->
<link rel="icon" href="./assets/favicon.png"> <!-- Import 'Favorites Icon' – favicon.png -->
<script type="module" src="main.js"></script> <!-- Load the main script. Must be type="module". Have only one of these -->
<!--
<header>
<h1 id="title"> 2048</h1>
<a href="docs">API Documentation</a>
</header>
<header>
<h1 id="score_heading">Score:</h1>
<h2><span id="show_score">0</span></h2>
</header>
<main tabindex="-1">
<div id="game_board"></div>
</main>
<dialog id="result_dialog" tabindex="0" aria-label="Game over message">
<h2>Game Over</h2>
<div id="result_message">You lose!</div>
<div id="result_winner">You wins!</div>
</dialog>
<div class="tile-container">
<div class="tile-row">
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
</div>
<div class="tile-row">
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
</div>
<div class="tile-row">
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
</div>
<div class="tile-row">
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
<div class="tile-cell"></div>
</div>
</div>
<div class="number-container">
</div>
-->
<div class="container">
<div class="heading">
<h1 class="title">2048</h1>
<div class="score-container">0</div>
<h3><a href="./docs">API Documentation</a></h3>
</div>
<p class="game-intro">Join the numbers and get to the <strong>2048 tile!</strong></p>
<div class="game-container">
<div class="game-message">
<div class="lower">
<a class="start-button">Start</a>
</div>
</div>
<main tabindex="-1">
<div id="board" class = "board"></div>
</div>
</main>
<p class="game-explanation">
<strong class="important">How to play:</strong> Use your <strong>arrow keys</strong> to move the tiles. When two tiles with the same number touch, they <strong>merge into one!</strong>
</p>
<dialog id="result_dialog" tabindex="0" aria-label="Game over message">
<h2>Game Over</h2>
<div id="result_message">You lose!</div>
<div id="result_message2">Final Score:</div>
<div id="score-container">0</div>
</dialog>