1/* OPENINGSUREN SCRIPT */ 2 3/* Openingsuren tabs */ 4function openCity(evt, cityName) { 5 var i, tabcontent, tablinks; 6 tabcontent = document.getElementsByClassName("tabcontent"); 7 for (i = 0; i < tabcontent.length; i++) { 8 tabcontent[i].style.display = "none"; 9 } 10 tablinks = document.getElementsByClassName("tablinks"); 11 for (i = 0; i < tablinks.length; i++) { 12 tablinks[i].className = tablinks[i].className.replace(" active", ""); 13 } 14 document.getElementById(cityName).style.display = "block"; 15 evt.currentTarget.className += " active"; 16} 17 18var elements = document.getElementsByClassName('tabcontent'); 19elements[0].style.display = "block"; 20 21 22 23 24 25 26/* ACCORDION */ 27var acc = document.getElementsByClassName("accordion"); 28var i; 29 30for (i = 0; i < acc.length; i++) { 31 acc[i].addEventListener("click", function() { 32 /* Toggle between adding and removing the "active" class, 33 to highlight the button that controls the panel */ 34 this.classList.toggle("active"); 35 36 /* Toggle between hiding and showing the active panel */ 37 var panel = this.nextElementSibling; 38 if (panel.style.display === "block") { 39 panel.style.display = "none"; 40 } else { 41 panel.style.display = "block"; 42 } 43 }); 44} 45 46 47/* SINGLE BLOG POST - HIEGHT OF WINDOW ELEMENT */ 48if(document.getElementById('content-blogpost')) { 49 var heightDiv = document.getElementById('content-blogpost').clientHeight; 50 document.querySelector('.relative-socials').style.height += heightDiv + 'px'; 51} 52 53 54 55/* MOBILE MENU */ 56let burger = document.getElementById('burger'), 57 nav = document.getElementById('main-nav'), 58 htmltag = document.querySelector('html'), 59 slowmo = document.getElementById('slowmo'); 60 61burger.addEventListener('click', function(e){ 62 this.classList.toggle('is-open'); 63 nav.classList.toggle('is-open'); 64 htmltag.classList.toggle('no-scroll'); 65}); 66 67 68/* FILTER */
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.