Skip to content

Commit 33fd0a0

Browse files
committed
Update index.html
1 parent 74ba622 commit 33fd0a0

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

index.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
348348
const featurePoints = document.querySelectorAll('#features .ftPoint');
349349
const themeColorTag = document.querySelector('meta[name="theme-color"]');
350350
const heroEl = document.querySelector('#hero');
351-
const footerEl = document.querySelector('#footer');
352351

353352
function checkScrollAnimations() {
354353

@@ -373,17 +372,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
373372

374373
}
375374

376-
377-
if (isPartlyInView(footerEl)) {
378-
379-
document.body.style.background = '#24262d';
380-
381-
} else {
382-
383-
document.body.style.background = '#1a1c24';
384-
385-
}
386-
387375
}
388376

389377
function isFullyInView(el) {
@@ -399,17 +387,6 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
399387

400388
}
401389

402-
function isPartlyInView(el) {
403-
404-
const rect = el.getBoundingClientRect();
405-
const elemTop = rect.top;
406-
407-
const isVisible = elemTop < window.innerHeight;
408-
409-
return isVisible;
410-
411-
}
412-
413390
window.addEventListener('scroll', checkScrollAnimations);
414391
checkScrollAnimations();
415392

0 commit comments

Comments
 (0)