1$(document).ready(setup); 2 3function setup() { 4 5 // Set up WOW scroll animations 6 var wow = new WOW({ 7 live: false, 8 }); 9 wow.init(); 10 11 // Set up owl carousel. 12 var owl = $('.owl-carousel'); 13 owl.owlCarousel({ 14 loop: true, 15 nav: false, 16 autoWidth: true, 17 items: 5, 18 dotEach: true, 19 dotsContainer: "#carousel-dots", 20 }); 21 22 $('#carousel-next').click(function() { 23 owl.trigger('next.owl.carousel', [500]); 24 }) 25 $('#carousel-previous').click(function() { 26 owl.trigger('prev.owl.carousel', [500]); 27 }); 28 29 // Set up handlers for toggling the mobile navigation drawer, 30 // by pressing the mobile menu icon in the navigation bar. 31 // 32 // Only applicable for medium and small sizes devices (< 1024px) 33 $('#mobile-menu-icon').click(toggleMobileMenu); 34 35 // Set up handler for automatically closing the mobile navigation drawer, 36 // when one of the menu links in the drawer is tapped. 37 // 38 // Only applicable for medium and small sizes devices (< 1024px) 39 $('.mobile-menu__link').click(toggleMobileMenu); 40} 41 42function toggleMobileMenu() { 43 $('#mobile-menu-icon').toggleClass('open'); 44 $('#mobile-menu-drawer').toggleClass('open'); 45}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.