1document.addEventListener("DOMContentLoaded", function() { 2 // УдалÑем клаÑÑ 'show' Ñ Ð²ÑÐµÑ ÑлеменÑов аккоÑдеона 3 var accordionItems = document.querySelectorAll('#accordionMns'); 4 accordionItems.forEach(item => item.classList.remove('show')); 5 6 // ÐобавлÑем клаÑÑ 'show' ÑолÑко к нÑÐ¶Ð½Ð¾Ð¼Ñ ÑлеменÑÑ 7 var hash = window.location.hash; 8 if(hash === "#heading_organizations") { 9 document.getElementById("organizations").classList.add("show"); 10 }else if(hash === "#heading_individuals") { 11 document.getElementById("individuals").classList.add("show"); 12 }else if(hash === "#heading_entrepreneurs") { 13 document.getElementById("entrepreneurs").classList.add("show"); 14 }else { 15 document.getElementById("individuals").classList.add("show"); 16 } 17 const targetIds = ['heading_organizations', 'heading_individuals', 'heading_entrepreneurs']; 18 function handleLinkClick(event) { 19 //event.preventDefault(); // ÐÑедоÑвÑаÑаем ÑÑандаÑÑное поведение ÑÑÑлки 20 const fullHref = this.getAttribute('href'); // ÐолÑÑаем полнÑй href 21 const id = fullHref.split('/').pop().split('#')[1]; // Ðзвлекаем иденÑиÑикаÑÐ¾Ñ Ð¸Ð· href 22 // ÐÑовеÑÑем, ÑвлÑеÑÑÑ Ð»Ð¸ иденÑиÑикаÑÐ¾Ñ Ð¾Ð´Ð½Ð¸Ð¼ из Ñелей 23 if (targetIds.includes(id)) { 24 // УдалÑем клаÑÑ 'show' Ñ Ð²ÑÐµÑ ÑлеменÑов аккоÑдеона 25 var accordionItems = document.querySelectorAll('.accordion-item'); 26 accordionItems.forEach(item => item.classList.remove('show')); 27 28 // ÐобавлÑем клаÑÑ 'show' к ÑооÑвеÑÑÑвÑÑÑÐµÐ¼Ñ ÑлеменÑÑ 29 document.getElementById(id).classList.add("show"); 30 } 31 } 32 document.querySelectorAll('a[href^="/documents/#"]').forEach(link => link.addEventListener('click', handleLinkClick)); 33});
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.