Initial commit

This commit is contained in:
2026-05-12 23:33:46 +02:00
commit ccf32dcece
104 changed files with 17439 additions and 0 deletions

24
js/quickLinks.js Normal file
View File

@@ -0,0 +1,24 @@
document.addEventListener('DOMContentLoaded', function () {
var quickLinks = document.querySelector('.quick-links');
if (!quickLinks) return;
// Last section: keyword cloud if present, otherwise last swiper section
var lastSection = document.querySelector('.keyword-cloud');
if (!lastSection) {
var swiperSections = document.querySelectorAll('.swiper-section');
lastSection = swiperSections[swiperSections.length - 1] || null;
}
if (!lastSection) return;
var initialTop = quickLinks.getBoundingClientRect().top + window.scrollY;
var quickLinksHeight = quickLinks.offsetHeight;
window.addEventListener('scroll', function () {
var sectionBottom = lastSection.getBoundingClientRect().bottom;
if (initialTop - sectionBottom > 0) {
quickLinks.style.top = (initialTop - (initialTop - sectionBottom) - quickLinksHeight) + 'px';
} else {
quickLinks.style.top = initialTop + 'px';
}
});
});