Jump to content
  • 0

problem ze skryptem "fixed block" java classie.js


AZADA_M

Question

witam

na każdej stronie wywala mi błąd 

<script>
    function init() {
        window.addEventListener('scroll', function(e){
            var distanceY = window.pageYOffset || document.documentElement.scrollTop,
                shrinkOn = 160,
                header = document.querySelector(".footer_order");
            if (distanceY > shrinkOn) {
                classie.add(header,"fixed_block");
            } else {
                if (classie.has(header,"fixed_block")) {
                    classie.remove(header,"fixed_block");
                }
            }
        });
    }
    window.onload = init();
</script>	

o co chodzi ?? jak to usunąć.

 

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...