-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (58 loc) · 2.08 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<title>TTR</title>
<meta name= "viewport" content = "width= device-width, initial-scale= 1.0">
<link rel= "stylesheet" href= "static/css/main.css">
<link href="https://fonts.googleapis.com/css?family=Merriweather|Roboto" rel="stylesheet">
</head>
<body>
<div id="game-header">
<p>Type Type Revolution</p>
</div>
<div id="warning-div" hidden>
<h3 id="warning-message"></h3>
</div>
<div class="left">
<div class="container">
<div class="column">
<h1>Join Game</h1>
<hr>
<h2 class="input-label">Enter PIN:</h2>
<input id="roomPIN" class="inputField" name= "roomPIN" placeholder= "####" type= "text" maxlength="4">
<h2 class="input-label">Enter Name:</h2>
<input id="playerName" class="inputField" type= "text" placeholder= "Name">
<br>
<button type="button" id="join-game-button" onclick="javascript:void(0);">Join Game</button>
</div>
</div>
</div>
<div class="right">
<div class="container">
<div class="column">
<h1>Create Game</h1>
<hr>
<h2 class="input-label">Enter Name:</h2>
<input id="createPlayerName" class="inputField" type= "text" placeholder= "Name">
<br>
<button type="button" id="create-game-button" onclick="javascript:void(0);">Create Game</button>
</div>
</div>
</div>
<!-- Firebase Scripts -->
<script src= "static/js/index.js" type= "text/javascript"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.2/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyBhsOlePX4aJ6v7XLToyBWsNLjq9aRtbgM",
authDomain: "typetyperevolution.firebaseapp.com",
databaseURL: "https://typetyperevolution.firebaseio.com",
projectId: "typetyperevolution",
storageBucket: "typetyperevolution.appspot.com",
messagingSenderId: "700874066942"
};
firebase.initializeApp(config);
</script>
</body>
</html>