1 $(document).ready(function() { 2 3 4$('html').on('click', '.js-mob-menu, .menu-open .overlay-block', function () { 5 $('body').toggleClass('menu-open'); 6 $('html').toggleClass('overlay-active'); 7 $('html').toggleClass('overflow-hidden'); 8}); 9$('html').on('click', '.js-mob-menu-1, .menu-open-1 .overlay-block', function () { 10 $('body').toggleClass('menu-open-1'); 11 $('html').toggleClass('overlay-active'); 12 $('html').toggleClass('overflow-hidden'); 13}); 14 15if ($(window).width() < 501){ 16 //if ($('.box.mfilter-box.mfilter-column_left .boxclick')[0]){ 17 $('.box.mfilter-box.mfilter-column_left .boxclick').unbind(); 18 $('html').on('click', '.box.mfilter-box.mfilter-column_left .boxclick, .menu-open-2 .overlay-block', function () { 19 $('body').toggleClass('menu-open-2'); 20 $('html').toggleClass('overlay-active'); 21 $('html').toggleClass('overflow-hidden'); 22 }); 23} 24 25 //Top menu 26 $('div.topmenu_theme').removeAttr('style'); 27 28 //Addition images 29 30 31 32 //Images in modules 33 var galleryClass = '.itemcolumns'; 34 $(galleryClass).hover(function() { 35 var $gallery = $(this); 36 $('.owl_modul div a', $gallery).hover(function() { 37 $('.owl_modul div', $gallery).removeClass('active'); 38 $(this).parent().addClass('active'); 39 $('.image img', $gallery).attr('src', $(this).attr('data-image')); 40 }); 41 $('.owl_modul div:first', $gallery).addClass('active'); 42 if ($('.owl_modul', $gallery).parents('.itemcolumns').length) { $gallery.addClass('itemwd') }; 43 }); 44 45 46 47 // Categories module 48 $(".box-category .accordeon_plus").each(function(index, element) { 49 50 if ($(this).parent().hasClass('cat-active') == true) { 51 $(this).addClass('open'); 52 $(this).next().addClass('active'); 53 } 54 }); 55 $(".box-category .accordeon_plus").click(function() { 56 if ($(this).next().is(':visible') == false) { 57 $('.box-category .accordeon_subcat').slideUp(300, function() { 58 $(this).removeClass('active'); 59 $('.accordeon_plus').removeClass('open'); 60 }); 61 } 62 if ($(this).hasClass('open') == true) { 63 $(this).next().slideUp(300, function() { 64 $(this).removeClass('active'); 65 $(this).prev().removeClass('open'); 66 }); 67 } else { 68 $(this).next().slideDown(300, function() { 69 $(this).addClass('active'); 70 $(this).prev().addClass('open'); 71 }); 72 } 73 }); 74 75 //Page of Categories 76 $(".accordeon_description .accordeon_plus").each(function(index, element) { 77 78 if ($(this).parent().hasClass('cat-active') == true) { 79 $(this).addClass('open'); 80 $(this).next().addClass('active'); 81 } 82 }); 83 $(".accordeon_description .accordeon_plus").click(function() { 84 if ($(this).next().is(':visible') == false) { 85 $('.accordeon_description .view').slideUp(300, function() { 86 $(this).removeClass('active'); 87 $('.accordeon_plus').removeClass('open'); 88 }); 89 } 90 if ($(this).hasClass('open') == true) { 91 $(this).next().slideUp(300, function() { 92 $(this).removeClass('active'); 93 $(this).prev().removeClass('open'); 94 }); 95 } else { 96 $(this).next().slideDown(300, function() { 97 $(this).addClass('active'); 98 $(this).prev().addClass('open'); 99 }); 100 } 101 }); 102 103 104 //full slidershow 105 if ($("div").is(".full_container")) { 106 $(".main.topmain").css('padding', 0); 107 $(".main.topmain").css('background', 'transparent'); 108 } 109 110 111 //plus mines button in qty 112 113 var elm = $('#htop'); 114 115 function spin(vl) { 116 elm.val(parseInt(elm.val(), 10) + vl); 117 } 118 $('#increase').click(function() { spin(1); }); 119 $('#decrease').click(function() { if (elm.val() > 0) { spin(-1); } }); 120 121 // success 122 $("body").click(function(e) { 123 if ($(e.target).closest('#notification .success').length == 0) $('#notification .success').remove(); 124 }); 125 126 //mobile menu 127 $('.btn-navbar').click(function() { 128 129 var chk = 0; 130 if ($('#navbar-inner').hasClass('navbar-inactive') && (chk == 0)) { 131 $('#navbar-inner').removeClass('navbar-inactive'); 132 $('#navbar-inner').addClass('navbar-active'); 133 $('#ma-mobilemenu').css('display', 'block'); 134 chk = 1; 135 } 136 if ($('#navbar-inner').hasClass('navbar-active') && (chk == 0)) { 137 $('#navbar-inner').removeClass('navbar-active'); 138 $('#navbar-inner').addClass('navbar-inactive'); 139 $('#ma-mobilemenu').css('display', 'none'); 140 chk = 1; 141 } 142 143 }); 144 145 146 //no responsive 147 enquire.register("only screen and (min-width: 1170px)", { 148 match: function() { 149 $(".full_container").removeClass("fixwidth"); 150 151 } 152 }).register("only screen and (max-width: 1169px)", { 153 match: function() { 154 $(".full_container").addClass("fixwidth"); 155 156 } 157 }); 158 159 //move panels 160 161 $("#box-facebook .icon-facebook").toggle(function() { 162 $("#box-facebook").animate({ right: '280px' }, 500); 163 }, function() { 164 $("#box-facebook").animate({ right: '0px' }, 500); 165 }); 166 167 $("#box-twitter .icon-twitter").toggle(function() { 168 $("#box-twitter").animate({ right: '280px' }, 500); 169 }, function() { 170 $("#box-twitter").animate({ right: '0px' }, 500); 171 }); 172 173 $("#box-vkt .icon-vkt").toggle(function() { 174 $("#box-vkt").animate({ right: '280px' }, 500); 175 }, function() { 176 $("#box-vkt").animate({ right: '0px' }, 500); 177 }); 178 179 180 $(".box-heading").wrap('<div class="box-heading-new"></div>'); 181 182 //wall categories 183 var showClass = '.sub_category_child'; 184 $(showClass + ' .subcateg_show a').click(function() { 185 var $showM = $(this).parents(showClass); 186 $('.subcateg_show_box ', $showM).slideToggle("slow"); 187 $('.subcateg_show .minus ', $showM).toggle(); 188 $('.subcateg_show .plus ', $showM).toggle(); 189 }); 190 191 // menu account 192 $("#topmenuaccount").click(function() { 193 $(this).css({ 194 'top': 'auto', 195 'opacity': 1, 196 }); 197 }); 198 $("body").click(function(e) { 199 if ($(e.target).closest('#topmenuaccount').length == 0) $('#topmenuaccount').removeAttr('style'); 200 }); 201 202 //brand topmenu 203 var $c = $('#topbrand'); 204 while ($c.children('ul:not(.wrap)').length) 205 $c.children('ul:not(.wrap):lt(3)').wrapAll('<div class="column_brand">'); 206 207 //Language and Currency Dropdowns 208 $('#currency, #language').click(function() { 209 $(this).find('> ul').slideDown('fast'); 210 }); 211 212 $(document).click(function(event) { 213 if ($(event.target).closest("#currency, #language").length) 214 return; 215 $('#currency ul, #language ul').removeAttr('style'); 216 event.stopPropagation(); 217 }); 218 $(".sb-icon-search").click(function() { 219 $(this).css({ 'display': 'none' }); 220 $('.sb-search-submit').css({ 'display': 'block' }); 221 $('.sb-search-input').css({ 'display': 'block' }); 222 }); 223 224 225 $(document).click(function(event) { 226 if ($(event.target).closest(".sb-search").length) 227 return; 228 $('.sb-icon-search').removeAttr('style'); 229 $('.sb-search-input').removeAttr('style'); 230 $('.sb-search-submit').removeAttr('style'); 231 event.stopPropagation(); 232 }); 233 234 //column mobile content 235 $('#column-left .box-content, #column-right .box-content').before('<div class="boxclick"></div>'); 236 $('#column-left .boxclick, #column-right .boxclick').click(function() { 237 if ($(this).next().is(':visible') == false) { 238 $(this).next().slideUp(300, function() { 239 $(this).removeClass('open'); 240 }); 241 } 242 if ($(this).hasClass('open') == true) { 243 $(this).next().slideUp(300, function() { 244 $(this).prev().removeClass('open'); 245 }); 246 } else { 247 $(this).next().slideDown(300, function() { 248 $(this).prev().addClass('open'); 249 }); 250 } 251 }); 252 $(window).resize(function() { 253 if ($(window).width() >= '768') { 254 $('#column-left .boxclick, #column-right .boxclick').removeClass('open'); 255 $('#column-left .box-content, #column-right .box-content').removeAttr('style'); 256 } 257 }); 258 259 260 261 });
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.