-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame-Chess.html
43 lines (37 loc) · 1.32 KB
/
Game-Chess.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
<!DOCTYPE html>
<head>
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-firestore.js"></script>
<title>Chess</title>
<meta charset="UTF-8">
<body>
<h1>Game Chess - Assignment B25</h1>
<canvas id="canvas" width="400" height="400" style="margin-left:37%;"></canvas>
<h2 id="currentTeamText"></h2>
<h2>White pieces lost:</h2>
<h3 id="whiteCasualities"></h2>
<h2>Black pieces lost:</h2>
<h3 id="blackCasualities"></h2>
<h2 id="totalVictories"></h2>
<ul id="score"></ul>
<script src="chess.js"></script>
<script>
const firebaseConfig = {
apiKey: "AIzaSyDUCPgsZ7IBaB_CxJfU8sKJlVMf6-IB3LQ",
authDomain: "chess-9c237.firebaseapp.com",
projectId: "chess-9c237",
storageBucket: "chess-9c237.appspot.com",
messagingSenderId: "164982302026",
appId: "1:164982302026:web:cc215c3f2d5d6770448db3"
};
firebase.initializeApp(firebaseConfig);
const db = firebase.firestore();
db.settings({timestampsInSnapshots: true});
</script>
</body>
<style>
h1,h2,h3{
text-align:center;
}
</style>
</head>