diff --git a/frontend/index.html b/frontend/index.html index cf90df0..436cc6c 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -916,7 +916,7 @@ - + diff --git a/frontend/js/app.js b/frontend/js/app.js index 85f1ca6..29f52bd 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -127,27 +127,8 @@ function allerA(ecran) { } } -let _adminTimeoutId = null; -const ADMIN_TIMEOUT_MS = 30000; - -function demarrerTimeoutAdmin() { - arreterTimeoutAdmin(); - _adminTimeoutId = setTimeout(() => { allerA('accueil'); }, ADMIN_TIMEOUT_MS); - const ecranAdmin = document.getElementById('ecran-admin'); - ecranAdmin.removeEventListener('pointerdown', _resetAdminTimeout); - ecranAdmin.addEventListener('pointerdown', _resetAdminTimeout); -} - -function _resetAdminTimeout() { - if (_adminTimeoutId) { - clearTimeout(_adminTimeoutId); - _adminTimeoutId = setTimeout(() => { allerA('accueil'); }, ADMIN_TIMEOUT_MS); - } -} - -function arreterTimeoutAdmin() { - if (_adminTimeoutId) { clearTimeout(_adminTimeoutId); _adminTimeoutId = null; } -} +function demarrerTimeoutAdmin() {} +function arreterTimeoutAdmin() {} function recommencer() { photosSession = [];