1window.addEventListener('DOMContentLoaded', () => { 2 3 4 5 const sidebar = document.querySelector('.header__sidebar'), 6 //menuList = document.querySelector('.menu__list'), 7 menuItem = document.querySelectorAll('.menu li a'), 8 hamburger = document.querySelector('.hamburger'); 9 10 hamburger.addEventListener('click', () => { 11 hamburger.classList.toggle('hamburger_active'); 12 sidebar.classList.toggle('header__sidebar_active'); 13 //menuList.classList.toggle('container'); 14 }); 15 16 menuItem.forEach(item => { 17 item.addEventListener('click', (e) => { 18 //e.preventDefault(); 19 hamburger.classList.toggle('hamburger_active'); 20 sidebar.classList.toggle('header__sidebar_active'); 21 }) 22 }); 23 24 $(function() { 25 $(".lazy").lazyload(); 26 }); 27 28 new Swiper(".rules__slider--mobile", { 29 slidesPerView: 1, 30 spaceBetween: 30, 31 autoHeight: true, 32 navigation: { 33 nextEl: ".swiper-button-next", 34 prevEl: ".swiper-button-prev" 35 }, 36 pagination: { 37 el: ".swiper-pagination.route__pag", 38 type: "bullets" 39 } 40 }); 41 42}); 43 44$(document).ready(function () { 45 YaMapsShown = false; 46 $(window).scroll(function () { 47 if (!YaMapsShown) { 48 if ( 49 $(window).scrollTop() + $(window).height() > 50 $(document).height() - 457 51 ) { 52 showYaMaps(); 53 YaMapsShown = true; 54 } 55 } 56 }); 57 function showYaMaps() { 58 var script = document.createElement("script"); 59 script.type = "text/javascript"; 60 script.src = 61 "https://api-maps.yandex.ru/services/constructor/1.0/js/?um=constructor%3A935ecaccfa030000a607632df855edd8d964e0430b6b9e62b879cf4166e7a31d&width=100%25&height=457&lang=ru_RU&scroll=true"; 62 document.getElementById("YaMaps").appendChild(script); 63 } 64 /*-------------------<cardSlider>------------------------------------------------------*/ 65/* function getActive() { 66 // get active 67 var get_active = $("#dp-slider .dp_item:first-child").data("class"); 68 $("#dp-dots li").removeClass("active"); 69 $("#dp-dots li[data-class=" + get_active + "]").addClass("active"); 70 } 71 $("#dp-next").on("click", function () { 72 var total = $(".dp_item").length; 73 $("#dp-slider .dp_item:first-child").hide().appendTo("#dp-slider").fadeIn(); 74 $.each($(".dp_item"), function (index, dp_item) { 75 $(dp_item).attr("data-position", index + 1); 76 }); 77 getActive(); 78 }); 79 80 $("#dp-prev").on("click", function () { 81 var total = $(".dp_item").length; 82 $("#dp-slider .dp_item:last-child").hide().prependTo("#dp-slider").fadeIn(); 83 $.each($(".dp_item"), function (index, dp_item) { 84 $(dp_item).attr("data-position", index + 1); 85 }); 86 87 getActive(); 88 }); 89 90 $("#dp-dots li").click(function () { 91 $("#dp-dots li").removeClass("active"); 92 $(this).addClass("active"); 93 var get_slide = $(this).attr("data-class"); 94 console.log(get_slide); 95 $("#dp-slider .dp_item[data-class=" + get_slide + "]") 96 .hide() 97 .prependTo("#dp-slider") 98 .fadeIn(); 99 $.each($(".dp_item"), function (index, dp_item) { 100 $(dp_item).attr("data-position", index + 1); 101 }); 102 }); 103 104 $("body").on("click", "#dp-slider .dp_item:not(:first-child)", function () { 105 var get_slide = $(this).attr("data-class"); 106 console.log(get_slide); 107 $("#dp-slider .dp_item[data-class=" + get_slide + "]") 108 .hide() 109 .prependTo("#dp-slider") 110 .fadeIn(); 111 $.each($(".dp_item"), function (index, dp_item) { 112 $(dp_item).attr("data-position", index + 1); 113 }); 114 115 getActive(); 116 }); 117 118 $(".minus").on('click', function () { 119 var $input = $(this).parent().find(".counter__quantity"); 120 var count = parseInt($input.val()) - 1; 121 count = count < 1 ? 1 : count; 122 $input.val(count); 123 $input.change(); 124 return false; 125 }); 126 $(".plus").on("click", function () { 127 var $input = $(this).parent().find(".counter__quantity"); 128 $input.val(parseInt($input.val()) + 1); 129 $input.change(); 130 return false;
131 });*/ 132}); 133/*---------</cardSlider>-----------------------------------------------------------------*/
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.