-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
50 lines (44 loc) · 1.83 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>2048</title>
</head>
<body>
<div id="top" class="container">
<div class="head">
<span class="title">2048</span>
<span class="score" id="score">Score: 0</span>
<br><br>
<span class="intro">Join the tiles to get to <b>2048</b><br><a href="#howTo"><b>How to Play!</b></a></span>
<a href="./../2048-Game/index.html" class="new-game score">New Game</a>
</div>
<div class="board" id="board">
</div>
<div class="key" id="keyup">
<img src="./Resources/chevron-up.png" alt="">
</div>
<div class="arrow-keys">
<div class="key" id="keyleft">
<img src="./Resources/chevron-left.png" alt="">
</div>
<div class="key" id="keydown">
<img src="./Resources/chevron-down.png" alt="">
</div>
<div class="key" id="keyright">
<img src="./Resources/chevron-right.png" alt="">
</div>
</div>
<div class="footer">
<p id="howTo"><b>HOW TO PLAY: </b>Use your arrow keys to move the tiles. Tiles with the same number merge into one when they touch. Add them up to reach 2048!</p>
<a href="#top"><b>Start Playing!</b></a>
<br><br><br>
<p>Created by <b><a href="https://github.com/BasimAhmedKhan" target="_blank">Basim Khan</a></b>. Based on 2048 by <b><a href="https://play2048.co/" target="_blank">Gabriele Cirulli.</a></b>.</p>
</div>
</div>
<script src="./script.js"></script>
</body>
</html>