1jQuery(document).ready(function($) { 2 'use strict'; 3 4 // Search Block Start 5 6 $('.desktop-search-button').on('click', function(){ 7 'use strict'; 8 $('.space-header-search-block').addClass('active'); 9 setTimeout( function() { 10 'use strict'; 11 $('.space-header-search-block input').focus(); 12 }, 500 ); 13 }); 14 15 $('.desktop-search-close-button').on('click', function(){ 16 'use strict'; 17 $('.space-header-search-block').removeClass('active'); 18 }); 19 20 // Search Block End 21 22 // Mobile Menu Open Start 23 24 $('.space-mobile-menu-icon').on('click', function(){ 25 'use strict'; 26 $('.space-mobile-menu').addClass('active'); 27 }); 28 29 $('.space-mobile-menu-close-button').on('click', function(){ 30 'use strict'; 31 $('.space-mobile-menu').removeClass('active'); 32 }); 33 34 // Mobile Menu Open End 35 36 // Mobile Children Start 37 38 $(".menu-item-has-children a").on('click', function(event){ 39 'use strict'; 40 event.stopPropagation(); 41 location.href = this.href; 42 }); 43 44 $(".menu-item-has-children").on('click', function(){ 45 'use strict'; 46 $(this).addClass("toggled"); 47 if($(".menu-item-has-children").hasClass("toggled")) 48 { 49 $(this).children("ul").toggle(); 50 } 51 $(this).toggleClass("space-up"); 52 return false; 53 }); 54 55 // Mobile Children End 56 57 58 59 // Scroll To Top Start 60 61 if ($('#scrolltop').length) { 62 63 var scrollTrigger = 100, // px 64 65 backToTop = function () { 66 'use strict'; 67 var scrollTop = $(window).scrollTop(); 68 if (scrollTop > scrollTrigger) { 69 $('#scrolltop').addClass('show'); 70 } else { 71 $('#scrolltop').removeClass('show'); 72 } 73 }; 74 75 backToTop(); 76 77 $(window).on('scroll', function () { 78 'use strict'; 79 backToTop(); 80 }); 81 82 $('#scrolltop').on('click', function (e) { 83 'use strict'; 84 e.preventDefault(); 85 $('html,body').animate({ 86 scrollTop: 0 87 }, 1000); 88 }); 89 90 } 91 92 // Scroll To Top End 93 94});
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.