WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ the cookie notice ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ function CookieNotice(closeButton) { this.CloseButton = document.getElementById(closeButton); this.Box = this.CloseButton.parentElement.style; this.hideNotice = function () { this.Box.display = 'none'; this.setCookie("CookieNoticeVisible", "none", 7); } this.setCookie = function (cname,cvalue,exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires=" + d.toGMTString(); document.cookie = cname+"="+cvalue+"; "+expires; } this.getCookie = function (cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i<ca.length; i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1); if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } this.checkCookie = function () { var value = this.getCookie("CookieNoticeVisible"); if (value === "none") { this.Box.display = 'none'; } else { this.Box.display = 'block'; } } } var watchNotice = new CookieNotice('cookie-notice-close'); watchNotice.checkCookie(); watchNotice.CloseButton.onclick = function () { watchNotice.hideNotice();}