-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (99 loc) · 3.6 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>2048, Game!</title>
<link rel="stylesheet" href="style.css">
<script src="app.js"></script>
</head>
<body>
<div id="main-container">
<div id="score-div">
Score: <b class="current-score">0</b>
</div>
<div id="left-column">
<div class="box-with-shadow">
<div class="title">
How to play?
</div>
<div class="content">
<div class="description">
Use arrow keys to move the tiles. Your quest is to make 2048 tile. Good luck!
</div>
<div class="keyboard-key-container">
<label class="keyboard-key">←</label>
<label class="keyboard-key">↑</label>
<label class="keyboard-key">↓</label>
<label class="keyboard-key">→</label>
</div>
</div>
</div>
<div id="settings" class="box-with-shadow">
<div class="settings-option">
Rows:
</div>
<label id="rows-settings" class="settings-value" title="rows">
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option selected="selected" value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
</label>
<div class="settings-option">
Columns:
</div>
<label id="columns-settings" class="settings-value" title="columns">
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option selected="selected" value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
</select>
</label>
<div class="settings-button">
<button id="restart-button" class="button">Restart</button>
</div>
</div>
</div>
<div id="game-table-container">
<table id="game-table"></table>
</div>
<div id="top-scores" class="box-with-shadow">
<div class="heading">
Top scores <span id="score-type-header"></span>
</div>
<div id="no-scores">No scores!</div>
<div id="top-scores-container">
</div>
</div>
<div id="game-over-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h1>Game Over! </h1>
<h1>Final score: <span class="current-score"></span>!</h1>
</div>
<div class="modal-body">
<form id="save-score-form">
<label for="nickname-input">Nick: </label>
<input id="nickname-input"
name="nickname-input"
type="text"
placeholder="Anonymous"
maxlength="15"
required
autocomplete="off">
<button id="save-score-button" type="button" class="button border-box">Zapisz</button>
</form>
</div>
</div>
</div>
</div>
</body>
</html>