Footer
This commit is contained in:
parent
f207d14fc0
commit
43b7611b25
|
|
@ -552,7 +552,43 @@
|
||||||
}
|
}
|
||||||
indicators();
|
indicators();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Contrôle de l'affichage du footer selon le focus du mot de passe
|
||||||
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
const mdpField = document.getElementById('mdp');
|
||||||
|
const footer = document.querySelector('.footer');
|
||||||
|
|
||||||
|
if (mdpField && footer) {
|
||||||
|
// Quand le champ mot de passe prend le focus
|
||||||
|
mdpField.addEventListener('focus', function() {
|
||||||
|
footer.style.opacity = '0';
|
||||||
|
footer.style.visibility = 'hidden';
|
||||||
|
footer.style.transition = 'opacity 0.3s ease, visibility 0.3s ease';
|
||||||
|
});
|
||||||
|
|
||||||
|
// Quand le champ mot de passe perd le focus
|
||||||
|
mdpField.addEventListener('blur', function() {
|
||||||
|
footer.style.opacity = '1';
|
||||||
|
footer.style.visibility = 'visible';
|
||||||
|
footer.style.transition = 'opacity 0.3s ease, visibility 0.3s ease';
|
||||||
|
});
|
||||||
|
|
||||||
|
// Aussi pour le champ entité si vous le souhaitez
|
||||||
|
const codeSocieteField = document.getElementById('codeSociete');
|
||||||
|
if (codeSocieteField) {
|
||||||
|
codeSocieteField.addEventListener('focus', function() {
|
||||||
|
footer.style.opacity = '0';
|
||||||
|
footer.style.visibility = 'hidden';
|
||||||
|
});
|
||||||
|
|
||||||
|
codeSocieteField.addEventListener('blur', function() {
|
||||||
|
footer.style.opacity = '1';
|
||||||
|
footer.style.visibility = 'visible';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in New Issue
Block a user