-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
126 lines (116 loc) · 6.12 KB
/
app.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
<!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">
<link href="https://fonts.googleapis.com/css?family=Armata" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" href="icon/favicon.ico" type="image/x-icon">
<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">
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<link rel="manifest" href="manifest.json">
<title>ToDo App</title>
<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>
</head>
<body id="body" onload="getData()">
<!-- Start of todo app -->
<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> -->
<a class="btn btn-xs btn-secondary navBtn text-white" role="button" id="logoutBtn" onclick="logOut()">
<i class="fa fa-sign-out"></i>   LOG OUT</a>
<a class="btn btn-xs btn-primary navBtn" href="index.html" role="button" style="display: none;" id="loginBtn">
<i class="fa fa-sign-in"></i>   LOG IN</a>
</div>
</nav>
<div class="text-center">
<div class="container">
<div class="bg-info row" id="adding">
<!-- Button trigger modal -->
<button type="button" class="btn btn-success " data-toggle="modal" data-target="#exampleModalCenter">
Create Poll
</button>
<!-- Modal -->
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalCenterTitle">Create New Poll</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="" id="pollForm">
<label for="poll heading">Heading</label>
<input type="text" class="form-control" id="pollHeading">
<label for="question">Question?</label>
<input type="text" class="form-control" id="question">
<label for="Option A">Option A</label>
<input type="text" class="form-control" id="optionA">
<label for="Option B">Option B</label>
<input type="text" class="form-control" id="optionB">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" id="closeModal">Close</button>
<button type="button" onclick="uploadPoll()" class="btn btn-primary">Upload</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Start of Clock -->
<strong>
<div class="text-danger" id="time"></div>
</strong>
<!-- End of clock -->
<div class="container bg-success text-white addedTasks" id="">
<div class="container">
<h3>Party Names
<i class="fa fa-thumb-tack"></i>
</h3>
<hr width="70%">
<ul id="pollings">
</ul>
</div>
</div>
</div>
<!-- End of Todo App -->
<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 src="js/app.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>