//////////////////////////////////////////////////// // OWL Carousel: http://owlgraphic.com/owlcarousel //////////////////////////////////////////////////// /*$('.owl-carousel').owlCarousel({ singleItem : true, autoPlay : 9000, stopOnHover : true, navigation : false, navigationText: false, pagination: false })*/ /////////////////////////////////////////////////////////// // WOW animation scroll: https://github.com/matthieua/WOW /////////////////////////////////////////////////////////// new WOW().init(); //new WOW().init(); wow = new WOW({ boxClass: 'wow', // default animateClass: 'animated', // default offset: 0, // default mobile: true, // default live: true // default } ) wow.init(); ///////////////////////// // Scroll to top button ///////////////////////// // When the user scrolls down 20px from the top of the document, show the button window.onscroll = function () { scrollFunction() }; function scrollFunction() { if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) { document.getElementById("BtntoTop").style.display = "block"; } else { document.getElementById("BtntoTop").style.display = "none"; } } // Click event to scroll to top function topFunction() { $('html, body').animate({ scrollTop: 0 }, 'slow'); }