1/* ÐбÑие ÑкÑипÑÑ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ¾Ð² */ 2 3/*accordion*/ 4document.addEventListener("DOMContentLoaded", function (e) { 5 var acc = document.getElementsByClassName("sp-accordion"); 6 for (var accIndex = 0; accIndex < acc.length; accIndex++) { 7 if (!acc[accIndex].classList.contains('sp-accordion__initialized')) { 8 acc[accIndex].classList.add('sp-accordion__initialized'); 9 var titles = acc[accIndex].getElementsByClassName("sp-accordion-title"); 10 for (var titleIndex = 0; titleIndex < titles.length; titleIndex++) { 11 titles[titleIndex].addEventListener("click", function () { 12 this.classList.toggle("sp-accordion-title__active"); 13 var panel = this.nextElementSibling; 14 if (panel.style.display === "block") { 15 panel.style.display = "none"; 16 } else { 17 panel.style.display = "block"; 18 } 19 }); 20 } 21 } 22 } 23}); 24
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.