Testing pre-push hook. Added some fonts.

This commit is contained in:
g_it 2026-02-10 21:41:41 +01:00
commit 3fb24e8037
Signed by untrusted user who does not match committer: g_it
GPG key ID: A2B0A7C06A054627
94 changed files with 456 additions and 1525 deletions

View file

@ -1,4 +1,4 @@
// HOME.js
// INDEX.js
// Manages the animations on the home page
document.addEventListener('DOMContentLoaded', function () {
@ -76,7 +76,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
// Attach links to pages
const links = ['#', 'https://gugulet.hu/words', 'https://gugulet.hu/visuals', 'https://gugulet.hu/technical'];
const links = ['#', '/words', '/visuals', '/technical'];
document.querySelectorAll('.list li').forEach((item, index) => {
item.innerHTML = `<a href="${links[index]}">${item.innerHTML}</a>`;
});
@ -84,3 +84,10 @@ document.addEventListener('DOMContentLoaded', function () {
slide.innerHTML = `<a href="${links[index]}">${slide.innerHTML}</a>`;
});
});
// Hide the scroll icon when at the end of the page
window.addEventListener('scroll', function () {
if (window.innerHeight + window.scrollY >= document.body.offsetHeight) {
document.getElementById('down-arrow').classList.add('hidden');
}
});