-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
496 lines (400 loc) · 20.5 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
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<!DOCTYPE html>
<html>
<head>
<?!= include('Stylesheet'); ?>
<base target="_self">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<!-- Material Design Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.15.0/css/mdb.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css" rel="stylesheet">
<!--fonts-->
<link rel="stylesheet" type="text/css"
href="//fonts.googleapis.com/css?family=Lato:300,400,700,400italic%7CJosefin+Sans:400,700,300italic">
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.1/css/lightbox.min.css">
<!-- google signIn -->
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id"
content="990664015934-5e7vbon991ml57lk6d63ilguk58ilriu.apps.googleusercontent.com">
<!-- particles js -->
<script src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.min.js"></script>
<script src="https://threejs.org/examples/js/libs/stats.min.js"></script>
</head>
<body>
<div class="demo" id="demo">
<div class="cp-preloader cp-preloader_type4">
<span class="cp-preloader__letter" data-preloader="M">M</span>
<span class="cp-preloader__letter" data-preloader="u">u</span>
<span class="cp-preloader__letter" data-preloader="g">g</span>
<span class="cp-preloader__letter" data-preloader="L">L</span>
<span class="cp-preloader__letter" data-preloader="o">o</span>
</div>
<div id="status"> </div>
</div>
<div class="auth-cover">
<div class="authentication text-center" id="authentication">
<div class="auth-image">
<img src="https://drive.google.com/uc?export=download&id=1sl6pZBDC0WATWJ7Ta93HbVMwsBWPY2nU"
style="width:200px; height:auto;">
</div>
<div class="auth-message">
<h1>Sign in to continue</h1>
</div>
<div class="g-signin2" data-onsuccess="onSignIn"></div>
<script>
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
var myUserEntity = {};
myUserEntity.Id = profile.getId();
myUserEntity.Name = profile.getName();
sessionStorage.setItem('myUserEntity', JSON.stringify(myUserEntity));
document.querySelector(
"#demo").style.display = "none";
$("#website-body").removeClass("hide");
document.querySelector(
"#website-body").style.display = "block";
$(".auth-cover").removeClass("show");
$(".auth-cover").addClass("hide");
}
</script>
</div>
</div>
<div id="website-body">
<div id="particles-js"></div>
<header id="header" class="header">
<div class="container-fluid">
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-dark" id="nav1">
<!-- Navbar brand -->
<a class="navbar-brand" href="#"><img id="nav-logo"
src="https://drive.google.com/uc?export=download&id=1anVbLy8mRTaXtfHMAE6_LGReFV8kjeEL"
width="100%" height="100%"></a>
<!-- Collapse button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#basicExampleNav"
aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="basicExampleNav">
<!-- Links -->
<ul class="nav navbar-nav mr-auto">
<li id="home-button" class="nav-item home-btn" onclick="hideMenu()">
<a class="nav-link" id="home-btn" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li id="event-btn" class="nav-item" onclick="hideMenu()">
<a class="nav-link" href="#Albums">Library</a>
</li>
<li id="disqus-btn" class="nav-item">
<a href='#disqus_thread' class="nav-link" onclick="hideDisqusMenu()"> Disqus</a>
</li>
</ul>
</div>
<!-- Collapsible content -->
<!-- search form -->
<form class="form-inline" id="searchForm1" action="#">
<div class="md-form my-0">
<input id="searchInput1" class="form-control mr-sm-2" type="text" placeholder="Search"
aria-label="Search">
</div>
<button id="searchBtn" class="btn btn-outline-white" type="submit" onclick="search()"><i
class="fas fa-search" style="font-size:200%"></i></button>
<!--my-2 my-sm-0 ml-3-->
</form>
<script>
$("#searchForm1").submit(function (e) {
e.preventDefault();
});
</script>
<div id="sign-out" class="nav-item">
<a href="#" class="nav-link" onclick="signOut()" style="color: white;">Sign out</a>
</div>
</nav>
<nav class="navbar navbar-expand-lg navbar-dark" id="nav2">
<!-- Navbar brand -->
<a class="navbar-brand" href="#"><img id="nav-logo"
src="https://drive.google.com/uc?export=download&id=1anVbLy8mRTaXtfHMAE6_LGReFV8kjeEL"
width="100%" height="100%"></a>
<!-- search form -->
<form class="form-inline" id="searchForm2" action="#">
<div class="md-form my-0">
<input id="searchInput2" class="form-control mr-sm-2" type="text" placeholder="Search"
aria-label="Search">
</div>
<button id="searchBtn" class="btn btn-outline-white" type="submit" onclick="search()"><i
class="fas fa-search" style="font-size:200%"></i></button>
<!--my-2 my-sm-0 ml-3-->
</form>
<script>
$("#searchForm2").submit(function (e) {
e.preventDefault();
});
</script>
<!-- Collapse button -->
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#basicExampleNav"
aria-controls="basicExampleNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="basicExampleNav">
<!-- Links -->
<ul class="nav navbar-nav ml-auto">
<li id="home-button" class="nav-item home-btn" onclick="hideMenu()">
<a class="nav-link" id="home-btn" href="#">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li id="event-btn" class="nav-item" onclick="hideMenu()">
<a class="nav-link" href="#Albums">Library</a>
</li>
<li id="disqus-btn" class="nav-item">
<a href='#disqus_thread' class="nav-link" onclick="hideDisqusMenu()"> Disqus</a>
</li>
<li id="sign-out" class="nav-item">
<a href="#" class="nav-link" onclick="signOut()">Sign out</a>
</li>
</ul>
</div>
<!-- Collapsible content -->
</nav>
<!--/.Navbar-->
</div>
<script>
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
sessionStorage.clear();
// console.log(sessionStorage);
alert("You have signed out successfully.");
$(".auth-cover").addClass("show");
$(".auth-cover").removeClass("hide");
$("#website-body").addClass("hide");
document.getElementById("searchInput1").value = '';
document.getElementById("searchInput2").value = '';
hideDisqusMenu();
});
}
</script>
<div class="welcome-container">
<div class="welcome">
<div class="welcomeMsg">
<h1 class="text-center">Welcome</h1>
<h3 class="text-center">To</h3>
<div id="typed-strings">
<p id="welcomeMuglo">MugLo</p>
<p id="welcomeMsgMuglo">One place for All your Notes</p>
</div>
<span id="typed"></span>
<script>
var typed = new Typed('#typed', {
stringsElement: '#typed-strings',
backSpeed: 40,
typeSpeed: 40,
loop: true,
loopCount: Infinity,
cursorChar: ' _',
});
</script>
</div>
</div>
</div>
</header>
<div id="Home" class="show">
</div>
<!-------------------------- Years Button ------------------------------->
<div id="Albums" class="container-fluid mt-3">
<div class="Albums">
<div class="Album-selector">
<span class="Album-head">
<h3 class="heading-2">Library</h3>
</span>
<span>
<button id="year_btn" class="btn bg-custom2 dropdown-toggle mr-4" type="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Year</button>
<div class="dropdown-menu">
</div>
</span>
</div>
<div class="row">
<div class="Album-holder" style="width:100%">
<div class="cards-holder container" style="width:100%">
</div>
</div>
</div>
</div>
</div>
<!------------------------------ Home Ends --------------------------------------->
<!------------------------------ Event Viewer Starts ----------------------------->
<div id="Event">
<div class="event-bg">
<div class="row">
<div class="col-lg-12">
<h1 id="event-after-home" class="event-name"> </h1>
</div>
<div class="col-lg-12">
<a id="back_link" href="#"><button id="backbtn" class="btn btn-primary btn-sm"
onclick="goback()"><i class="fas fa-angle-left pl-1"></i> Back</button></a>
</div>
</div>
</div>
<!-- Breadcrumb here -->
<div id="breadcrumb-display" aria-label="breadcrumb">
<ol id="list" class="breadcrumb">
<li onclick="gohome()" id="home-btn" class="breadcrumb-item active">
Home
</li>
</ol>
</div>
<!--Folders here -->
<div class="FolderView container">
</div>
<div id="case-folders" class="container" style="text-align: center;">
</div>
<!-- pdf, docs, video here -->
<div class="FileView" style="height: 500px; margin-bottom: 100px;">
<div class="row float-right">
<div class="full-screen" onclick="fullScreen()">
<i class="fas fa-expand-arrows-alt" style="font-size:200%"></i>
</div>
<div class="download"><a class="download_url" href="" download>
<i class="fas fa-download" style="font-size:200%"></i>
</a>
</div>
<div class="close" onclick="close_book()">
<i class="fas fa-times" style="font-size:200%"></i>
</div>
</div>
<iframe id="video"
style="display: none; margin-left: auto; margin-right: auto; margin-bottom: 20px; z-index:999; position:relative"
src="#" width="100%" height="100%">
</iframe>
</div>
<!--Image Display here -->
<div class="WebsiteFetch">
</div>
</div>
<!-- Disqus -->
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
var disqus_config = function () {
this.page.url = "PAGE_URL"; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = "PAGE_IDENTIFIER"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
(function () { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://mug-lo.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript"
rel="nofollow">comments
powered by Disqus.</a></noscript>
<!-- Disqus ends here -->
<!-- -----------Footer ------------->
<footer class="font-small page-footer bg-custom1">
<div class="container">
<div class="container-fluid">
<div class="row">
<div class="col-sm">
<!-- Links -->
<h5 class="text-uppercase h5-responsive font-weight-bold">Find Us At</h5>
<ul class="list-unstyled">
<li>
<a class="links" href="http://www.iitj.ac.in/" target="_blank">IIT Jodhpur</a>
</li>
<li>
<a class="links" href="https://students.iitj.ac.in/" target="_blank">IITJ
Gymkhana</a>
</li>
<li>
<a class="links" href="https://github.com/devlup-labs" target="_blank">DevlUp
Labs</a>
</li>
</ul>
</div>
<div class="col-sm">
<div class="logo-container mt-5">
<img src="https://drive.google.com/uc?export=download&id=12bSpHMDxVHxjGL_7av1X0VxMBwt4A9hE"
width=100% height=100%>
</div>
</div>
<div class="col-sm">
<div class="iitj">
<h5 class="h5-responsive text-uppercase font-weight-bold">Indian Institute of
Technology, Jodhpur</h5>
<p>NH 65, Surpura Bypass Rd<br>Karwar,<br>Rajasthan 342037</p>
</div>
</div>
</div>
</div>
</div>
<!-- Copyright -->
<div class="footer-copyright text-center py-3">© 2020, made with <i class="fa fa-heart"></i> by DevlUp Labs
</div>
<!-- Copyright -->
</footer>
<!---------------------- Footer ----------------->
</div>
<!----------------- website-body end -------------->
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js">
</script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.15.0/js/mdb.min.js">
</script>
<?!= include('Script'); ?>
<!-- preloader -->
<script>
document.onreadystatechange = function () {
if (document.readyState !== "complete") {
document.querySelector(
".auth-cover").style.display = "none";
document.querySelector(
"#website-body").style.display = "none";
$("#website-body").addClass("hide");
document.querySelector(
"#demo").style.visibility = "visible";
document.querySelector(
"#demo").style.display = "block";
console.log("not complete");
} else {
if (sessionStorage.getItem('myUserEntity') == null) {
document.querySelector(
".auth-cover").style.display = "block";
$(".auth-cover").addClass("show");
document.querySelector(
"#demo").style.display = "none";
} else {
document.querySelector(
"#demo").style.display = "none";
document.querySelector(
"#website-body").style.display = "block";
}
console.log("complete");
}
};
</script>
</body>
</html>