-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
45 lines (41 loc) · 1.57 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
<html>
<head>
<title>Multiplayer Demo</title>
<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>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.1/firebase-auth.js"></script>
<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: "AIzaSyAFFttOlZFrCz4D1eBu_YNI-JXiQ-LXxZY",
authDomain: "balls-xoxo.firebaseapp.com",
databaseURL: "https://balls-xoxo-default-rtdb.firebaseio.com",
projectId: "balls-xoxo",
storageBucket: "balls-xoxo.appspot.com",
messagingSenderId: "570106139527",
appId: "1:570106139527:web:abeaafb3c5eff9ac703922",
measurementId: "G-ERX3HF96W2"
};
firebase.initializeApp(firebaseConfig);
</script>
<script src="/KeyPressListener.js"></script>
<script src="/app.js"></script>
</body>
</html>