1/* 2 (function($) { 3 $('#zoekveld').focus(function(){ 4 $(this).attr('placeholder',''); 5 }); 6 $('#zoekveld').focusout(function(){ 7 $(this).attr('placeholder','Zoeken...'); 8 }); 9 })(jQuery); 10 11 12 13 14 function getFocus() { 15 document.getElementById("zoekveld").focus(); 16 } 17 18 (function($) { 19 var curpathnav = window.location.href; 20 $('.topnav a').each(function() { 21 if (this.href === curpathnav) { 22 $(this).addClass('topnavactive'); 23 } 24 }); 25 })(jQuery); 26 27 28 (function($) { 29 if (navigator.userAgent.match(/iPhone|iPod|android/i) == null) { 30 curpathnav = window.location.pathname; 31 if (curpathnav == '/' && !window.location.search ) { 32 $('.topnav').css('border-bottom-right-radius','0px'); 33 $('.topnavthome').css('border-bottom-left-radius','0px'); 34 } else { 35 $('.topnav').css('border-radius','15px'); 36 $('.topnavthome').css('border-bottom-left-radius','15px'); 37 $('.topnavthome').css('border-top-left-radius','15px'); 38 } 39 } 40 })(jQuery); 41 42 function menuswitch() { 43 var x = document.getElementById("myTopnav"); 44 var xx = document.getElementsByClassName("topnavbarsearch"); 45 if (x.className === "topnav") { 46 x.className += " responsive"; 47 xx[0].style.display = "none"; 48 } else { 49 x.className = "topnav"; 50 xx[0].style.display = "block"; 51 } 52 } 53 54 55 if (navigator.userAgent.match(/iPhone|iPod|android/i) == null) { 56 var observer = new IntersectionObserver(function(entries) { 57 if(entries[0].intersectionRatio === 0) 58 issticky() 59 else if(entries[0].intersectionRatio === 1) 60 nonsticky(); 61 }, { threshold: [0,1] }); 62 63 observer.observe(document.querySelector("#menutrigger")); 64 } 65 66 function issticky(){ 67 (function($) { 68 $('.topnav').css('border-radius','0px'); 69 $('.topnavthome').css('border-bottom-left-radius','0px'); 70 $('.topnavthome').css('border-top-left-radius','0px'); 71 if (document.querySelector('.flex-pauseplay') !== null) { 72 if ('ontouchstart' in window) { 73 $('.pause').trigger('touchstart'); 74 } else { 75 $(".pause").click(); 76 } 77 } 78 })(jQuery); 79 } 80 81 function nonsticky(){ 82 (function($) { 83 84 let windowwidth = window.innerWidth; 85 //console.log('==='+windowwidth); 86 87 $('.topnav').css('border-radius','15px'); 88 $('.topnavthome').css('border-top-left-radius','15px'); 89 curpathnav = window.location.pathname; 90 if (curpathnav == '/' && !window.location.search ) { 91 $('.topnav').css('border-bottom-right-radius','0px'); 92 93 if ( windowwidth < 600 ) { 94 $('.topnav').css('border-bottom-left-radius','0px'); 95 $('.topnavbarsearch').css('border-top-right-radius','15px'); 96 } 97 98 99 } else { 100 101 if ( windowwidth < 600 ) { 102 $('.topnav').css('border-radius','0px'); 103 } else { 104 $('.topnav').css('border-radius','15px'); 105 $('.topnavthome').css('border-bottom-left-radius','15px'); 106 } 107 108 } 109 110 111 112 113 if (document.querySelector('.flex-pauseplay') !== null) { 114 if ('ontouchstart' in window) { 115 $('.play').trigger('touchstart'); 116 } else { 117 $(".play").click(); 118 } 119 } 120 })(jQuery); 121 } 122 123*/ 124 125 function menuswitch() { 126 var x = document.getElementById("myTopnav"); 127 var xx = document.getElementsByClassName("topnavbarsearch"); 128 if (x.className === "topnav") { 129 x.className += " responsive"; 130 xx[0].style.display = "none"; 131 } else { 132 x.className = "topnav"; 133 xx[0].style.display = "block"; 134 } 135 } 136 137 138 139 document.addEventListener("DOMContentLoaded", function() { 140 // Focus event voor het zoekveld 141 var zoekveld = document.getElementById('zoekveld'); 142 zoekveld.addEventListener('focus', function() { 143 this.setAttribute('placeholder', ''); 144 }); 145 zoekveld.addEventListener('focusout', function() { 146 this.setAttribute('placeholder', 'Zoeken...'); 147 }); 148 149 function getFocus() { 150 document.getElementById("zoekveld").focus(); 151 } 152 153 // Huidige pad controleren voor actieve navigatie 154 var curpathnav = window.location.href; 155 var topnavLinks = document.querySelectorAll('.topnav a'); 156 topnavLinks.forEach(function(link) { 157 if (link.href === curpathnav) { 158 link.classList.add('topnavactive'); 159 } 160 }); 161 162 if (navigator.userAgent.match(/iPhone|iPod|android/i) == null) { 163 var curpathnav = window.location.pathname; 164 if (curpathnav == '/' && !window.location.search) { 165 document.querySelector('.topnav').style.borderBottomRightRadius = '0px'; 166 document.querySelector('.topnavthome').style.borderBottomLeftRadius = '0px'; 167 } else { 168 document.querySelector('.topnav').style.borderRadius = '15px'; 169 document.querySelector('.topnavthome').style.borderBottomLeftRadius = '15px'; 170 document.querySelector('.topnavthome').style.borderTopLeftRadius = '15px'; 171 } 172 } 173 174 // IntersectionObserver instellen 175 if (navigator.userAgent.match(/iPhone|iPod|android/i) == null) { 176 var observer = new IntersectionObserver(function(entries) { 177 if (entries[0].intersectionRatio === 0) { 178 issticky(); 179 } else if (entries[0].intersectionRatio === 1) { 180 nonsticky(); 181 } 182 }, { threshold: [0, 1] }); 183 184 observer.observe(document.querySelector("#menutrigger")); 185 } 186 187 function issticky() { 188 document.querySelector('.topnav').style.borderRadius = '0px'; 189 document.querySelector('.topnavthome').style.borderBottomLeftRadius = '0px'; 190 document.querySelector('.topnavthome').style.borderTopLeftRadius = '0px'; 191 if (document.querySelector('.flex-pauseplay') !== null) { 192 if ('ontouchstart' in window) { 193 document.querySelector('.pause').dispatchEvent(new Event('touchstart')); 194 } else { 195 document.querySelector(".pause").click(); 196 } 197 } 198 } 199 200 function nonsticky() { 201 let windowwidth = window.innerWidth; 202 203 document.querySelector('.topnav').style.borderRadius = '15px'; 204 document.querySelector('.topnavthome').style.borderTopLeftRadius = '15px'; 205 var curpathnav = window.location.pathname; 206 if (curpathnav == '/' && !window.location.search) { 207 document.querySelector('.topnav').style.borderBottomRightRadius = '0px'; 208 if (windowwidth < 600) { 209 document.querySelector('.topnav').style.borderBottomLeftRadius = '0px'; 210 document.querySelector('.topnavbarsearch').style.borderTopRightRadius = '15px'; 211 } 212 } else { 213 if (windowwidth < 600) { 214 document.querySelector('.topnav').style.borderRadius = '0px'; 215 } else { 216 document.querySelector('.topnav').style.borderRadius = '15px'; 217 document.querySelector('.topnavthome').style.borderBottomLeftRadius = '15px'; 218 } 219 } 220 221 if (document.querySelector('.flex-pauseplay') !== null) { 222 if ('ontouchstart' in window) { 223 document.querySelector('.play').dispatchEvent(new Event('touchstart')); 224 } else { 225 document.querySelector(".play").click(); 226 } 227 } 228 } 229 });
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.