Updated 7 files via CloudCannon

This commit is contained in:
CloudCannon 2020-10-07 14:01:21 +00:00
parent 6bc19fa17e
commit ac4d8ce109
7 changed files with 4 additions and 1105 deletions

View file

@ -1,32 +0,0 @@
// When the user scrolls the page, execute scrollMenu
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;
// 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) {
hider.classList.add("sticky")
} else {
hider.classList.remove("sticky")
}
}
// Make a pretty background when menu is open
var bodyBluring = document.getElementById("main-wrapper")
function blurBody() {
bodyBluring.classList.toggle("blurredout");
}
function removeBlur() {
bodyBluring.classList.remove("blurredout")
}
/// request permission to autoplay