1/* Custom JS File */ 2 jQuery(document).ready(function($) { 3 if ( $('#goTop').length > 0 ) { 4 // Hide the toTop button when the page loads. 5 $("#goTop").css("display", "none"); 6 7 // This function runs every time the user scrolls the page. 8 $(window).scroll(function(){ 9 // Check weather the user has scrolled down (if "scrollTop()"" is more than 0) 10 if($(window).scrollTop() > 0){ 11 // If it's more than or equal to 0, show the toTop button. 12 $("#goTop").fadeIn("slow"); 13 } 14 else { 15 // If it's less than 0 (at the top), hide the goTop button. 16 $("#goTop").fadeOut("slow"); 17 } 18 }); 19 20 // When the user clicks the toTop button, we want the page to scroll to the top. 21 jQuery("#goTop").click(function(event){ 22 23 // Disable the default behaviour when a user clicks an empty anchor link. 24 // (The page jumps to the top instead of // animating) 25 event.preventDefault(); 26 // Animate the scrolling motion. 27 jQuery("html, body").animate({ 28 scrollTop:0 29 },"slow"); 30 }); 31 } 32 33 34 //Post Slider Widget JS 35 if ($('.event-slider-wrapper').length > 0) { 36 $(".event-slider-wrapper").slick({ 37 items: 1, 38 dots: false, 39 infinite: true, 40 centerMode: false, 41 autoplay: true, 42 lazyLoad: 'ondemand', 43 adaptiveHeight: true, 44 arrows : true 45 }); 46 } 47 48 /*search*/ 49 if ( $('.search-box a').length > 0 ) { 50 $('.search-box a').click(function (e) { 51 e.preventDefault(); 52 $('.header-search-block').fadeToggle(); 53 }); 54 } 55 56 if ( $('.menu-toggle').length > 0 ) { 57 $('.menu-toggle').click(function () { 58 $(this).toggleClass('change'); 59 60 }); 61 } 62 63});
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.