1function isInternetExplorer() { 2 let ua = window.navigator.userAgent, 3 msie = ua.indexOf("MSIE "); 4 5 if(msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)){ 6 return true; 7 } 8 9 return false; 10} 11 12function incompleteFeatureSupport() { 13 // Check grid 14 $('<div class="feature-check--grid"><div></div></div>').appendTo('body'); 15 16 // Check aspect-ratio 17 $('<div class="feature-check--aspect-ratio">').appendTo('body'); 18 19 if($(".feature-check--grid > div").width() === 0 || $(".feature-check--aspect-ratio").height() === 0){ 20 $(".feature-check--aspect-ratio").remove(); 21 $(".feature-check--grid").remove(); 22 return true; 23 } 24 25 $(".feature-check--aspect-ratio").remove(); 26 $(".feature-check--grid").remove(); 27 return false; 28 29} 30 31document.onreadystatechange = function(){ 32 if(document.readyState === "complete" && document.cookie.indexOf('cookie_browser_notification') == -1){ 33 if(isInternetExplorer() || incompleteFeatureSupport()){ 34 // Display notification 35 let aHTML = []; 36 aHTML.push('<div class="browser_notification_overlay"></div>'); 37 aHTML.push('<div class="browser_notification">'); 38 aHTML.push('<span class="browser_notification_close"></span>'); 39 aHTML.push('<p><strong>Ihr Browser wird nicht unterstützt!</strong><br />Sie verwenden einen veralteten Browser, der von dieser Webseite nicht mehr unterstützt wird.</p>'); 40 aHTML.push('<p><a href="https://bestvpn.org/outdatedbrowser/de" target="_blank" rel="noopener">Browser aktualisieren</a></p>'); 41 aHTML.push('</div>'); 42 43 // Append to body 44 document.body.innerHTML += aHTML.join(''); 45 46 document.querySelector('.browser_notification .browser_notification_close').addEventListener('click',function(){ 47 let expirationDate = new Date; 48 expirationDate.setFullYear(expirationDate.getFullYear() + 1); 49 document.cookie = 'cookie_browser_notification=1; expires=' + expirationDate.toGMTString() + ";"; 50 51 document.querySelector('.browser_notification_overlay').style.display = 'none'; 52 document.querySelector('.browser_notification').style.display = 'none'; 53 }); 54 } 55 } 56};
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.