Promo du mois

document.onreadystatechange = function () { if (document.readyState === 'interactive') { var dateBegin = 24; var monthBegin = 2; var yearBegin = 2020; var dateEnd = 15; var monthEnd = 3; var yearEnd = 2020; var beginDate = new Date(yearBegin, monthBegin - 1, dateBegin); var endDate = new Date(yearEnd, monthEnd - 1, dateEnd); var today = new Date(); if (beginDate < today && today < endDate) { var atag_actie = localStorage.getItem("atag_actie"); if (atag_actie !== 'hide'){ var iframe = document.createElement('div'); iframe.innerHTML = '
X
'; document.body.append(iframe); var cross = document.getElementById('vzvd-401491-cross'); cross.addEventListener('click', function () { localStorage.setItem("atag_actie", 'hide'); cross.style.display = 'none'; document.getElementById('vzvd-401491').style.display = 'none'; }); } } } } window.onbeforeunload = function() { localStorage.removeItem("atag_actie"); return ''; };