Click here to Skip to main content
14,870,660 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
window.onload =()=>{
    setTimeout(()=>{
        document.querySelector('body').classList.add('display')
    },2500);
};



document.querySelector('.hamburger-menu').addEventListener('click',function() {
        document.querySelector('.container').classList.toggle('change');
    });

    $('.banner button').on('click',function (){
        $("html,body").animate({
            scrollTop: $($.attr(this,'href')).offset().top
        },500);
    });

    $('.menu-item a').on('click',function (){
        document.querySelector('html').style.scrollBehavior = 'smooth';
        document.querySelector('.container').classList.toggle('change');

        setTimeout(()=>{
            document.querySelector('html').style.scrollBehavior = 'unset'; 
        },1000)
    });
    
    document.querySelector('.scroll-btn').addEventListener('click' , () => {
        document.querySelector('html').style.scrollBehavior = 'smooth';

        setTimeout(()=>{
            document.querySelector('html').style.scrollBehavior = 'unset'; 
        },1000)
    })

    let scrollRef = 0;

window.addEventListener('scroll', function() {
  // increase value up to 10, then refresh AOS
  scrollRef <= 10 ? scrollRef++ : AOS.refresh();
});

$( function() {
    AOS.init({
        offset: 300,
        duration:1000
      });
  } );


  $(document).ready(function() {
    $(".lightSlider").lightSlider(); 
  });





There should not be this code

   $(document).ready(function() {
  $(".lightSlider").lightSlider();
});


What I have tried:

I trid deleting the file and reupload but still the same problem
Posted
Comments
Peter_in_2780 27-Mar-21 3:09am
   
Use the console to see what files are fetched during page load. Those few lines are quite likely in another file you forgot about.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900