-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (114 loc) · 5.75 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Sign Up</title>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<link rel="manifest" href="manifest.json">
<script src="https://www.gstatic.com/firebasejs/4.13.0/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyAH24oE91EfPlB1u4fIRMbaq_T48fgJ-kY",
authDomain: "manal-liaquat.firebaseapp.com",
databaseURL: "https://manal-liaquat.firebaseio.com",
projectId: "manal-liaquat",
storageBucket: "manal-liaquat.appspot.com",
messagingSenderId: "174271760047"
};
firebase.initializeApp(config);
</script>
<style>
body {
background-image: url(https://manal-liaquat.firebaseapp.com/Git%20Projects/Quiz-Application/img/bg.jpg);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
</head>
<body id="body">
<nav class="navbar navbar-expand-lg navbar-light bg-warning">
<a class="navbar-brand" href="#">POLLING APP</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
</ul>
<!-- <button class="btn btn-outline-success float-right" type="">Search</button> -->
<button type="button" class="btn btn-danger pull-right navBtn" onclick="window.location = 'app.html'">Open App</button>
</div>
</nav>
<div class="container bg-light">
<div class="row" id="index" style="display: none;">
<div class="col-md-12 col-xs-12">
<h1 class="text-center ">REGISTRATION</h1>
<br>
<label for="name" class="">Username:</label>
<input type="text" required="required" class="form-control" maxlength="20" placeholder="e.g. Ali" id="name">
<label for="number" class="">Number: </label>
<input type="tel" placeholder="e.g. 03XXxxxxxxx" id="number" maxlength="11" class="form-control">
<label for="password" class="">Password:</label>
<input type="password" required="required" placeholder="**********" id="password" class="form-control">
<label for="email" class="">Email:</label>
<input type="email" required="required" placeholder="e.g. abc@example.com" class="form-control" id="email">
<hr>
<button class="btn btn-primary mb-2 btn-lg pull-right" onclick="register();">
<i class="fa fa-database"></i> SignUp</button>
<button class="btn btn-link btn-lg pull-right" onclick="document.getElementById('index').style.display = 'none'; document.getElementById('sign').style.display = 'block'">
Already Signed In?</button>
</div>
<br>
<br>
<br>
</div>
<h5 class="text-center" id="msg"></h5>
<div class="col-md-12 col-xs-12" id="sign">
<h1 class="text-center">
<br>LOG IN</h1>
<br>
<label for="email">Email:</label>
<input type="email" required="required" placeholder="e.g. abc@example.com" class="form-control" id="userEmail">
<label for="password">Password:</label>
<input type="password" required="required" placeholder="**********" id="userPassword" class="form-control">
<hr>
<button class="btn btn-success btn-lg pull-right" onclick="login();">
<i class="fa fa-sign-in"></i> Login</button>
<button class="btn btn-link mb-2 btn-lg pull-right" onclick="document.getElementById('index').style.display = 'block'; document.getElementById('sign').style.display = 'none'">
Not a member?</button>
<br>
<br>
<br>
</div>
</div>
</div>
<footer id="footer">
This app was made by
<strong>
<a style="color:rgb(0, 0, 0);" href="https://github.com/manalliaquat" target="_blank">Manal Liaquat</a>
</strong>.
</footer>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('sw.js')
.then(function () {
console.log('Service Worker Registered');
});
}
</script>
<script src="js/registration.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>
</html>