Kirchberg Startseite Kontakt Impressum

Drucken

-A +A

Der Herbst ist da

Man kann erkennen, wie sehr sich die Wackelzähne mit ihrem Baumprojekt auseinandersetzen.

Jeden Freitag lernen wir etwas Neues. Wir sind gespannt, was der Herbst noch bringt.

var domIsReady = (function (domIsReady) { var isBrowserIeOrNot = function () { return (!document.attachEvent || typeof document.attachEvent === 'undefined' ? 'not-ie' : 'ie'); } domIsReady = function (callback) { if (callback && typeof callback === 'function') { if (isBrowserIeOrNot() !== 'ie') { document.addEventListener('DOMContentLoaded', function () { return callback(); }); } else { document.attachEvent('onreadystatechange', function () { if (document.readyState === 'complete') { return callback(); } }); } } else { console.error('The callback is not a function!'); } } return domIsReady; })(domIsReady || {}); (function (document, window, domIsReady, undefined) { domIsReady(function () { var cookieButton = document.getElementById('eu_cookie_button'); cookieButton.addEventListener('click', function (e) { // prevent the button from actually submitting the form e.preventDefault(); // immediately remove cookie message from dom var cookieForm = document.getElementById('eu_cookie_form'); cookieForm.parentNode.removeChild(mCCForm); // now let's send the request to place the cookie // we could set the cookie via js, // but the code with all user defined settings is already there var xhr = new XMLHttpRequest(); xhr.open('POST', './', true); xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.send('action=acceptCookies'); }); }); })(document, window, domIsReady);