-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
24 lines (20 loc) · 944 Bytes
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//Menu desplegable
$(document).ready(function() {
$(".menubutton").click(function() { // trigger
$(this).next(".ul-list").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein.
$(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open".
});
});
//Banner Politica de privacidad
// Función para ocultar el banner al hacer clic en "Entendido"
function entendido() {
document.getElementById("avisoBanner").style.display = "none";
// Almacena la información en el almacenamiento local
localStorage.setItem("avisoBannerCerrado", "true");
}
// Mostrar el banner al cargar la página si no se ha cerrado anteriormente
document.addEventListener("DOMContentLoaded", function() {
if (localStorage.getItem("avisoBannerCerrado") !== "true") {
document.getElementById("avisoBanner").style.display = "block";
}
});