le bouton "j'ai plus de 18 ans" fonctionne à nouveau

This commit is contained in:
Esenjin 2025-01-09 17:33:33 +01:00
parent abee696da8
commit 5037ec6982

View File

@ -133,15 +133,16 @@ $config = getSiteConfig();
<script> <script>
// Gestion du contenu mature // Gestion du contenu mature
function acceptMatureContent() { function acceptMatureContent() {
document.body.classList.remove('content-blurred'); document.body.classList.remove('gallery-page-mature');
const warning = document.getElementById('mature-warning'); document.body.classList.remove('content-blurred');
if (warning) { const warning = document.getElementById('mature-warning');
warning.style.opacity = '0'; if (warning) {
setTimeout(() => { warning.style.opacity = '0';
warning.style.display = 'none'; setTimeout(() => {
}, 300); warning.style.display = 'none';
} }, 300);
} }
}
</script> </script>
<button class="scroll-top" title="Retour en haut"></button> <button class="scroll-top" title="Retour en haut"></button>
<script> <script>