if ( !localStorage.YaVisitado ) {
var Div = document.createElement("div");
Div.setAttribute("style","position: fixed; bottom: 0; background-color: rgba(0,0,0,0.9); color: #fff; padding: 20px 0; width: 100%; text-align: center; font-size: 12px;");
Div.innerHTML = "
Debido a la nueva ley de Cookies de UE, le notificamos que este sitio hace uso de Cookies -
Ver detalles ";
document.body.appendChild(Div);
if ( localStorage.MayorDe18 ) {
localStorage.YaVisitado = true;
}
}
if ( !localStorage.MayorDe18 ) {
var Div = document.createElement("div");
Div.setAttribute("style","position: fixed; top:0; right:0; bottom: 0; left:0; background-color: rgba(0,0,0,0.9); color: #000; padding: 20px 0; width: 100%; text-align: center; font-size: 16px;");
Div.innerHTML = "¿Eres mayor de 18 años? -
SI NO ";
document.body.appendChild(Div);
}