reset the template

This commit is contained in:
sakrecoer 2020-08-03 21:40:11 +02:00
parent 209b0d58c3
commit bafff0e0dc
105 changed files with 4292 additions and 10535 deletions

View file

@ -3,7 +3,7 @@ window.onscroll = function () { scrollMenu() };
// Get the navbar
var navbar = document.getElementById("logo");
var hider = document.getElementById("sticky");
// Get the offset position of the navbar
var sticky = navbar.offsetTop;
@ -12,15 +12,15 @@ var sticky = navbar.offsetTop;
// Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the scroll position
function scrollMenu() {
if (window.pageYOffset >= sticky) {
navbar.classList.add("sticky")
hider.classList.add("sticky")
} else {
navbar.classList.remove("sticky")
hider.classList.remove("sticky")
}
}
// Make a pretty background when menu is open
var bodyBluring = document.getElementById("wrapper")
var bodyBluring = document.getElementById("main-wrapper")
function blurBody() {
bodyBluring.classList.toggle("blurredout");