Initial commit

This commit is contained in:
Marek Lesko
2025-08-05 10:59:30 +02:00
commit 0019c5c601
835 changed files with 426250 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
const smoothScroll = () => {
var links = document.querySelectorAll('a[href^="#"]');
if (!links.length) {
return;
}
links.forEach(function (link) {
link.addEventListener("click", function (e) {
e.preventDefault();
var targetId = this.getAttribute("href").substring(1);
var targetElement = document.getElementById(targetId);
if (targetElement) {
targetElement.scrollIntoView({ behavior: "smooth" });
} else {
window.scroll({ top: 0, left: 0, behavior: "smooth" });
}
});
});
};