-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
276 lines (244 loc) · 9.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Quarantine Time</title>
<link rel="stylesheet" href="fontawesome-5.5/css/all.min.css" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<section id="hero" class="text-white tm-font-big tm-parallax">
<div class="text-center tm-hero-text-container">
<div class="tm-hero-text-container-inner">
<h2 class="tm-hero-title">Quarantine Time</h2>
<p class="tm-hero-subtitle">
Hi, I hope you're doing fine. I know we all are stuck through this hard time but no matter what we are together in this, right?
<br> Below are some links to help you with the passing time, Thanks.
<br />Peace and blessings :)
</p>
</div>
</div>
<div class="tm-next tm-intro-next">
<a href="#introduction" class="text-center tm-down-arrow-link">
<i class="fas fa-3x fa-caret-down tm-down-arrow"></i>
</a>
</div>
</section>
<section id="introduction">
<br><br><br>
<div class="container">
<ul>
<li>
<a href="data/hobbies.html">
<span><i class="fas fa-binoculars"></i></span>
<span>Learn Something New!</span>
</a>
</li>
<li>
<a href="data/streams.html">
<span><i class="fas fa-video"></i></span>
<span>Livestreams / Virtual Tours</span>
</a>
</li>
<li>
<a href="data/applications.html">
<span><i class="fas fa-broom"></i></span>
<span>Applications</span>
</a>
</li>
<li>
<a href="data/organizations.html">
<span><i class="fas fa-universal-access"></i></span>
<span>Organizations</span>
</a>
</li>
<li>
<a href="data/courses.html">
<span><i class="fas fa-ad"></i></span>
<span>Courses</span>
</a>
</li>
<li>
<a href="data/games.html">
<span><i class="fas fa-headset"></i></span>
<span>Games</span>
</a>
</li>
<li>
<a href="data/kids.html">
<span><i class="fas fa-child"></i></span>
<span>Kids</span>
</a>
</li>
<li>
<a href="data/others.html">
<span><i class="fas fa-random"></i></span>
<span>Others</span>
</a>
</li>
</ul>
</div>
</section>
<br>
<p class="text-center">
Made with <span class="heart">❤</span> by <a href="https://github.com/danishsshaikh">Danish Shaikh</a>
</p>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jquery.singlePageNav.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
// Collapsible
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
// Collapsible
function getOffSet() {
var _offset = 450;
var windowHeight = window.innerHeight;
if (windowHeight > 500) {
_offset = 400;
}
if (windowHeight > 680) {
_offset = 300
}
if (windowHeight > 830) {
_offset = 210;
}
return _offset;
}
function setParallaxPosition($doc, multiplier, $object) {
var offset = getOffSet();
var from_top = $doc.scrollTop(),
bg_css = 'center ' + (multiplier * from_top - offset) + 'px';
$object.css({
"background-position": bg_css
});
}
// Parallax function
// Adapted based on https://codepen.io/roborich/pen/wpAsm
var background_image_parallax = function($object, multiplier, forceSet) {
multiplier = typeof multiplier !== 'undefined' ? multiplier : 0.5;
multiplier = 1 - multiplier;
var $doc = $(document);
// $object.css({"background-attatchment" : "fixed"});
if (forceSet) {
setParallaxPosition($doc, multiplier, $object);
} else {
$(window).scroll(function() {
setParallaxPosition($doc, multiplier, $object);
});
}
};
var background_image_parallax_2 = function($object, multiplier) {
multiplier = typeof multiplier !== 'undefined' ? multiplier : 0.5;
multiplier = 1 - multiplier;
var $doc = $(document);
$object.css({
"background-attachment": "fixed"
});
$(window).scroll(function() {
var firstTop = $object.offset().top,
pos = $(window).scrollTop(),
yPos = Math.round((multiplier * (firstTop - pos)) - 186);
var bg_css = 'center ' + yPos + 'px';
$object.css({
"background-position": bg_css
});
});
};
$(function() {
// Hero Section - Background Parallax
background_image_parallax($(".tm-parallax"), 0.30, false);
background_image_parallax_2($("#contact"), 0.80);
// Handle window resize
window.addEventListener('resize', function() {
background_image_parallax($(".tm-parallax"), 0.30, true);
}, true);
// Detect window scroll and update navbar
$(window).scroll(function(e) {
if ($(document).scrollTop() > 120) {
$('.tm-navbar').addClass("scroll");
} else {
$('.tm-navbar').removeClass("scroll");
}
});
// Close mobile menu after click
$('#tmNav a').on('click', function() {
$('.navbar-collapse').removeClass('show');
})
// Scroll to corresponding section with animation
$('#tmNav').singlePageNav();
// Add smooth scrolling to all links
// https://www.w3schools.com/howto/howto_css_smooth_scroll.asp
$("a").on('click', function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 400, function() {
window.location.hash = hash;
});
} // End if
});
// Pop up
$('.tm-gallery').magnificPopup({
delegate: 'a',
type: 'image',
gallery: {
enabled: true
}
});
// Gallery
$('.tm-gallery').slick({
dots: true,
infinite: false,
slidesToShow: 5,
slidesToScroll: 2,
responsive: [{
breakpoint: 1199,
settings: {
slidesToShow: 4,
slidesToScroll: 2
}
},
{
breakpoint: 991,
settings: {
slidesToShow: 3,
slidesToScroll: 2
}
},
{
breakpoint: 767,
settings: {
slidesToShow: 2,
slidesToScroll: 1
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]
});
});
</script>
</body>
</html>