1jQuery(document).ready(function ($) { 2 $('.modal').ussModal($('.header .modal_opener')); 3 $('.search .uss_input_name').on('input focus',function() { 4 if($(this).val()) { 5 if(!$('.clear-search').hasClass('active')) $('.clear-search').addClass('active'); 6 } 7 else { 8 $('.clear-search').removeClass('active'); 9 } 10 }); 11 $('.clear-search').click(function() { 12 $(this).parent().find('.uss_input_name').val(''); 13 $('.clear-search').removeClass('active'); 14 }); 15 $(document).mouseup(function (e){ 16 if ($('.clear-search').length == 1) { 17 var search = $(".search"); 18 if (!search.is(e.target) 19 && search.has(e.target).length === 0) { 20 $('.clear-search').removeClass('active'); 21 } 22 } 23 }); 24 let window_width = $(window).width(); 25 26 $('.aside-catalog .h3').each(function (index, el) { 27 el = $(el); 28 let oldText = el.text(); 29 el.text(''); 30 $('<span></span>').text(oldText).appendTo(el); 31 }); 32 var positin_slick_params = { 33 slidesToShow: 3, 34 slidesToScroll: 1, 35 arrows: true, 36 dots: false, 37 touchMove: false, 38 autoplay: true, 39 autoplaySpeed: 4500, 40 infinite: true, 41 responsive: [ 42 { 43 breakpoint: 825, 44 settings: { 45 slidesToShow: 2 46 } 47 }, 48 { 49 breakpoint: 551, 50 settings: { 51 slidesToShow: 1 52 } 53 } 54 ] 55 }; 56 $('.position__tab.active .uss_widget_outer_content').slick(positin_slick_params); 57 58 function toggleTab(e) { 59 var _this = $(e.target); 60 _this.addClass('active').siblings('div').removeClass('active'); 61 var target = $('.position__content .position__tab-' + _this.attr('tab-id')); 62 target.addClass('active').siblings('div').removeClass('active'); 63 target 64 .children('.uss_widget_outer_content') 65 .slick(positin_slick_params) 66 .parent('div') 67 .siblings('div') 68 .children('.slick-initialized') 69 .slick('unslick'); 70 } 71 $('.position__navs .position__nav').on('click', toggleTab); 72 $('.slider .slides').sliderHeight({}).slick({ 73 slidesToShow: 1, 74 slidesToScroll: 1, 75 arrows: true, 76 dots: true, 77 touchMove: false, 78 autoplay: true, 79 autoplaySpeed: 4500, 80 infinite: true, 81 fade: true 82 }); 83 84 function wrapPositionBlocks() { 85 $('.uss_shop_blocks_view .uss_eshop_item') 86 .wrapBlock({ 87 target: 'div.uss_shop_buy_one_click,div.uss_compare_by,div.uss_shop_put_wrap', 88 wrapperClassName: 'extra-buttons' 89 }) 90 .wrapBlock({ 91 target: 'div.uss_shop_by:not(.uss_shop_buy_one_click) ~ div:not(.extra-buttons)', 92 wrapperClassName: 'extra-other' 93 }); 94 $('.uss_shop_list_view .uss_eshop_item .uss_shop_technical_data') 95 .wrapBlock({ 96 target: 'div.uss_compare_by,div.uss_shop_put_wrap', 97 wrapperClassName: 'extra-buttons' 98 }) 99 .wrapBlock({ 100 target: 101 'div.uss_shop_by:not(.uss_shop_buy_one_click) ~ div:not(.extra-buttons):not(.uss_shop_buy_one_click)', 102 wrapperClassName: 'extra-other' 103 }); 104 } 105 wrapPositionBlocks(); 106 $('.uss_shop_detail .uss_shop_technical_data').wrapBlock({ 107 target: 'div.uss_compare_by,div.uss_shop_put_wrap', 108 wrapperClassName: 'extra-buttons' 109 }); 110 $('.uss_catalog_list_cat .uss_catalog_category').wrapBlock({ 111 target: '.uss_catalog_img_wrap ~ div:not(.uss_shop_blocks_view)', 112 wrapperClassName: 'info' 113 }); 114 $('.uss_shop_list_cat .uss_shop_category') 115 .wrapBlock({ 116 target: '.uss_shop_cat_img_wrap ~ div:not(.uss_shop_blocks_view)', 117 wrapperClassName: 'info' 118 }) 119 .wrapBlock({ 120 target: '.uss_shop_blocks_view', 121 wrapperClassName: 'items' 122 }); 123 $('.aside-catalog .h3').on('click', function (e) { 124 let className = 'open'; 125 let target = $(e.currentTarget).parent('div').toggleClass(className); 126 $(window).on('resize', function () { 127 if (window_width > 1000) { 128 target.removeClass(className); 129 } 130 }); 131 });
132 $('.aside-position-slider .uss_widget_outer_content').slick({ 133 slidesToShow: 1, 134 slidesToScroll: 1, 135 arrows: true, 136 dots: false, 137 touchMove: false, 138 autoplay: true, 139 autoplaySpeed: 4500, 140 infinite: true 141 }); 142 $('.position-slider .uss_widget_outer_content').slick({ 143 slidesToShow: 3, 144 slidesToScroll: 1, 145 arrows: true, 146 dots: false, 147 touchMove: false, 148 autoplay: true, 149 autoplaySpeed: 4500, 150 infinite: true 151 }); 152 $(document).ajaxSuccess(function (e) { 153 wrapPositionBlocks(); 154 }); 155 $(window).on('resize DOMContentLoaded', function () { 156 window_width = $(window).width(); 157 }); 158 moveItem('.header .basket', '.header .center .search', 768, 'after'); 159 moveItem('.menu', '.adaptive-menu', 768, 'append'); 160 161 function showBurgerMenu() { 162 $('.adaptive-menu').toggleClass('open'); 163 $('body').toggleClass('noscroll'); 164 } 165 166 function hideBurgerMenu() { 167 $('.adaptive-menu').removeClass('open'); 168 $('body').removeClass('noscroll'); 169 } 170 171 $('.header .burger').on('click', function () { 172 showBurgerMenu(); 173 $(window).on('resize', function () { 174 if (window_width > 768) { 175 hideBurgerMenu(); 176 } 177 }); 178 }); 179 $('.adaptive-menu .close').on('click', function () { 180 hideBurgerMenu(); 181 }); 182 $('.adaptive-menu').on('click', function (e) { 183 if (/adaptive-menu/gim.test($(e.target).attr('class'))) { 184 hideBurgerMenu(); 185 } 186 }); 187 ussClicker('.menu li a', 'clicked'); 188 $(window).on('DOMContentLoaded resize', function () { 189 $('.icons .icon').iconsCalculate(); 190 }); 191 192 $('.aside-banner img') 193 .one('load', function () { 194 $('.aside-banner').each(function (index, elem) { 195 const image = $(elem).find('.image img'); 196 const info = $(elem).find('.info'); 197 const height = image[0].clientHeight; 198 info.css('min-height', height + 'px'); 199 }); 200 }) 201 .each(function () { 202 if (this.complete) { 203 $(this).load(); 204 } 205 }); 206 207 isMemuSybbed($('.footer-menu ul')); 208 209 210 211}); 212 213 214function isMemuSybbed (menu){ 215 if ($(menu).find('.submenu').length != 0){ 216 $(menu).addClass('subbed'); 217 } 218}
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.