1//Your JQuery Code Here 2$(document).ready(function(){ 3 4 // MOBILE TRIGGER FOR NAVIGATION 768px AND BELOW 5 $('#mobileToggle').click(function(e){ 6 $('body').toggleClass('active'); 7 e.preventDefault(); 8 }); 9 10 if( $(window).width() <= 1024) { 11 12 $(window).scroll(function() { 13 var scroll = $(window).scrollTop(); 14 if (scroll >= 125) { 15 $("#mobileToggle").addClass("scroll").css('transition-delay', '0s'); 16 } else { 17 $("#mobileToggle").removeClass("scroll").css('transition-delay', '0s'); 18 } 19 }); 20 21 // TOGGLE MOBILE SUB NAV 22 $('.navigation ul li:has(ul) i').click(function(){ 23 $(this).parent('li').toggleClass('open'); 24 $(this).next('ul:first').slideToggle(200); 25 $(this).toggleClass('fa-chevron-down').toggleClass('fa-chevron-up'); 26 }); 27 28 $('.navigation ul li:has(ul)').addClass('sub'); 29 $('.navigation ul li.sub').click(function(){ 30 $(this).toggleClass('open'); 31 }); 32 33 } 34 35 if( $(window).width() >= 768) { 36 var masthead = $('.masthead').offset().top; 37 $(window).scroll(function() { 38 var scroll = $(window).scrollTop(); 39 if (scroll > masthead) { 40 $('.masthead').addClass('scroll').stop(); 41 } else { 42 $('.masthead').removeClass('scroll').stop(); 43 } 44 }); 45 } 46 47 if ($('#contactform').length) { 48 $('#contactform').validate(); 49 } 50 51});
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.