Testing pre-push hook. Added some fonts.
This commit is contained in:
parent
1b3ef37a16
commit
3fb24e8037
94 changed files with 456 additions and 1525 deletions
|
|
@ -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');
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue