Update index.html
Browse files- index.html +0 -12
index.html
CHANGED
|
@@ -462,18 +462,6 @@ themeSwitch.addEventListener('change', () => {
|
|
| 462 |
});
|
| 463 |
}
|
| 464 |
|
| 465 |
-
window.addEventListener('scroll', function() {
|
| 466 |
-
var scrollPosition = window.scrollY || document.documentElement.scrollTop;
|
| 467 |
-
var headerText = document.querySelector('header h1');
|
| 468 |
-
|
| 469 |
-
if (scrollPosition <= 50) {
|
| 470 |
-
// Jika posisi scroll kurang dari atau sama dengan 50
|
| 471 |
-
headerText.style.fontSize = '2.5em'; // Ukuran font awal
|
| 472 |
-
} else {
|
| 473 |
-
// Jika posisi scroll lebih dari 50
|
| 474 |
-
headerText.style.fontSize = '1.25em'; // Ukuran font menyusut
|
| 475 |
-
}
|
| 476 |
-
});
|
| 477 |
|
| 478 |
|
| 479 |
</script>
|
|
|
|
| 462 |
});
|
| 463 |
}
|
| 464 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
|
| 466 |
|
| 467 |
</script>
|