-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
71 lines (49 loc) · 1.72 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
<!doctype html>
<html>
<head>
<title>2048</title>
<link rel ="stylesheet" href="style.css" >
<!-- <link href="https://fonts.googleapis.com/css?family=Oxygen:400,700" rel="stylesheet" type="text/css"> -->
</head>
<body>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="engine/game.js" type="module"></script>
<script src="view.js" type="module"></script>
<div class = "choc" >
<div class="heading">
<h1>2048</h1>
<p>Play by using the arrow keys to combine same numbers to get to 2048!</p>
</div>
<div class="Button">
<div id="score" ></div>
<div >
<button type="button" id="reset" >Reset Game</button>
</div>
</div>
<div class = "square" >
<div class="grid-container">
<div class="grid-item" id="1" ></div>
<div class="grid-item" id="2" ></div>
<div class="grid-item" id="3" ></div>
<div class="grid-item" id="4" ></div>
<div class="grid-item" id="5"></div>
<div class="grid-item" id="6"></div>
<div class="grid-item" id="7"></div>
<div class="grid-item" id="8"></div>
<div class="grid-item" id="9"></div>
<div class="grid-item" id="10"></div>
<div class="grid-item" id="11"></div>
<div class="grid-item" id="12"></div>
<div class="grid-item" id="13"></div>
<div class="grid-item" id="14"></div>
<div class="grid-item" id="15"></div>
<div class="grid-item" id="16"></div>
</div>
</div>
<img src = "choc.png" id="choc_png">
<h1 id = "foot"> "Chocolate Edition" </h1>
<div>
<h1 id="end"></h1>
</div>
</body>
</html>