-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (44 loc) · 1.77 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
<html>
<head>
<title>Firebase Multiplayer Demo</title>
<link rel="icon" href="favicon.ico?" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css" type="text/css">
</head>
<body>
<div class="game-container">
</div>
<div class="player-info">
<div>
<label for="player-name">Your Name</label>
<input id="player-name" maxlength="10" type="text" />
</div>
<div>
<button id="player-color">Change Color</button>
</div>
</div>
<!-- the backbone -->
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
<!-- the authentication -->
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>
<!-- the database -->
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-database.js"></script>
<script>
// NOTE - INCLUDE YOUR FIREBASE CONFIG HERE FOR ANYTHING TO WORK:
const firebaseConfig = {
apiKey: "AIzaSyCDunPOZ6_RhbMZkkEGeOOgV9r-UZlf_Ro",
authDomain: "multiplayer-demo-4e1ae.firebaseapp.com",
databaseURL: "https://multiplayer-demo-4e1ae-default-rtdb.firebaseio.com",
projectId: "multiplayer-demo-4e1ae",
storageBucket: "multiplayer-demo-4e1ae.appspot.com",
messagingSenderId: "609209243178",
appId: "1:609209243178:web:3e8501a1b9acb39a5ad553"
};
firebase.initializeApp(firebaseConfig);
</script>
<script src="KeyPressListener.js"></script>
<script src="app.js"></script>
</body>
</html>