add and configure gulp

This commit is contained in:
isUnknown 2024-01-26 08:52:00 +01:00
parent 58ecaf99b2
commit 1d135a1b7d
7 changed files with 5061 additions and 8 deletions

29
assets/dist/script.js vendored Normal file
View file

@ -0,0 +1,29 @@
"use strict";
function openTab(data, tab) {
data.activeTab === tab ? data.activeTab = "" : data.activeTab = tab;
}
function scrollToElem(selector) {
setTimeout(function () {
var yOffset = -185;
var elem = document.querySelector(selector);
var top = elem.getBoundingClientRect().top;
window.scrollTo({
top: top + window.scrollY + yOffset,
behavior: "smooth"
});
}, 100);
}
document.addEventListener("DOMContentLoaded", function () {
function toggleLogoState() {
var scrollY = window.scrollY || window.pageYOffset;
if (scrollY > 10) {
document.querySelector("#header").classList.add("minimized");
} else {
document.querySelector("#header").classList.remove("minimized");
}
}
window.addEventListener("scroll", function () {
toggleLogoState();
});
});

1
assets/dist/style.css vendored Normal file

File diff suppressed because one or more lines are too long