-
Notifications
You must be signed in to change notification settings - Fork 132
/
index.html
116 lines (94 loc) · 4.51 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
.nav-logo {
opacity: 0;
transition: opacity .3s .5s ease-out;
}
.nav-logo.is-visible {
opacity: 1;
}
</style>
<title>CodersArena</title>
<link rel="icon" type="image/ico" href="./Documentation/images/logo.png" />
</head>
<body>
<div class="container-fluid mb-5">
<div class="row shadow d-flex justify-content-center nav-logo show-on-scroll" style="border-radius: 0% 0% 100% 100%; z-index: 100;">
<div class="col-sm-8 col-md-6 col-lg-4 text-center">
<img src="./Documentation/images/logo.png" alt="" height="80%" width="80%">
<h5>(Your C++ Partner)</h5>
</div>
</div>
</div>
<div class="container mt-5">
<div class="row m-5">
<div class="d-grid gap-2 col-12">
<button class="btn btn-lg p-5 btn-outline-dark" type="button"><h4>Questions and Solutions</h4></button>
</div>
</div>
<div class="row m-5">
<div class="d-grid gap-2 col-sm-12 p-2 col-md-12 col-lg-6">
<button class="btn btn-lg btn-outline-dark" type="button"><h4>Data Structures and Algorithms</h4></button>
</div>
<div class="d-grid gap-2 col-sm-12 p-2 col-md-12 col-lg-6">
<a href="./Documentation/intro.html" class="btn btn-lg btn-outline-dark" type="button" target="_blank"><h4>Hands-on Documentation</h4></a>
</div>
</div>
</div>
<script>
// Detect request animation frame
var scroll = window.requestAnimationFrame ||
// IE Fallback
function(callback){ window.setTimeout(callback, 1000/60)};
var elementsToShow = document.querySelectorAll('.show-on-scroll');
function loop() {
Array.prototype.forEach.call(elementsToShow, function(element){
if (isElementInViewport(element)) {
element.classList.add('is-visible');
} else {
element.classList.remove('is-visible');
}
});
scroll(loop);
}
// Call the loop for the first time
loop();
function isElementInViewport(el) {
if (typeof jQuery === "function" && el instanceof jQuery) {
el = el[0];
}
var rect = el.getBoundingClientRect();
return (
(rect.top <= 0
&& rect.bottom >= 0)
||
(rect.bottom >= (window.innerHeight || document.documentElement.clientHeight) &&
rect.top <= (window.innerHeight || document.documentElement.clientHeight))
||
(rect.top >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight))
);
}
</script>
<br>
<div class="text-light bg-dark px-2 text-center">
Made by students for students
<!--Copyright © 2021 <a class="text-light" href="https://github.com/SarthakKeshari">Sarthak Keshari</a>-->
</div>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
-->
</body>
</html>