-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (28 loc) · 746 Bytes
/
index.html
File metadata and controls
35 lines (28 loc) · 746 Bytes
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
<html>
<head>
<meta charset="utf-8">
<title>Beep Game</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<h1>beep.</h1>
<p class="info">You have won! <a href="#" onclick="restart()">Restart!</a></p>
<table id="beep-game"></table>
<p>Find pairs and clear the grid</p>
<p id="moves"></p>
</div>
<script src="js/beeplay.min.js"></script>
<script src="js/script.js"></script>
<script>
var x = 4;
var y = 4;
var game;
function restart() {
game = new BeepGame(x, y).render();
document.querySelector('p.info').style.display = 'none';
}
restart();
</script>
</body>
</html>