-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
418 lines (388 loc) · 19.9 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Space University</title>
<script src="scripts/jquery-2.2.4.min.js"></script>
<!-- Bootstrap -->
<link href="styles/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="styles/default-fonts.css">
<script src="scripts/bootstrap.min.js"></script>
<!-- CUSTOM CSS -->
<link rel="stylesheet" href="styles/index.css">
<link rel="stylesheet" href="styles/side-navigation.css">
<link rel="stylesheet" href="styles/aside-navigation-menu.css">
<link rel="stylesheet" href="styles/main-page-content.css">
<link rel="stylesheet" href="styles/login-register.css">
<link rel="stylesheet" href="styles/footer-holder.css">
<link rel="stylesheet" href="styles/viewHome.css">
<link rel="stylesheet" href="styles/view-create-posts.css">
<link rel="stylesheet" href="styles/modal-images.css">
<!-- <link rel="stylesheet" href="styles/json-via-ajax.css"> -->
</head>
<body>
<!--============================== ANIMATED SIDE NAVIGATION =================================-->
<div id="mySidenav" class="sidenav guildof">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="#">ABOUT</a>
<a href="#">SERVICES</a>
<a href="#">CLIENTS</a>
<a href="#">Contact</a>
<a href="#" id="linkJSONviaAJAX" class="single-menu-element-link">
Using jQuery to Retrieve JSON via AJAX
</a>
<a href="../index.html">Back to baiganio.github.io</a>
<div style="width: 80%; margin: 0 auto;">
<img src="images/hidden-portals.jpg" id="portalsHolder" alt="NASA Discovers Hidden Portals In Earth’s Magnetic Field.">
</div>
</div>
<!--============================== END ANIMATED SIDE NAVIGATION =================================-->
<!--============================== PAGE CONTENT =================================-->
<div id="main">
<div class="row">
<!-- SIDE MENU -->
<div class="col-md-3" id="side-nav-menu">
<p>
<a id="shrink-menu" href="#">Expand Menu</a>
</p>
<aside class="sidebar">
<div class="logo">
<a href="javascript:void(0)" onclick="closeNav()">
<img src="images/satellite.png" alt="logo" id="logo" >
</a>
<p class="theMonkiesAteMySoul" style="font-size:1.5em;"><b>SPACE UNIVERSITY</b></p>
<a href="#" onclick="openNav()">
<img src="images/menu-icon.png" class="sidebar-menu" alt="" style="width:25%" />
</a>
</div>
<hr>
<br>
<nav class="page-navigation guildof">
<a href="#" id="linkHome" class="single-menu-element-link">
Home
</a>
<a href="#" id="linkLogin" class="single-menu-element-link">
Login
</a>
<a href="#" id="linkRegister" class="single-menu-element-link">
Register
</a>
<a href="#" id="linkCreatePost" class="single-menu-element-link">
Create post
</a>
<a href="#" id="linkLogout" class="single-menu-element-link">
Logout
<br>
<hr>
</a>
<div id="recent-posts" class="alsandra">
<a href="#" id="linkListPosts" class="single-menu-element-link">
<h1>Recent posts</h1>
</a>
<hr>
<div id="post-title"></div>
</div>
</nav>
</aside>
</div>
<!-- END SIDE MENU -->
<!-- MAIN PAGE CONTENT -->
<div class="col-md-9" id="main-page-content">
<!-- MESSAGES HELPERS -->
<section id="loadingBox">Loading.....</section>
<section id="infoBox" onclick="$(this).hide()">Info.....</section>
<section id="errorBox" onclick="$(this).hide()">Error.....</section>
<!-- END MESSAGES HELPERS -->
<!-- START HOME PAGE CONTENT -->
<section id="viewHome">
<div id="sectionWrapper">
<h1 class="alsandra">Respect the diversity of the species!</h1>
<img id="myImg" src="images/lil.jpg" alt="A picture from Sony World Photography Awards 2016." />
<h1 class="alsandra">We are all unique!</h1>
<br>
<!-- <h1 class="alsandra">Used technologies:</h1> -->
<!-- <h3 class="alsandra">✓ -->
<!-- <b>JetBrains</b> -->
<!-- <a href="https://www.jetbrains.com/webstorm/" target="_blank"> -->
<!-- <b>Webstorm</b> -->
<!-- </a> -->
<!-- <b>IDE</b> -->
<!-- </h3> -->
<!-- <h3 class="alsandra">✓ -->
<!-- <a href="https://www.kinvey.com/" target="_blank"> -->
<!-- <b>Kinvey</b> -->
<!-- </a> -->
<!-- <b> as a storage for the data flow</b> -->
<!-- </h3> -->
<!-- <h3 class="alsandra">✓ -->
<!-- <b>JavaScript, -->
<!-- <a href="https://jquery.com/" target="_blank"> -->
<!-- JQuery -->
<!-- </a> -->
<!-- & -->
<!-- <a href="http://getbootstrap.com/" target="_blank"> -->
<!-- Bootstrap -->
<!-- </a> -->
<!-- </b> -->
<!-- </h3> -->
<!-- <h3 class="alsandra">✓ <b>Ajax</b></h3> -->
<br>
<h3 class="alsandra">
<b>Source Code on Github here</b>
<a href="https://github.com/BaiGanio/PU-SPA/tree/space-university"
class='read-more'
target="_blank"
data-toggle='tooltip'
title='source code :)'>
<b>[...]</b>
</a>
</h3>
</div>
</section>
<!-- END HOME PAGE CONTENT -->
<!-- START LOGIN CONTENT -->
<section id="viewLogin">
<br>
<h1 class="theMonkiesAteMySoul" style="color: #c0a16b"><b>Login</b></h1>
<hr />
<h3 class="qtar" style="font-size: 2.5em">
Just type:
<br>
<span style="color: red">jo</span> for user
<br>
&
<br>
<span style="color: red">1</span> for pass
<br>
:)
</h3>
<br>
<!-- START FORM -->
<div class="login-form-1">
<!-- START: register-form -->
<div id="login-form" class="text-left">
<div class="main-login-form">
<form id="loginForm">
<div class="login-group">
<!--Username-->
<div class="form-group">
<input type="text" id="loginUsername" placeholder="Username" required="true">
</div>
<!--Password-->
<div class="form-group">
<input type="password" id="loginPassword" placeholder="Password" required="true">
</div>
<!--Button GO-->
<div class="form-group">
<input type="submit" class="login-button" value="GO" />
</div>
</div>
</form>
</div>
</div>
<!-- END: register-form -->
</div>
<!-- END FORM -->
</section>
<!-- END LOGIN CONTENT -->
<!-- START REGISTRATION CONTENT -->
<section id="viewRegister" style="text-align: center;">
<h1 class="theMonkiesAteMySoul" style="color: #c0a16b"><b>Register</b></h1>
<hr />
<h3 class="qtar" style="font-size: 2.5em">
Just type something stupid:
<br>
<span style="color: red">john</span> for user
<br>
&
<br>
<span style="color: red">rambo</span> for pass
<br>
If error occur - the user may be preserved.
<br>
There is a free user in the login section.
<br>
:)
</h3>
<!-- START FORM -->
<div class="login-form-1">
<!-- START: register-form -->
<div id="register-form" class="text-left">
<div class="main-login-form">
<form action="POST" id="registerForm">
<div class="login-group">
<!--Username-->
<div class="form-group">
<input type="text" id="registerUsername" placeholder="Username" required="true">
</div>
<!--Email-->
<!--<div class="form-group">-->
<!--<input type="email" id="registerEmail" placeholder="Email">-->
<!--</div>-->
<!--Password-->
<div class="form-group">
<input type="password" id="registerPassword" placeholder="Password" required="true">
</div>
<!--Confirm Password-->
<!--<div class="form-group">-->
<!--<input type="password" id="registerConfirmPassword" placeholder="Confirm Password">-->
<!--</div>-->
<!--Button GO-->
<div class="form-group">
<input type="submit" class="login-button" value="GO" />
</div>
</div>
</form>
</div>
</div>
<!-- END: register-form -->
</div>
<!-- END FORM -->
<br>
<br>
<h3 class="qtar" style="color: red;">
Keep in mind that <br> there is no need for serious data.
</h3>
</section>
<!-- END REGISTRATION CONTENT -->
<!-- START LIST POSTS CONTENT -->
<section id="viewListPosts">
<div class="row" id="postPreview">
<div id="previevwHolder"></div>
</div>
</section>
<!-- END LIST POSTS CONTENT -->
<!-- CREATE POST CONTENT -->
<section id="viewCreatePost">
<!-- START FORM -->
<div class="login-form-1">
<h1 class="alsandra" style="color: snow">CREATE POST</h1>
<hr />
<br>
<!-- START: register-form -->
<div id="create-post-form" class="text-left">
<div class="main-login-form">
<form action="POST" id="createPostForm">
<div class="login-group">
<!--TITLE-->
<div class="form-group">
<input type="text" maxlength="100" id="title" placeholder="Title" required="true">
</div>
<!--DESCRIPTION-->
<div class="form-group">
<input type="text" maxlength="1000" id="description" placeholder="Description" required="true">
</div>
<!--IMG URL-->
<div class="form-group">
<input type="text" maxlength="100" id="imgUrl" placeholder="Image url" required="true">
</div>
<!--Confirm Password-->
<div class="form-group">
<input type="text" maxlength="100" id="articleUrl" placeholder="Article url" required="true">
</div>
<!--Button GO-->
<div class="form-group">
<input type="submit" class="login-button" value="GO" />
</div>
</div>
</form>
</div>
</div>
<br>
<br>
<br>
<!--<span class="qtar" style="font-size: 2em; color: snow">Or create post from url:</span>-->
<br>
<br>
<br>
<!--<div class="main-login-form">-->
<!--<form action="POST" id="createPostFormFromUrl">-->
<!--<div class="login-group">-->
<!--<!–TITLE–>-->
<!--<div class="form-group">-->
<!--<input type="text" id="postUrl" placeholder="http://www.mysite.com/article" required="true">-->
<!--</div>-->
<!--<!–Button GO–>-->
<!--<div class="form-group">-->
<!--<input type="submit" id="createFromUrlPostButton" class="login-button" value="GO" />-->
<!--</div>-->
<!--</div>-->
<!--</form>-->
<!--</div>-->
<br>
<br>
<br>
<!-- END: register-form -->
</div>
<!-- END FORM -->
</section>
<!-- END CREATE POST CONTENT -->
<!-- START JSON VIA AJAX CONTENT -->
<section id="json-via-ajax">
<!--<p>-->
<!--<a href="https://www.sanwebe.com/2013/01/40-css-buttons-from-codepen">custom buttons</a>-->
<!--</p>-->
<!--<button id="listUsers" class='cool_btn1 green'>-->
<!--<h1 class='top'>126</h1>-->
<!--<h2> <i>Total users</i></h2>-->
<!--</button>-->
<button id="listPosts" class='cool_btn1 teal'>
<h1 class='top'>Log in first</h1>
<h2> <i>Created posts</i></h2>
</button>
<div class="row" id="ajaxViaJsonPreview">
<div id="usersHolder"></div>
<div id="postsHolderRaw"></div>
</div>
</section>
<!-- END JSON VIA AJAX CONTENT -->
</div>
<!-- MAIN PAGE CONTENT -->
</div>
</div>
<!--============================== END PAGE CONTENT =================================-->
<hr>
<!--============================== FOOTER =================================-->
<footer>
<div id="footer-holder" style="font-family: Alsandra;">
<span">(C) Space University - DateTime.Now. All rights reserved.</span>
<p>Developed by L. K.</p>
<div>
<a href="#">
<img src="images/facebook.jpg" alt="Facebook" title="Facebook">
</a>
<a href="https://github.com/BaiGanio" target="_blank">
<img src="images/daftpunktocat-small.png" alt="GitHub" title="Github">
</a>
<a href="#">
<img src="images/google.jpg" alt="Google" title="Google">
</a>
</div>
</div>
</footer>
<!--============================== END FOOTER =================================-->
<hr>
<!-- The Modal For Images -->
<div id="myModal" class="modal">
<!-- The Close Button -->
<span class="close" onclick="document.getElementById('myModal').style.display='none'">×</span>
<!-- Modal Content (The Image) -->
<img class="modal-content" id="img01">
<!-- Modal Caption (Image Text) -->
<div id="caption"></div>
</div>
<!-- End The Modal For Images -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>-->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!--============================== CUSTOM SCRIPTS =================================-->
<script src="scripts/index.js"></script>
<script src="scripts/side-navigation.js"></script>
<script src="scripts/modal-images.js"></script>
<script src="scripts/main-page-content.js"></script>
</body>
</html>