-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (108 loc) · 3.54 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Tetris - Ivan Gasparetto</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta property="og:locale" content="en_GB" />
<meta property="og:site_name" content="Tetris by Ivan Gasparetto" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Tetris - Pure HTML, CSS and JavaScript" />
<meta property="og:description" content="Tetris recreated just for run." />
<meta property="og:url" content="https://igasparetto.github.io/tetris/" />
<meta property="og:image" content="https://igasparetto.github.io/tetris/image/screenshot.png" />
<meta property="og:image:secure_url" content="https://igasparetto.github.io/tetris/image/screenshot.png" />
<meta property="og:image:width" content="1024" />
<meta property="og:image:height" content="576" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap" rel="stylesheet">
<link rel='stylesheet' type='text/css' media='screen' href='css/main.css?v6'>
</head>
<body>
<div id="wrapper">
<header>
<h1>TETRIS</h1>
</header>
<main>
<div id="left">
<div id="left-inner">
<h2>Statistics</h2>
<table>
<tr>
<th>Level:</th>
<td id="level">1</td>
</tr>
<tr>
<th>Lines:</th>
<td id="lines">0</td>
</tr>
<tr>
<th>Speed:</th>
<td><span id="speed">0</span>ms</td>
</tr>
<tr>
<th>Blocks:</th>
<td id="total-blocks">0</td>
</tr>
</table>
<div id="instructions">
<h2>Controls</h2>
<table>
<tr>
<td>← →</td>
<td>right/left move</td>
</tr>
<tr>
<td>↑</td>
<td>rotates</td>
</tr>
<tr>
<td>↓</td>
<td>pushes down</td>
</tr>
</table>
<p>Space pauses the game.</p>
</div>
</div>
</div>
<div id="centre">
<div id="game" tabindex="0"></div>
</div>
<div id="right">
<h2>Next</h2>
<div id="next-piece"></div>
<div id="options">
<h2>Options</h2>
<ul>
<li><label><input type="checkbox" id="extra-shapes"> Special shapes</label></li>
<li><label><input type="checkbox" id="print-matrix-status"> Matrix status</label></li>
</ul>
</div>
<button class="btn" id="start">Start</button>
<p id="message">Welcome</p>
<table>
<tr>
<th>Score:</th>
<td id="score">0</td>
</tr>
<tr>
<th>Record:</th>
<td id="score-record">0</td>
</tr>
</table>
</div>
</main>
<div id="controls">
<div><button class="btn" id="btnRotate">↳</button></div>
<div><button class="btn" id="btnLeft">⇦</button> <button class="btn" id="btnRight">⇨</button></div>
<div><button class="btn" id="btnDown">⇩</button></div>
</div>
<footer>
<p>© Ivan Gasparetto</p>
</footer>
</div>
<script src='js/main.js?v6'></script>
</body>
</html>