forked from ZeroOctave/ZeroOctave-Javascript-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
301 lines (268 loc) · 9.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous"
/>
<!--Eend of Bootstrap CSS-->
<!--Buy me a coffee script-->
<script
data-name="BMC-Widget"
data-cfasync="false"
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
data-id="Astrodevil"
data-description="Support me on Buy me a coffee!"
data-message=""
data-color="#00C2CB"
data-position="Right"
data-x_margin="50"
data-y_margin="50"
></script>
<!--End of Buy me a coffee script-->
<!-- fontawesome starts -->
<script
src="https://kit.fontawesome.com/bb036527a9.js"
crossorigin="anonymous"
></script>
<!--End of fontawesome -->
<!-- Start of google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Bitter:wght@300;500;600&family=Poppins:wght@300;500;700&family=Space+Mono:wght@400;700&display=swap"
rel="stylesheet"
/>
<!-- End of google fonts -->
<link href="assets/css/landing_page.css" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
<title>Landing Page</title>
<!-- website favicon -->
<link rel="icon" href="./favicon-32x32.png" />
</head>
<body class="day" onload="pre_loading()">
<!--Preloader-->
<div class="preloadeR" id="preLoading"><span></span></div>
<script>
let p = document.getElementById("preLoading");
function pre_loading() {
setTimeout(myfunction, 3000);
}
function myfunction() {
p.style.display = "none";
}
</script>
<!-- This script is causing hearts to flow from top in every page remove it if needed -->
<!-- <script src="assets/Js/purple_heart.js"></script> -->
<nav class="nav">
<div class="container">
<h1 class="logo"><a href="#">ZeroOctave</a></h1>
<ul>
<li>
<a href="#scrollto" class="current"
><i class="fa-brands fa-js"></i> Projects</a
>
</li>
<li>
<a
href="https://github.com/ZeroOctave/ZeroOctave-Javascript-Projects"
><i class="fa-brands fa-github-alt"></i> Github</a
>
</li>
<li>
<div class="toggleWrapper">
<input type="checkbox" class="dn" id="dn" />
<label for="dn" class="toggle">
<span class="toggle__handler">
<span class="crater crater--1"></span>
<span class="crater crater--2"></span>
<span class="crater crater--3"></span>
</span>
<span class="star star--1"></span>
<span class="star star--2"></span>
<span class="star star--3"></span>
<span class="star star--4"></span>
<span class="star star--5"></span>
<span class="star star--6"></span>
</label>
</div>
</li>
</ul>
</div>
</nav>
<h1 class="title">
{ <span style="color: #ff914d">JavaScript</span> Projects }
</h1>
<div class="container background-container">
<!--searchbar-->
<input type="text" id="searchbar" placeholder="Search Project..." />
</div>
<!-- CARDS SECTION STARTS HERE -->
<div id="scrollto" class="container">
<div class="row card-container" id="cardd"></div>
</div>
<!-- CARDS SECTION END HERE -->
<div class="loading show">
<div class="ball"></div>
<div class="ball"></div>
<div class="ball"></div>
</div>
<script>
let noOfCardsToLoad = 10;
let cardLoadedYet = 0;
let loadingBalls = false;
const loading = document.querySelector(".loading");
console.log(cardItems[0]);
showLoading();
window.addEventListener("scroll", () => {
const { scrollTop, scrollHeight, clientHeight } =
document.documentElement;
console.log({ scrollTop, scrollHeight, clientHeight });
const footerHeight =
document.getElementsByClassName("footer")[0].offsetHeight;
console.log(footerHeight);
if (
clientHeight + scrollTop >= scrollHeight - footerHeight &&
cardLoadedYet < cardItems.length
) {
// show the loading animation
// setTimeout(showLoading,1000);
showLoading();
}
});
function showLoading() {
loading.classList.add("show");
// load more data
// showNextItems();
if (loadingBalls == false) {
loadingBalls = true;
setTimeout(showNextItems, 1000);
}
}
function showNextItems() {
console.log("show next items");
const container = document.getElementsByClassName("container")[0];
console.log(cardItems.length, cardLoadedYet);
let temp = cardLoadedYet;
for (
;
cardLoadedYet <=
(noOfCardsToLoad + temp < cardItems.length
? noOfCardsToLoad + temp
: cardItems.length - 1);
cardLoadedYet++
) {
console.log(cardItems[cardLoadedYet]);
container.innerHTML += cardItems[cardLoadedYet];
}
if (cardLoadedYet >= cardItems.length) loading.classList.remove("show");
loadingBalls = false;
}
</script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- footer section starts -->
<footer class="footer">
<div class="row">
<!-- footer about section -->
<div class="col-lg-4 col-md-4 col-sm-12">
<h3 class="footer-heading">ZeroOctave</h3>
<hr class="footer-hr-1" />
<p class="footer-about">
ZeroOctave Javascript Projects provide some awesome web development
projects to work upon and enhance your skills. The motive of this
project is to help new learners like you to get familiar with web
development skills.
</p>
</div>
<!-- developers section -->
<div class="col-lg-4 col-md-4 col-sm-12">
<h3 class="footer-heading">Collaborations</h3>
<ul class="organisations">
<hr class="footer-hr-1" />
<a href="https://hacktoberfest.digitalocean.com/" target="_blank">
<li>Hacktoberfest 2021</li>
<hr class="footer-hr-2" />
</a>
<a href="https://icc-techsahead.netlify.app/" target="_blank">
<li>ICC 2021</li>
<hr class="footer-hr-2" />
</a>
<a href="https://dwoc.io/" target="_blank">
<li>DWOC 2021</li>
<hr class="footer-hr-2" />
</a>
<a href="https://gssoc.girlscript.tech/" target="_blank">
<li>GSSOC 2022</li>
<hr class="footer-hr-2" />
</a>
</ul>
</div>
<!-- social media icons -->
<div class="col-lg-4 col-md-4 col-sm-12 icon">
<h3 class="footer-heading">Follow Us</h3>
<hr class="footer-hr-1" />
<a href="https://github.com/ZeroOctave/ZeroOctave-Javascript-Projects"
><i class="fa-brands fa-github fa-2x social-icon"></i></a
><br />
<a href="https://twitter.com/zero_octave"
><i class="fa-brands fa-twitter fa-2x social-icon"></i></a
><br />
<a href="https://zerooctave.github.io/"
><i class="fa-solid fa-globe fa-2x social-icon"></i></a
><br />
<a href="[email protected]"
><i class="fa-solid fa-envelope fa-2x social-icon"></i></a
><br />
</div>
</div>
<!--Back to top button-->
<a href="#top">
<button id="back-to-top" class="zoom" style="background-color: #00c2cb">
<i class="fa-solid fa-arrow-up"></i>
</button>
</a>
<script>
const btnScrollToTop = document.querySelector("#back-to-top");
btnScrollToTop.addEventListener("click", function () {
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
});
</script>
<!-- copyright notice -->
<div class="copyright">
<p class="copyright-message">
© Copyright 2021-2022.<br />All rights reserved.
</p>
</div>
</footer>
<!-- footer section ends -->
<script
src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"
></script>
<script src="script.js"></script>
</body>
</html>