-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
62 lines (49 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" />
<title>Super Being | Super Reality Labs</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://pagecdn.io/lib/wow/1.1.2/wow.js" crossorigin="anonymous"></script>
<script>
WOW = new WOW({
animateClass: 'animated',
offset: 100,
callback: function (box) {
}
});
WOW.init();
</script>
<script>
$(window).scroll(function () {
var scroll = $(window).scrollTop();
if (scroll >= 300) {
$("#back-to-top").addClass("show");
} else {
$("#back-to-top").removeClass("show");
}
});
$('#back-to-top').on('click', function (e) {
e.preventDefault();
$('html,body').animate({
scrollTop: 0
}, 700);
});
$("a[href^='#']").click(function (e) {
e.preventDefault();
var position = $($(this).attr("href")).offset().top - 55;
$("body, html").animate({
scrollTop: position
} /* speed */ );
});
</script>
</body>
</html>