init: hugo + blog awesome, struktura webu

This commit is contained in:
2026-05-10 07:49:36 +02:00
commit b4fe5d83ca
62 changed files with 4657 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
'use strict';
;
window.addEventListener('load', () => {
const gttButton = document.getElementById("totop");
if (!gttButton) return;
window.onscroll = () => {
if (
document.body.scrollTop > 300 ||
document.documentElement.scrollTop > 300
) {
gttButton.style.visibility = "visible";
gttButton.style.opacity = "1";
} else {
gttButton.style.visibility = "hidden";
gttButton.style.opacity = "0";
}
};
});