-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
126 lines (117 loc) · 3.58 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!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="css/style.min.css" />
<link rel="icon" href="assets/favicon.ico" />
<title>2048</title>
</head>
<body id="transition-none">
<header class="score-table">
<div class="container score-table__container">
<div class="score-table__title">
Score table
</div>
<div class="score-table__body">
Your score table is empty :(
</div>
</div>
</header>
<main class="main">
<section class="game" id="game">
<div class="game__container container">
<div class="game__body">
<div class="game__header">
<div class="game__title">
2048
</div>
<div class="game__score">
SCORE: <span class="game__count">0</span>
</div>
</div>
<div class="game__core">
<div class="game__game">
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
<div class="game__box-wallpaper"></div>
</div>
<div class="game__game-over">
<span class="game__game-over-title">You lose :(</span>
<span class="game__game-over-subtitle">Game over</span>
<button class="game__try-again">
Try again
</button>
</div>
<div class="game__game-win">
<span class="game__game-win-title">You WIN!</span>
<span class="game__game-win-subtitle">Do you want to continue the game?</span>
<button class="game__resume-game">
Resume this game
</button>
<button class="game__new-game">
New game
</button>
</div>
</div>
</div>
</div>
</section>
<section class="instruction">
<div class="container instruction__container">
<div class="instruction__title title">
Instruction
</div>
<div class="instruction__body">
<p>
Classic game 2048 where the goal is to get a block with 2048 points, but you can continue the game after
that to set a record.
</p>
<p>The game is controlled in three ways:</p>
<ul>
<li>
1. Arrow buttons (up, down, right, left)
</li>
<li>
2. Swipe in the direction of movement of the blocks
</li>
<li>
3. Using the touch on smartphones and tablets
</li>
</ul>
<p>The best 10 records will be displayed in the 'Score table'</p>
<p>Gooood Luuuuck and Have a fun :)</p>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="footer__container container">
<div class="footer__body">
<div class="footer__year">
<span>©</span>
<span>2022</span>
<a href="https://github.com/AtlasShd">github</a>
</div>
<div class="footer__company"><a href="https://rs.school/js-stage0">Rolling Scopes School</a></div>
</div>
</div>
</footer>
<script src="js/index.js"></script>
<script src="js/js2048.js"></script>
</body>
</html>