const menuPoints = document.querySelectorAll("nav ul li:has(ul) h5, .hamburger");
    
menuPoints.forEach((menuPoint) => { // Gives click events to everything that should have it
    menuPoint.addEventListener("click", () => {
        menuPoint.classList.toggle("active");
    });
});

buttons = document.querySelectorAll(".background .left, .background .right");
background = document.querySelector(".background");

buttons.forEach((button) => { // adds clickability to the content slider
    button.addEventListener("click", () => {
        background.classList.toggle("slide2");
    });
});