-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.html
87 lines (72 loc) · 3.17 KB
/
MainPage.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
<!DOCTYPE html>
<html>
<head>
<title>TOD Admin</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E=" crossorigin="anonymous"></script> -->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.11.0/firebase-storage.js"></script>
</head>
<body class="h-100">
<nav class="navbar navbar-expand-lg bg-dark text-white">
<div class="container-fluid">
<ul class="nav navbar-nav">
<li class="active">
<a class="navbar-brand" style="color: whitesmoke; text-decoration-style: wavy;" href="#">
TOD Admin
</a>
</li>
<li>
<a class="nav-link" style="color: whitesmoke; text-decoration-style: wavy;" onclick="switchView('home.html')">
<span style="color: white">
Home
</span>
</a>
</li>
<li>
<a class="nav-link" style="color: whitesmoke; text-decoration-style: wavy;" onclick="switchView('myblogs.html')">
<span style="color: white">
My Setup
</span>
</a>
</li>
</ul>
<div class="dropdown navbar-right">
<button id="option-id" class="btn btn-light dropdown-toggle bg-dark text-white" type="button"
data-toggle="dropdown" aria-toggle="true" aria-expanded="false">
Options
</button>
<div class="dropdown-menu" aria-labelledby="option-id">
<a class="dropdown-item" id="btn-logout" href="#">
Logout
</a>
</div>
</div>
</nav>
<div class="row h-100 bg-light">
<div class="col-lg-0 bg-secondary">
<ul class="nav flex-column">
</ul>
</div>
<div class="col-lg-12">
<div class="container" id= "container">
</div>
</div>
</div>
<script src="js/index.js"></script>
<script>
firebase.auth().onAuthStateChanged(function (user) {
if (!user) {
window.location.href = "signin.html";
}
});
</script>
</body>