-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html
131 lines (111 loc) · 5.09 KB
/
profile.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<link rel="stylesheet" href="styles.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>D-Pong</title>
<link rel="stylesheet" href="styles.css">
</head>
<body id="bootstrap-overrides">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">D-Pong</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li id="listings-li" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Listings <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="leaderboard.html">Leaderboard</a></li>
<li><a href="games.html">Games</a></li>
</ul>
</li>
<!--<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Page 1-1</a></li>
<li><a href="#">Page 1-2</a></li>
<li><a href="#">Page 1-3</a></li>
</li>-->
<li id="submit-li"><a href="submit.html">Submit game</a></li>
</ul>
<form class="navbar-form navbar-left search-form" action="/action_page.php" autocomplete="off">
<div class="form-group autocomplete">
<input id='search-input' type="text" class="form-control basicAutoComplete" placeholder="Search" autocomplete="off">
</div>
<button id="search-button" class="btn btn-default" onclick="search()">Submit</button>
</form>
<ul id="nav-login-ul" class="nav navbar-nav navbar-right">
<li id="register-li"><a href="register.html"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li id="login-li"><a href="login.html"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
<ul id="nav-logout-ul" class="nav navbar-nav navbar-right">
<li id="pofile-li"><a href="profile.html?id="><span class="glyphicon glyphicon-user"></span> Profile</a></li>
<li><a id="logout-a" onclick="logOut()"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
</ul>
</div>
</div>
</nav>
<div class="col-sm-6 col-sm-offset-3" id="profile">
<h1 id="name" class="text-center">Player</h1>
<div class="col-xs-6">
<h2 id="rank" class="text-center">12</h2>
<h3 class="text-center">Rank</h3>
</div>
<div id="rating-div" class="col-xs-6">
<h2 id="rating" class="text-center">1612</h2>
<h3 class="text-center">Points</h3>
</div>
<table class="table table-striped table-dark" id="game-table">
<thead class="thead-dark">
<tr>
<th scope="col">Winners</th>
<th scope="col">Losers</th>
<th scope="col">Points</th>
<th scope="col">Date</th>
</tr>
</thead>
<tbody id="tableBody">
</tbody>
</table>
</div>
<div id="user-not-found">
<div class="col-sm-6 col-sm-offset-3">
<h3 class="text-center">User not found</h3>
</div>
</div>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.2.3/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyAAfWDrsqk3r2VQo-xD99c93Rwi4EHLJ8g",
authDomain: "dpong-d23d0.firebaseapp.com",
databaseURL: "https://dpong-d23d0.firebaseio.com",
projectId: "dpong-d23d0",
storageBucket: "dpong-d23d0.appspot.com",
messagingSenderId: "998832556161",
appId: "1:998832556161:web:f8b3db8d85e6b173e82580"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="https://www.gstatic.com/firebasejs/3.1.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.2.2/firebase-auth.js"></script>
<script src="main.js"></script>
<script src="profile.js"></script>
</body>
</html>