custom js
unknown
javascript
2 years ago
1.4 kB
6
Indexable
// Banner SCRIPT jQuery('.home-carousel').owlCarousel({ loop: true, items: 1, autoplay: true, animateOut: 'fadeOut', autoplayTimeout:4500, autoplaySpeed: 2000, nav: false, dots: false, responsive:{ 0:{ items:1 } } }); jQuery(window).scroll(function () { if(jQuery(window).scrollTop() > 20) { jQuery("header").addClass('sticky'); } else { jQuery("header").removeClass('sticky'); } }); // Mmenu new Mmenu(document.querySelector('#menu')); document.addEventListener('click', function(evnt) { var anchor = evnt.target.closest('a[href^="#/"]'); if (anchor) { alert("Thank you for clicking, but that's a demo link."); evnt.preventDefault(); } }); jQuery('#menu').show(); // Testimonial SCRIPT jQuery('.testimonial-carousel').owlCarousel({ loop: true, items: 1, autoplay: true, autoplayTimeout:4500, autoplaySpeed: 2000, nav: false, dots: false, responsive:{ 0:{ items:1 } } }); // Menu new Mmenu(document.querySelector('#menu')); document.addEventListener('click', function(evnt) { var anchor = evnt.target.closest('a[href^="#/"]'); if (anchor) { alert("Thank you for clicking, but that's a demo link."); evnt.preventDefault(); } }); jQuery('#menu').show();
Editor is loading...