1(function(){ 2 'use strict'; 3 if($('.top-bar').length>0) 4 var t = $('.top-bar').height(); 5 else t=0; 6 $('.header-section .arrow').click(function(){ 7 8 if($(this).parent().hasClass('hover')){ 9 $(this).parent().removeClass("hover"); 10 }else{ 11 $(this).parent().addClass("hover"); 12 } 13 }); 14 $('.search-parent > a').click(function(){ 15 16 if($(this).parent().hasClass('active')){ 17 $(this).parent().removeClass("active"); 18 }else{ 19 $(this).parent().addClass("active"); 20 } 21 $('.cart-parent').removeClass("active"); 22 $('#menu').removeClass("in"); 23 }); 24 $('.cart-parent > a').click(function(){ 25 26 if($(this).parent().hasClass('active')){ 27 $(this).parent().removeClass("active"); 28 }else{ 29 $(this).parent().addClass("active"); 30 } 31 $('.search-parent').removeClass("active"); 32 $('#menu').removeClass("in"); 33 }); 34 $('.close-btn').click(function(){ 35 $('.search-parent').removeClass("active"); 36 $('#menu li').removeClass("hover"); 37 $('.cart-parent').removeClass("active"); 38 39 40 }); 41 $('.menu-icon').click(function(){ 42 $('.search-parent').removeClass("active"); 43 $('.cart-parent').removeClass("active"); 44 }) 45 $('#menu li').click(function(){ 46 if($(window).width()<1001){ 47 $('.search-parent').removeClass("active"); 48 $('.cart-parent').removeClass("active"); 49 } 50 }); 51 var k=0; 52 $(window).scroll(function(){ 53 if($(window).width()>1000){ 54 if($(window).scrollTop()>200+t){ 55 $('.header-section').removeAttr('style').addClass('pin'); 56 }else{ 57 58 $('.header-section').css({top:-$(window).scrollTop()}).removeClass('pin'); 59 }if($(window).scrollTop()>150+t){ 60 $('.header-section').addClass('before'); 61 }else{ 62 63 $('.header-section').removeClass('before'); 64 } 65 66 }else{ 67 68 //$('.header-section').css({top:$(window).scrollTop()}) 69 if($(window).scrollTop()<k){ 70 $('.header-section').addClass('off').removeClass('woff').removeAttr('style'); 71 $('#menu').removeClass('in'); 72 $('.search-parent').removeClass('active'); 73 $('.cart-parent').removeClass('active'); 74 k=0; 75 } 76 } 77 if($(window).scrollTop()>t){ 78 if(!$('.header-section').hasClass('woff')){ 79 $('.header-section').addClass('pin-start').addClass('off'); 80 } 81 82 }else{ 83 $('.header-section').removeClass('pin-start').removeClass('off'); 84 } 85 }); 86 if($(window).scrollTop()>150+t){ 87 $('.header-section').addClass('pin'); 88 }else{ 89 $('.header-section').removeAttr('style').removeClass('pin'); 90 } 91 $(window).resize(function(){ 92 if($(window).width()>1000){ 93 $('.header-section').removeAttr('style'); 94 } 95 }); 96 if($(window).scrollTop()>t){ 97 $('.header-section').addClass('off').addClass('pin-start'); 98 }else{ 99 $('.header-section').removeClass('off').removeClass('pin-start'); 100 } 101 $('.menu-icon').click(function(){ 102 if($('#menu').hasClass('in')){ 103 $('.header-section').addClass('off').removeClass('woff').removeAttr('style'); 104 if($(window).scrollTop()>t){ 105 if(!$('.header-section').hasClass('woff')){ 106 $('.header-section').addClass('pin-start').addClass('off'); 107 } 108 109 }else{ 110 $('.header-section').removeClass('pin-start').removeClass('off'); 111 } 112 113 }else{ 114 k=$(window).scrollTop(); 115 $('.header-section').removeClass('off').addClass('woff').css({top:$(window).scrollTop()}); 116 } 117 }) 118 119 $('.cart-parent >a').click(function(){ 120 if($(window).width()<1001){ 121 if(!$('.cart-parent').hasClass('active')){ 122 $('.header-section').addClass('off').removeClass('woff').removeAttr('style'); 123 if($(window).scrollTop()>t){ 124 if(!$('.header-section').hasClass('woff')){ 125 $('.header-section').addClass('pin-start').addClass('off'); 126 } 127 128 }else{ 129 $('.header-section').removeClass('pin-start').removeClass('off'); 130 } 131 }else{ 132 k=$(window).scrollTop(); 133 $('.header-section').removeClass('off').addClass('woff').css({top:$(window).scrollTop()}); 134 } 135 } 136 }) 137 $('.search-parent >a').click(function(){ 138 if($(window).width()<1001){ 139 if(!$('.search-parent').hasClass('active')){ 140 $('.header-section').addClass('off').removeClass('woff').removeAttr('style'); 141 if($(window).scrollTop()>t){ 142 if(!$('.header-section').hasClass('woff')){ 143 $('.header-section').addClass('pin-start').addClass('off'); 144 } 145 146 }else{ 147 $('.header-section').removeClass('pin-start').removeClass('off'); 148 } 149 }else{ 150 k=$(window).scrollTop(); 151 $('.header-section').removeClass('off').addClass('woff').css({top:$(window).scrollTop()}); 152 } 153 } 154 }) 155})();
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.