1// puretabs 2//https://github.com/andrew--r/puretabs/blob/master/puretabs.min.js 3!function (e) { function a(e, a) { var s = new RegExp("(^|\\s)" + a + "(\\s|$)", "g"); s.test(e.className) || (e.className = (e.className + " " + a).replace(/\s+/g, " ").replace(/(^ | $)/g, "")) } function s(e, a) { var s = new RegExp("(^|\\s)" + a + "(\\s|$)", "g"); e.className = e.className.replace(s, "$1").replace(/\s+/g, " ").replace(/(^ | $)/g, "") } function t(e, a) { var s = new RegExp("(^|\\s)" + a + "(\\s|$)", "g"); return s.test(e.className) ? !0 : !1 } var r = document.querySelectorAll.bind(document); e.pureTabs = { toggle: function (e) { var t = this.activeClassName, c = r("[data-puretabs]")[0], l = r(e.currentTarget.hash)[0]; s(r(t)[0], t.substr(1)), a(e.currentTarget, t.substr(1)), c.style.display = "none", c.removeAttribute("data-puretabs"), l.style.display = "block", l.setAttribute("data-puretabs", "") }, init: function (e, a) { var s = this; s.className = "." + e || ".puretabs", s.activeClassName = "." + a || ".puretabs--active"; var c = [].slice.call(r(s.className)); c.forEach(function (e) { t(e, s.activeClassName.substr(1)) ? r(e.hash)[0].setAttribute("data-puretabs", "") : r(e.hash)[0].style.display = "none", e.addEventListener("click", function (e) { e.preventDefault(), s.toggle.call(s, e) }) }) } } }(window); 4 5$(function () { 6 $('.cookies-alert-btn').on('click', function () { 7 $('.cookies-alert').remove(); 8 document.cookie = "BX_COOKIE_ALERT=Y;max-age=31556926;path=/"; 9 }) 10}); 11 12// $(function () { 13// $("#ORDER_CONFIRM_BUTTON").click(function (evt) { 14// if (!document.getElementById("privacy").checked || !document.getElementById("offer").checked) { 15// evt.preventDefault(); 16// alert("ÐÑимиÑе ÑоглаÑение"); 17// return false; 18// } else { 19// $("#ORDER_CONFIRM_BUTTON").click(); 20// } 21// }); 22// }); 23$(function () { 24 $('#new-hamburger').click(function () { 25 $('#new-hamburger-menu').show(300); 26 $('#new-overlay').show(300); 27 }); 28 29 $('#new-overlay, #new-close, #new-phones-close').click(function () { 30 $('#new-hamburger-menu').hide(300); 31 $('#new-overlay').hide(300); 32 $('#new-phones').hide(300); 33 }); 34 35 $('#new-cart').click(function () { 36 $("#cart-content").toggle(300); 37 }); 38 39 $('#new-callorder').click(function () { 40 $('#new-phones').show(300); 41 $('#new-overlay').show(300); 42 }); 43 44 $('#new-sort').click(function () { 45 $('#new-sort-list').toggle(300); 46 }); 47 $('.arrowww').click(function () { 48 let menu = $(this).next(); 49 console.log(this); 50 $(menu).toggle(); 51 }); 52 53 if (document.querySelectorAll(".accordion")) { 54 const accordions = document.querySelectorAll(".accordion"); 55 56 const openAccordion = (accordion) => { 57 const content = accordion.querySelector(".accordion__content"); 58 59 const clickTel = accordion.querySelector(".click_tel"); 60 61 $(clickTel).click(function (e) { 62 e.stopPropagation(); 63 }); 64 65 accordion.classList.add("accordion__active"); 66 content.style.maxHeight = content.scrollHeight + "px"; 67 }; 68 69 const closeAccordion = (accordion) => { 70 const content = accordion.querySelector(".accordion__content"); 71 accordion.classList.remove("accordion__active"); 72 content.style.maxHeight = null; 73 }; 74 75 accordions.forEach((accordion) => { 76 const intro = accordion.querySelector(".accordion__intro"); 77 const content = accordion.querySelector(".accordion__content"); 78 // const clickTel = accordion.querySelector(".click_tel"); 79 80 intro.onclick = () => { 81 if (content.style.maxHeight) { 82 closeAccordion(accordion); 83 } else { 84 accordions.forEach((accordion) => closeAccordion(accordion)); 85 86 openAccordion(accordion); 87 /* $(intro).click(function () { 88 }); 89 $(clickTel).click(function (e) { 90 e.stopPropagation(); 91 });*/ 92 93 94 95 96 } 97 }; 98 }); 99 } 100 101});
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.