Viewing File: /home/ubuntu/allinonecluster-landing/assets/js/main.js

$(document).ready(function () {
    $(window).scroll(function() {
        if ($(document).scrollTop() > 50) {
            $(".header-nav-center").addClass("header-fixed");
        } else {
            $(".header-nav-center").removeClass("header-fixed");
        }
    });
    $("#header").load("header.html");
    $("#footer").load("footer.html");
    $("#contact-us-form").load("contact-us-form.html");
    
      $(".close-menu").click(function(){
            $(".fixed-popup-sec").toggle();
            $(".fixed-overlay").hide();
          });
});
document.addEventListener('click',function(e){
  // Hamburger menu
  if(e.target.classList.contains('hamburger-toggle')){
    e.target.children[0].classList.toggle('active');
  }
})
Back to Directory File Manager