-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (53 loc) · 1.51 KB
/
index.html
File metadata and controls
62 lines (53 loc) · 1.51 KB
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
<!DOCTYPE html>
<html>
<head>
<title>MineSweeper</title>
<!-- links external CSS files -->
<link rel="stylesheet" type="text/css" href="Minesweeper.css">
<!-- initialize firebase -->
<script src="https://www.gstatic.com/firebasejs/5.6.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyB6yb8VkgEe7qPbM1HTJfvtQc5Sb1ODw9A",
authDomain: "project2-a1f01.firebaseapp.com",
databaseURL: "https://project2-a1f01.firebaseio.com",
projectId: "project2-a1f01",
storageBucket: "project2-a1f01.appspot.com",
messagingSenderId: "764395163277"
};
firebase.initializeApp(config);
</script>
</head>
<body>
<h1>
Minesweeper
</h1>
<br>
<div>
<p id='timer'>
0
</p>
</div>
<canvas id="canvus" oncontextmenu="return false">
</canvas>
<br>
<br>
<div class='buttons'>'
<button id='easy' onclick=check_board_easy()>Easy</button>
<button id='medium' onclick=check_board_medium()>Medium</button>
<button id='hard' onclick=check_board_hard()>Hard</button>
<button id='reset' onclick='reset()'>Reset</button>
</div>
<div id='display_leader_board'>
<h2>LeaderBoard</h2>
<div id='leader_board'>
<ol>
<li>sadfas</li>
<li>safasdfsa</li>
</ol>
</div>
</div>
</body>
<script src="main.js"></script>
</html>