1function lazy_loader_img() { 2 var b = [].slice.call(document.querySelectorAll("img[data-src]")), 3 d = !1; 4 if ("IntersectionObserver" in window) { 5 var e = new IntersectionObserver(function(a, c) { 6 a.forEach(function(a) { 7 a.isIntersecting && (a = a.target, a.src = a.getAttribute("data-src"), a.removeAttribute("data-src"), e.unobserve(a)) 8 }) 9 }); 10 b.forEach(function(a) { 11 e.observe(a) 12 }) 13 } else { 14 var c = function() { 15 !1 === d && (d = !0, setTimeout(function() { 16 b.forEach(function(a) { 17 a.getBoundingClientRect().top <= window.innerHeight && 0 <= a.getBoundingClientRect().bottom && 18 "none" !== getComputedStyle(a).display && (a.src = a.getAttribute("data-src"), a.removeAttribute("data-src"), b = b.filter(function(c) { 19 return c !== a 20 }), 0 === b.length && (document.removeEventListener("scroll", c), window.removeEventListener("resize", c), window.removeEventListener("orientationchange", c))) 21 }); 22 d = !1 23 }, 200)) 24 }; 25 document.addEventListener("scroll", c); 26 window.addEventListener("resize", c); 27 window.addEventListener("load", c); 28 window.addEventListener("orientationchange", c) 29 } 30} 31document.addEventListener("DOMContentLoaded", lazy_loader_img); 32 33function lazy_loader_background() { 34 "undefined" === typeof window.lazyBackgrounds && (window.lazyBackgrounds = []); 35 var b = [].slice.call(document.querySelectorAll("[data-lazy-background]")); 36 window.lazyBackgrounds = window.lazyBackgrounds.concat(b); 37 var d = !1; 38 "IntersectionObserver" in window ? ("undefined" === typeof window.lazyBackgroundsObserver && (window.lazyBackgroundsObserver = new IntersectionObserver(function(b, c) { 39 b.forEach(function(a) { 40 a.isIntersecting && (a = a.target, a.getAttribute("data-lazy-background") && (a.style.backgroundImage = 41 "url(" + a.getAttribute("data-lazy-background") + ")", a.removeAttribute("data-lazy-background")), window.lazyBackgroundsObserver.unobserve(a), "undefined" !== typeof window.mobile_backgrounds_update && window.mobile_backgrounds_update()) 42 }) 43 })), window.lazyBackgrounds.forEach(function(b) { 44 window.lazyBackgroundsObserver.observe(b) 45 })) : ("undefined" !== typeof window.lazyBackgroundsObserver && window.lazyBackgroundsObserver || (window.lazyBackgroundsObserver = function() { 46 !1 === d && (d = !0, setTimeout(function() { 47 window.lazyBackgrounds.forEach(function(b) { 48 if (b.getBoundingClientRect().top <= 49 window.innerHeight && 0 <= b.getBoundingClientRect().bottom && "none" !== getComputedStyle(b).display) { 50 var c = b.getAttribute("data-lazy-background"); 51 b.style.backgroundImage = "url('" + c + "')"; 52 b.removeAttribute("data-lazy-background"); 53 window.lazyBackgrounds = window.lazyBackgrounds.filter(function(a) { 54 return a !== b 55 }); 56 0 === window.lazyBackgrounds.length && (document.removeEventListener("scroll", window.lazyBackgroundsObserver), window.removeEventListener("resize", window.lazyBackgroundsObserver), window.removeEventListener("orientationchange", 57 window.lazyBackgroundsObserver)) 58 } 59 }); 60 d = !1 61 }, 200)) 62 }), document.addEventListener("scroll", window.lazyBackgroundsObserver), window.addEventListener("resize", window.lazyBackgroundsObserver), window.addEventListener("load", window.lazyBackgroundsObserver), window.addEventListener("orientationchange", window.lazyBackgroundsObserver)) 63} 64document.addEventListener("DOMContentLoaded", lazy_loader_background); 65 66 67$(document).ready(function () { 68 $('.js-open-menu').on('click', function () { 69 $('.js-menu').addClass('active'); 70 $('#menu-title.js-open-menu').removeClass('js-open-menu'); 71 }); 72 $(document).mouseup(function (e){ // ÑобÑÑие клика по веб-докÑменÑÑ 73 var div = $('.js-menu'); // ÑÑÑ ÑказÑваем клаÑÑ ÑлеменÑа 74 if (!div.is(e.target) // еÑли клик бÑл не по наÑÐµÐ¼Ñ Ð±Ð»Ð¾ÐºÑ 75 && div.has(e.target).length === 0) { // и не по его доÑеÑним ÑлеменÑам 76 div.removeClass('active'); // ÑкÑÑваем его 77 $('#menu-title').addClass('js-open-menu'); 78 } 79 }); 80 81 $('.js-open-search').on('click', function () { 82 $('.js-form-search').addClass('active'); 83 $('#search_form.js-form-search').removeClass('js-form-search'); 84 }); 85 $(document).mouseup(function (e){ // ÑобÑÑие клика по веб-докÑменÑÑ 86 var div = $('.js-form-search');
86 // ÑÑÑ ÑказÑваем клаÑÑ ÑлеменÑа 87 if (!div.is(e.target) // еÑли клик бÑл не по наÑÐµÐ¼Ñ Ð±Ð»Ð¾ÐºÑ 88 && div.has(e.target).length === 0) { // и не по его доÑеÑним ÑлеменÑам 89 div.removeClass('active'); // ÑкÑÑваем его 90 $('#search_form').addClass('js-form-search'); 91 } 92 }); 93 $(".tabs__content table").wrap("<div class='tab__content-table'></div>"); 94 $(".content_main_WORKAREA .center_block_content table").wrap("<div class='tab__content-table'></div>"); 95 96 $('.submenu__category-item a').on ('click', function () { 97 var block = $(this).data('target'); 98 $('.submenu__category-item a.active').removeClass('active'); 99 if (!$(this).hasClass('active')) { 100 $(this).addClass('active'); 101 } 102 $('.submenu__category_inner.active').removeClass('active'); 103 if (!$(block).hasClass('active')) { 104 $(block).addClass('active'); 105 } 106 }); 107 108 109 $("#money").maskMoney({thousands:'', decimal:'.', allowZero:true, suffix: ' â½'});; 110}); 111
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.