-
Notifications
You must be signed in to change notification settings - Fork 1
/
submitscore.html
97 lines (90 loc) · 3.89 KB
/
submitscore.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SSTL</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/styles.min.css">
</head>
<body>
<div>
<nav class="navbar navbar-default navigation-clean" style="background-color:rgb(244,244,244);">
<div class="container">
<div class="navbar-header"><a class="navbar-brand navbar-link" href="#">SSTL </a>
<button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
</div>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav navbar-right">
<li class="active" role="presentation"><a href="#">Submit Score</a></li>
<li role="presentation"><a href="setup.html">Setup </a></li>
<li role="presentation"><a href="getagame.html">Get a Game</a></li>
<li role="presentation"><a href="results.html">Results </a></li>
<li role="presentation"><a href="" onclick="logout()">Logout</a></li>
</ul>
</div>
</div>
</nav>
</div>
<div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="dropdown">
<label for="user-list">Select opponent:</label>
<select class="form-control" id="user-list">
<option>-</option>
</select>
</div>
<input id="game-date" type="date">
</div>
</div>
</div>
</div>
<div class="center-it">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-4 col-sm-offset-1 col-xs-5">
<p>You </p>
<input id="first-you" type="text" class="score-input">
<input id="second-you" type="text" class="score-input">
<input id="third-you" type="text" class="score-input">
</div>
<div class="col-md-2 col-sm-2 col-xs-2">
<p>vs </p>
<p> 1</p>
<p> 2</p>
<p> 3</p>
</div>
<div class="col-md-4 col-sm-4 col-xs-5">
<p id="oponent-name">Oponent</p>
<input id="first-op" type="text" class="score-input">
<input id="second-op" type="text" class="score-input">
<input id="third-op" type="text" class="score-input">
</div>
</div>
</div>
</div>
<button class="btn btn-default" id="submit-score" type="button">Submit </button>
<p>Your games:</p>
<ul id="your-games">
</ul>
<script src="https://www.gstatic.com/firebasejs/4.6.1/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyC5wdWpy0lC2z_ebs5fcp36S510m07-RzU",
authDomain: "sstl-6a30a.firebaseapp.com",
databaseURL: "https://sstl-6a30a.firebaseio.com",
projectId: "sstl-6a30a",
storageBucket: "sstl-6a30a.appspot.com",
messagingSenderId: "106877055189"
};
firebase.initializeApp(config);
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/logout.js"></script>
<script src="assets/js/submit.js"></script>
</body>
</html>