-
Notifications
You must be signed in to change notification settings - Fork 53
/
index.html
51 lines (50 loc) · 2.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>JavaScript Tetris</title>
<meta property="og:title" content="JavaScript Tetris" />
<meta name="description" content="Tetris game made with modern JavaScript." />
<meta name="twitter:description" content="Tetris game made with modern Javascript." />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@melcor76" />
<meta name="keywords" content="JavaScript, Tetris" />
<meta name="author" content="Michael Karén" />
<meta
property="og:image"
content="https://focused-mestorf-930f82.netlify.com/assets/share-image.png"
/>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<body>
<div class="grid">
<div class="left-column">
<h2>HIGH SCORES</h2>
<ol id="highScores"></ol>
</div>
<canvas id="board" class="game-board"></canvas>
<div class="right-column">
<div>
<h1>TETRIS</h1>
<p>Score: <span id="score">0</span></p>
<p>Lines: <span id="lines">0</span></p>
<p>Level: <span id="level">0</span></p>
<canvas id="next" class="next"></canvas>
</div>
<div id="sound-div">
<span class="sound-item" id="sound-speaker"></span>
<span class="sound-item" id="sound-description"></span>
</div>
<button id="play-btn" onclick="play()" class="play-button">Play</button>
<button id="pause-btn" onclick="pause()" class="play-button">Pause</button>
</div>
</div>
<script type="text/javascript" src="constants.js"></script>
<script type="text/javascript" src="board.js"></script>
<script type="text/javascript" src="piece.js"></script>
<script type="text/javascript" src="sound.js"></script>
<script type="text/javascript" src="main.js"></script>
</body>
</html>