function mb_age_warning_confirm() { localStorage.mb_age_warning_verified = "1"; document.getElementById("mb_age_warning").remove(); } /* edit below if you want to change the 18+ text */ function mb_age_warning() { $("body").append("

Je moet 18 jaar of ouder zijn om verder te mogen gaan.
Ik ben 18 jaar of ouder, Ga verder >>
Leave
") } $( document ).ready(function() { if(localStorage.mb_age_warning_verified === undefined) { mb_age_warning(); } });