forked from Spectrum-CETB/LesKollab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
558 lines (501 loc) · 24.3 KB
/
index.php
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
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
<?php
// session_start
session_start();
// include db connection
include('./config/db.php');
if (isset($_SESSION['email'])) {
header('Location: ./Explore/index.php?message=You have logged in successfully!');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>LesKollab</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/css/bootstrap-select.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Aclonica">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium+Web:400,600,700">
<link rel="stylesheet" href="assets/css/Button-Change-Text-on-Hover.css">
<link rel="stylesheet" href="assets/css/Button-Ripple-Effect-Animation-Wave-Pulse.css">
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="stylesheet" href="assets/css/darkmode.css">
<!--Font Awesome CSS-->
<link rel="stylesheet" href="assets/css/all.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- For adding Font style -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap" rel="stylesheet">
<style>
</style>
</head>
<body onLoad="myFunction()">
<!-- Back to top button -->
<a id="button" style="text-decoration:none"></a>
<div class=" text-center outer">
<div id="mypage">
<!-- <img src="2.png" alt="Loading" /> -->
</div>
</div>
<div class="ajheader container-fluid px-0">
<nav class="navbar navbar-light navbar-expand-md py-0">
<!-- <img src="assets/images/logo1.png" alt="" height="70px" width="100px"> -->
<div class="container-fluid"><a class="navbar-brand py-0" href="index.php"
style="font-size: 30px;font-family: Aclonica, sans-serif;"><img src="assets/images/logo1.png" alt=""
height="80px" width="100px">LesKollab</a>
<button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle
navigation</span><span class="navbar-toggler-icon"></span></button>
<?php
include("components/common/messages.php");
?>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link active" href="index.php"
style="padding: 8px;padding-right: 2vw;font-size: 20px;">Home</a></li>
<li class="nav-item"><a class="nav-link active" href="#about_us"
style="padding: 8px;padding-right: 2vw;font-size: 20px;">About Us</a></li>
<li class="nav-item"><a class="nav-link active" href="#faq"
style="padding: 8px;padding-right: 2vw;font-size: 20px;">FAQ's</a></li>
<li class="nav-item"><a class="nav-link active" data-toggle="modal" data-target="#modalcontact" href="#"
style="padding-right: 2vw;font-size: 20px;">Contact Us</a></li>
<li class="nav-item"><a class="nav-link active" data-toggle="modal" data-target="#modallogin" href="#"
style="padding-right:2vw;font-size:20px;">Login</a></li>
<!-- Different nav bar link for new LOGIN and REGISTER modals -->
<li class="nav-item"><a class="nav-link active " data-toggle="modal" data-target="#modalregister" href="#"
style="padding-right:2vw;font-size:20px;">Register</a></li>
</ul>
</div>
<input type="checkbox" id="toggle" name="checkbox" class="switch" onclick="myfun()">
</nav>
<div class="container-fluid mt-4">
<div class="jumbotron" style="background:none;z-index:-2">
<div>
<h2>Have Some Pending Projects?</h2>
<i>
<h5>Need Someone's help to complete it?</h5> <br>
<p>Ideas reshape the world, but there's always a staring and learning point.<br> It's time to redefine the
way we learn.</p>
Learnt a new skill, but have no one to work on a starting project with?<br>
Thought of an idea but don't have the necessar tech stacks?<br>
Search for people to collaborate with, or propose a project and let collaborators find you.<br />
With LesKollab, it's time to implement and learn things on the get go, but not alone anymore!</p>
</i>
<br><br><br><br>
<button type="button" id="projectbutton" class="btn btn-outline-warning">Find a Project
Partner</button>
</div>
</div>
</div>
</div>
<!-- 1st jumbotron end -->
<div class="container ">
<div class="jumbotron" style="background-color:#f6fafd;" id="about_us">
<div>
<h2 class="text-center">About Us</h2>
<i>
<br>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
dolore<br>
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip<br>
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse<br>
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat<br>
non proident, sunt in culpa qui officia deserunt mollit anim id est laborum!</p>
</i>
</div>
</div>
</div>
<!-- end of 2nd jumbotron -->
<!-- The previous Modal has been separated and thus the courosel has been removed -->
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true" id="modallogin">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title" style="font-family: 'Permanent Marker', cursive;">LOGIN</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="./scripts/Login.php" method="post">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" name="email" id="exampleInputEmail1" aria-describedby="emailHelp"
placeholder="Enter email">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password</label>
<input type="password" class="form-control" name="password" id="pswlogin" placeholder="Password">
</div>
<div>
<input type="checkbox" id="boxlogin" onclick="box2()">
<span id="notice2">show password</span>
</div>
<br>
<button type="submit" class="btn btn-primary">Login</button>
</form>
</div>
</div>
</div>
</div>
<!-- Similar New Modal for REGISTER -->
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true" id="modalregister">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title" style="font-family: 'Permanent Marker', cursive;">REGISTER</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="./scripts/Register.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="exampleInputEmail1">Email address <span style="color:red;">*</span></label>
<input type="email" class="form-control" name="email" id="exampleInputEmail1" aria-describedby="emailHelp"
placeholder="Enter email" required>
<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="exampleInputPassword1">Name <span style="color:red;">*</span></label>
<input type="text" class="form-control" name="name" id="exampleInputPassword1" placeholder="Full name"
required>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Password <span style="color:red;">*</span> <span>(should have minimum 8
characters)</span></label>
<input type="password" name="password" id="psw" class="form-control form-control-user" min="6"
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}" placeholder="Password"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required>
<div id="message" class="mt-2">
<p id="letter" class="invalid">A <b>lowercase</b> letter</p>
<p id="capital" class="invalid">A <b>capital (uppercase)</b> letter</p>
<p id="number" class="invalid">A <b>number</b></p>
<p id="length" class="invalid">Minimum <b>8 characters</b></p>
</div>
</div>
<div class="form-group">
<label for="exampleInputPassword1" class="form-label">Confirm Password</label>
<input type="password" name="password2" id="psw2" class="form-control form-control-user"
placeholder="Repeat Password" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters"
required>
<div class="mt-2">
<input type="checkbox" id="boxsignup" onclick="box1()">
<span id="notice1">show password</span>
</div>
<div id="message2" class="mt-2">
<b>
<p id="passwordmatch" class="invalid">Passwords didn't match</p>
</b>
</div>
</div>
<div class="form-group">
<label for="exampleInputEmail1">GitHub <span style="color:red;">*</span></label>
<input type="text" class="form-control" name="github" id="exampleInputEmail1" aria-describedby="emailHelp"
placeholder="Enter github profile link" required>
</div>
<div class="form-group">
<label for="exampleInputEmail1">LinkedIn <span style="color:red;">*</span></label>
<input type="text" class="form-control" name="linkedin" id="exampleInputEmail1"
aria-describedby="emailHelp" placeholder="Enter linkedin profile link" required>
</div>
<label for="inputGroupFile02">Profile Photo <span style="color:red;">*</span></label>
<br>
<div class="input-group mb-3">
<input type="file" class="form-control" name="profile" id="inputGroupFile02" required>
<label class="input-group-text" for="inputGroupFile02">Upload</label>
</div>
<div class="form-group">
<label for="user_bio">Bio <span style="color:red;">*</span></label>
<textarea class="form-control" id="user_bio" name="user_bio" rows="3" placeholder="Add a Bio :)"
required></textarea>
</div>
<br>
<button type="submit" class="btn btn-primary" id="registerBtn" disabled>Register</button>
</form>
</div>
</div>
</div>
</div>
<!-- similar modal for contact -->
<div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true" id="modalcontact">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title" style="font-family: 'Permanent Marker', cursive;">Contact Us</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="./scripts/contact.php" method="POST">
<div class="form-group">
<label for="exampleInputEmail1">Name</label>
<input type="text" class="form-control" name="cname" id="" placeholder="Enter Your Name" required>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" name="email" id="" placeholder="Enter email" required>
</div>
<div class="form-group">
<label for="exampleInputPassword1">Phone Number</label>
<input type="contact" class="form-control" name="contact" id="contact" placeholder="Enter you phone number"
required onkeypress="return onlyNumberKey(event)">
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea class="form-control" id="msg" name="msg" rows="3" placeholder="Enter your message"
required></textarea>
</div>
<br>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- faq start -->
<div class="faqsection container-fluid px-0 " id="faq">
<h1 class="text-center py-4">FAQ's</h1>
<div class="container col-lg-6 col-sm-11 px-0 mx-auto">
<section class="Accordion">
<ul class="Accordion__tabs">
<li class="Accordion__tab" onclick="toggleAccordion(this)">
<div class="Accordion__tab__headline">
<h4>Lorem ipsum dolor sit amet</h4><span class="icon"></span>
</div>
<div class="Accordion__tab__content">
<div class="wrapper">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
</p>
</div>
</div>
</li>
<li class="Accordion__tab" onclick="toggleAccordion(this)">
<div class="Accordion__tab__headline">
<h4>dolor sit amet</h4><span class="icon"></span>
</div>
<div class="Accordion__tab__content">
<div class="wrapper">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
</p>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
</div>
</div>
</li>
<li class="Accordion__tab" onclick="toggleAccordion(this)">
<div class="Accordion__tab__headline">
<h4>ipsum dolor sit amet</h4><span class="icon"></span>
</div>
<div class="Accordion__tab__content">
<div class="wrapper">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
</p>
</div>
</div>
</li>
<li class="Accordion__tab" onclick="toggleAccordion(this)">
<div class="Accordion__tab__headline">
<h4>Lorem ipsum</h4><span class="icon"></span>
</div>
<div class="Accordion__tab__content">
<div class="wrapper">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
</p>
</div>
</div>
</li>
</ul>
</section>
</div>
</div>
<!-- faq ends -->
<!-- wave start -->
<div class="container-fluid px-0">
<footer>
<svg viewBox="0 0 120 20">
<defs>
<mask id="xxx">
<circle cx="7" cy="12" r="40" fill="#fff" />
</mask>
<filter id="goo">
<feGaussianBlur in="SourceGraphic" stdDeviation="2" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 13 -9" result="goo" />
<feBlend in="SourceGraphic" in2="goo" />
</filter>
<path id="wave"
d="M 0,10 C 30,10 30,15 60,15 90,15 90,10 120,10 150,10 150,15 180,15 210,15 210,10 240,10 v 28 h -240 z" />
</defs>
<use id="wave3" class="wave" xlink:href="#wave" x="0" y="-2"></use>
<use id="wave2" class="wave" xlink:href="#wave" x="0" y="0"></use>
<g class="gooeff">
<circle class="drop drop1" cx="20" cy="2" r="1.8" />
<circle class="drop drop2" cx="25" cy="2.5" r="1.5" />
<circle class="drop drop3" cx="16" cy="2.8" r="1.2" />
<use id="wave1" class="wave" xlink:href="#wave" x="0" y="1" />
<!-- g mask="url(#xxx)">
<path id="wave1" class="wave" d="M 0,10 C 30,10 30,15 60,15 90,15 90,10 120,10 150,10 150,15 180,15 210,15 210,10 240,10 v 28 h -240 z" />
</g>
</g -->
</svg>
</footer>
</div>
<!-- wave end -->
<!-- Start Footer Section-->
<div class="container-fluid bg-dark footer px-1 text-center">
<div class="row col-12 pr-2 pl-5 py-2">
<div class="col-lg-3 pr-5">
<a href="index.php"><img src="assets/images/logo_footer.png" class="img-fluid footerlogo" alt=""></a>
</div>
<div class="col-lg-5 px-0">
<div class="rounded-social-buttons">
<a class="social-button facebook" href="https://www.facebook.com/" target="_blank"><i
class="fab fa-facebook-f"></i></a>
<a class="social-button github" href="https://github.com/Spectrum-CETB/LesKollab" target="_blank"><i
class="fab fa-github"></i></a>
<a class="social-button linkedin" href="https://www.linkedin.com/" target="_blank"><i
class="fab fa-linkedin"></i></a>
<a class="social-button youtube" href="https://www.youtube.com/" target="_blank"><i
class="fab fa-youtube"></i></a>
<a class="social-button instagram" href="https://www.instagram.com/" target="_blank"><i
class="fab fa-instagram"></i></a>
</div>
</div>
<div class="col-lg-4 px-0 copyright">
<p class="text-white mt-2">Copyright ©
<?php echo date('Y'). " "; ?>LesKollab<span><a href="admin/admin_login.php" class="btn btn-secondary"
style="margin-left:10px;">Admin Login</a></span>
</p>
</div>
</div>
</div>
<!--End Footer Section-->
<div class="modal fade bd-example-modal-lg project" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header text-center">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h2>Register your interests to find a project partner</h2>
<form action="#" method="post">
<div class="multi_select_box interested_areas form-group">
<label for="interested_areas">Areas Interested</label>
<br>
<select class="multi_select interested_areas" multiple data-selected-text-format="count > 3">
<option value="Webd">Webd</option>
<option value="Appd">Appd</option>
<option value="ML">ML</option>
<option value="Frontend">Frontend</option>
<option value="Backend">Backend</option>
<option value="Data Science">Data Science</option>
</select>
</div>
<div class="multi_select_box technologies form-group">
<label for="technologies">Technologies Interested</label>
<br>
<select class="multi_select technologies" multiple data-selected-text-format="count > 3">
<option value="HTML">HTML</option>
<option value="CSS">CSS</option>
<option value="Django">Django</option>
<option value="Node.js">Node.js</option>
<option value="PHP">PHP</option>
<option value="REST">REST</option>
</select>
</div>
<div class="form-group">
<label for="experiencelevel">Expereince</label>
<input type="number" class="form-control" name="experiencelevel" id="experience"
placeholder="Enter in years Ex: 3">
</div>
<div class="form-group ">
<label for="project-level"> Project Level Looking for</label>
<br>
<select id="project-level" name="project-level">
<option value="beginner">Beginner Level</option>
<option value="intermediate">Intermediate Level</option>
<option value="advanced">Advanced Level</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Find a Partner</button>
</form>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.18/js/bootstrap-select.min.js"></script>
<script src="assets/js/Button-Ripple-Effect-Animation-Wave-Pulse.js"></script>
<script src="assets/js/Snackbar.js"></script>
<script src="assets/js/all.min.js"></script>
<script>
$('#myModal').on('shown.bs.modal', function () {
$('#myInput').trigger('focus')
})
</script>
<script>
$(document).ready(function () {
$('.multi_select.interested_areas').selectpicker();
})
$(document).ready(function () {
$('.multi_select.technologies').selectpicker();
})
</script>
<!--Only Number Checking in Contact Us Form-->
<script>
function onlyNumberKey(evt)
{
var x=(evt.which) ? evt.which : evt.keyCode
if(x > 31 && (x < 48 || x > 57))
{
return false;
}
return true;
}
</script>
<script src="assets/js/register.js"></script>
<script src="assets/js/darkmode.js"></script>
<script src="assets/js/faq.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
console.log("ready")
$('#mypage').fadeOut(4000);
$('.outer').fadeOut(4000);
});
</script>
<script>
var btn = $('#button');
$(window).scroll(function() {
if ($(window).scrollTop() > 300) {
btn.addClass('show');
} else {
btn.removeClass('show');
}
});
btn.on('click', function(e) {
e.preventDefault();
$('html, body').animate({scrollTop:0}, '300');
});
</script>
</body>
</html>