window.onload = function(){
  // Get the navbar
var navbar = document.getElementById("navbar");
var logo = document.getElementById("logo");
// Get the offset position of the navbar
var sticky = navbar.offsetTop;

// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};

// Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the scroll position
function myFunction() {
  if (window.pageYOffset >= sticky) {
    navbar.classList.add("sticky"),
    logo.classList.add("sticky-logo")
  } else {
    navbar.classList.remove("sticky"),
    logo.classList.remove("sticky-logo");
  }
  
} 


function init() {
  const targetDiv = document.getElementById("filter-container");
  const btn = document.getElementById("toggle");
  btn.onclick = function () {
  if (targetDiv.style.display !== "none") {
      targetDiv.style.display = "none";
  } else {
      targetDiv.style.display = "block";
  }
  };
}
};







