forked from kgd-04-doppler-fox/fancy-todo-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
252 lines (231 loc) · 12.3 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-signin-client_id"
content="419148580155-l4a8am6ev1u521kdp14vjnuodvalob6m.apps.googleusercontent.com">
<title>Fancy Todos</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="https://bootswatch.com/4/united/bootstrap.min.css">
<link rel="stylesheet" href="/asset/style.css">
<script src="https://momentjs.com/downloads/moment.js"></script>
</head>
<body>
<!-- NAVBAR -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">Todo-Fancy</a>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
</ul>
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link outside" href="#" data-toggle="modal" data-target="#modalSignup">Signup</a>
</li>
<li class="nav-item active">
<a class="nav-link outside" href="#" data-toggle="modal" data-target="#signinModal">Signin</a>
</li>
<li class="nav-item active">
<a class="nav-link inside" href="#" style="display:none" id="createTodo" data-toggle="modal"
data-target="#createTodoModal">Create-Todo</a>
</li>
<li class="nav-item active">
<a class="nav-link inside" href="#" style="display:none" id="logout">Logout</a>
</li>
</ul>
</div>
</nav>
<!-- Jumbotron -->
<div class="jumbotron Centered jumbotron-fluid outside">
<div class="container">
<h1 class="display-4">Fancy Todo</h1>
<p class="lead">This is a Todo Application to works for your daily dose of life:)</p>
<small id="emailHelp" class="form-text text-muted">Start by clicking sign in or sign up on right top</small>
</div>
</div>
<!-- CREATE TODO MODAL -->
<div class="modal fade" id="createTodoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title text-body" id="exampleModalLabel">Create Todo</h5>
<button type="button" class="close" id="closeCreate" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<form id="createForm">
<div class="form-group">
<label class="text-body">Title:</label>
<input type="text" class="form-control" id="titleCreate" placeholder="Title">
</div>
<div class="form-group">
<label class="text-body">Description:</label>
<input type="text" class="form-control" id="descriptionCreate"
placeholder="Description">
</div>
<div>
<button type="button" class="btn btn-secondary" onclick="feature()">I'm Bored, click me !</button>
</div>
<div class="boredResult">
</div>
<div class="form-group">
<label class="text-body">Status:</label>
<select class="custom-select" id="statusCreate">
<option value="false">Undone</option>
<option value="true">Done</option>
</select>
</div>
<div class="form-group">
<div id="alertDate">
</div>
<label class="text-body">Due Date:</label><br>
<input type="date" id="dateCreate" id="dateCreate" min="new Date().getUTCDate()">
</div>
<div class="text-center">
<button type="submit" id="submitButton" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- MODAL SIGNIN -->
<div class="modal fade" id="signinModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Signin</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="closeSignin">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="alert alert-dismissible alert-danger" id="alertSignin" style="display:none">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Oh snap!</strong>
<div id="textSignin"></div>
</div>
<div class="container">
<form id="signinForm">
<div class="form-group">
<label for="emailSignin">Email address</label>
<div id="alertEmailSignIn">
</div>
<input type="email" class="form-control" id="emailSignin"
aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with
anyone else.</small>
</div>
<div class="form-group">
<label for="passwordSignin">Password</label>
<input type="password" class="form-control" id="passwordSignin"
placeholder="Password">
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
<div class="text-center m-2">
<small>OR</small>
</div>
<!-- GOOGLE SIGN -->
<div id="gSignin" class="text-center">
<div id="customBtn" class="g-signin2" data-onsuccess="onSignIn">
<span class="icon"></span>
<span class="buttonText">Google</span>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- MODAL SIGNUP -->
<div class="modal fade" id="modalSignup" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Signup</h5>
<button type="button" class="close" id="closeSignup" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container">
<div class="alert alert-dismissible alert-danger" id="alertSignup" style="display:none">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Oh snap!</strong>
<div id="textSignup"></div>
</div>
<form id="signupForm">
<div class="form-group">
<label for="emailSignup">Email address</label>
<!-- Alert Email Sign Up -->
<div id="alertEmailSignUp">
</div>
<input type="email" class="form-control" id="emailSignup" aria-describedby="emailHelp"
placeholder="Enter email">
<small id="emailHelp" class="form-text text-muted">We'll never share your email with
anyone else.</small>
</div>
<div class="form-group">
<label for="passwordSignup">Password</label>
<input type="password" class="form-control" id="passwordSignup" placeholder="Password">
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- CARD TODO -->
<div class="container inside">
<div class="row">
<!-- LIST TODO -->
<div class="card text-white bg-info mb-3 col-sm m-5" style="max-width: 20rem;">
<div class="card-header m-3">
<h1 class="text-center">Todo's</h1>
</div>
<div id="todoList" class="m-3"></div>
</div>
<!-- DETAIL TODO -->
<div class="card text-white bg-info mb-3 col-sm m-5" style="max-width: 20rem;">
<div class="card-header m-3">
<h1 class="text-center">Detail's</h1>
</div>
<div class="card-body" id="detailTodo"></div>
</div>
</div>
</div>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="./main.js"></script>
</body>
</html>