English connexion

This commit is contained in:
KONE SOREL 2025-12-14 12:45:53 +00:00
parent 5b987f6ea9
commit 037f788dc0

View File

@ -62,7 +62,50 @@
</button> </button>
</div> </div>
<div class="footer"> <div id="div_patienter"></div>
<div class="footer" id="autoHideFooter"
style="transition: opacity 0.3s ease;"
onmouseover="this.style.opacity='1'"
onmouseout="if(document.activeElement && document.activeElement.id === 'mdp') this.style.opacity='0'">
All rights reserved <a href="https://www.ebene.info/">&copy; EBENE SOLUTIONS INFORMATIQUES</a> All rights reserved <a href="https://www.ebene.info/">&copy; EBENE SOLUTIONS INFORMATIQUES</a>
</div> </div>
<?php endif; ?> <?php endif; ?>
<script>
// Script garantissant le fonctionnement
(function() {
function updateFooterVisibility() {
const footer = document.getElementById('autoHideFooter');
if (!footer) return;
const activeElement = document.activeElement;
const shouldHide = activeElement && (
activeElement.id === 'mdp' ||
activeElement.id === 'login' ||
activeElement.id === 'codeSociete'
);
if (shouldHide) {
footer.style.opacity = '0';
footer.style.pointerEvents = 'none';
footer.style.visibility = 'hidden';
} else {
footer.style.opacity = '1';
footer.style.pointerEvents = 'auto';
footer.style.visibility = 'visible';
}
}
// Écouter les changements de focus
document.addEventListener('focusin', updateFooterVisibility, true);
document.addEventListener('focusout', function() {
setTimeout(updateFooterVisibility, 10);
}, true);
// Vérifier périodiquement (backup)
setInterval(updateFooterVisibility, 200);
// Initialiser
setTimeout(updateFooterVisibility, 100);
})();
</script>