$(document).ready(function () { //AdChecker adCheck(antiab); setTimeout(function () { adCheck() }, 50000); //ZUR SICHERHEIT WICHTIGE BUTTONS KLICKBAR MACHEN. TEILWEISE WERDEN DIE AUS UNBEKANNTEN GRÜNDEN DISABLED $('button#CookieWiderruf, button#TrackingDeaktivieren').removeAttr('disabled'); //ZUSTIMMUNG CHECKEN $(".HinweisZustimmung").click(function () { //COOKIE SETZEN var jetzt = new Date(); var Jahr = jetzt.getFullYear(); document.cookie = cookieZustimmung + "=1; expires=Thu, 18 Dec " + (Jahr + 3) + " 12:00:00 UTC; path=/"; //SEITE NEU LADEN. window.location.reload(); }); $("#CookieWiderruf").click(function () { document.cookie = cookieZustimmung + "= 0; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; window.location.reload(); }); //TRACKING OPT-IN/-OUT $(".TrackingErlauben").click(function () { document.cookie = cookieZustimmungTracking + "= 0; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; window.location.reload(); }); $("#TrackingDeaktivieren").click(function () { var jetzt = new Date(); var Jahr = jetzt.getFullYear(); document.cookie = cookieZustimmungTracking + "=1; expires=Thu, 18 Dec " + (Jahr + 3) + " 12:00:00 UTC; path=/"; //SEITE NEU LADEN. window.location.reload(); }); }); function adCheck(antiab) { if (antiab == 1) { if ($("#adblock_check:visible").length) { //ELEMENT IST NOCH DA //ALSO DEN INHALT NACHLADEN UND EINFÜGEN //var content = atob(net_traffic); //$("#adblock_check").html(content); if ($("#HinweisZustimmung").length == 1) { $("#HinweisZustimmung").removeAttr("disabled"); } } else { if ($("#adblock_hinweis").length == 0) { //INHALT LÖSCHEN (FALLBACK, FALLS AD SPÄTER ENTFERNT WURDE) //var hinweis = ''; $("section.content").html('

Schalten Sie Ihren AdBlocker ab!
' + '
' + hinweis + "
"); if ($("#HinweisZustimmung").length == 1) { //BUTTON FÜR ZUSTIMMUNG ÄNDERN $("#HinweisZustimmung").text("Deaktivieren Sie zunächst Ihren AdBlocker!").attr("disabled", 1).css("background-color", "tomato").css("color", "black"); } } else { //Hinweis ist schon drin. Nichts tun. } } } } function ladeContent() { } var antiab = 0;