1function tarieventabel() { 2 const isKadasterSearched = new URLSearchParams(window.location.search).has('_KadasterSearchPortlet_keywords'); 3 4 if (isKadasterSearched) { 5 function focusFirstTarieventabelCategory() { 6 document.getElementsByClassName('tarieventabel-button')[0].scrollIntoView({behavior: "smooth", block: "center"}); 7 document.getElementsByClassName('tarieventabel-button')[0].focus(); 8 } 9 10 function openAllTarieventabelCategoryDropdowns() { 11 const tarieventabelCategoryButtons = document.querySelectorAll("#accordion-tarieventabel .collapsed"); 12 tarieventabelCategoryButtons.forEach(button => button.click()); 13 } 14 15 function focusTarieventabelAlert() { 16 document.getElementById('tarieventabel-alert')?.scrollIntoView({behavior: "smooth", block: "center"}); 17 document.getElementById('tarieventabel-alert')?.focus(); 18 } 19 20 const searchwordIsEmpty = new URLSearchParams(window.location.search).get('_KadasterSearchPortlet_keywords') === ''; 21 if (!searchwordIsEmpty) { 22 const tarieventabelOnPage = document.getElementById('accordion-tarieventabel'); // keyword results in hits 23 if (tarieventabelOnPage) { 24 openAllTarieventabelCategoryDropdowns(); 25 focusFirstTarieventabelCategory(); 26 } else { 27 focusTarieventabelAlert(); 28 } 29 } 30 } 31} 32 33window.addEventListener("load", tarieventabel)
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.