Supprimer le timeout auto-retour du menu admin
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -916,7 +916,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="/js/websocket.js?v=16"></script>
|
<script src="/js/websocket.js?v=16"></script>
|
||||||
<script src="/js/app.js?v=17"></script>
|
<script src="/js/app.js?v=18"></script>
|
||||||
<script src="/js/camera.js?v=15"></script>
|
<script src="/js/camera.js?v=15"></script>
|
||||||
<script src="/js/effects.js?v=4"></script>
|
<script src="/js/effects.js?v=4"></script>
|
||||||
<script src="/js/gallery.js?v=3"></script>
|
<script src="/js/gallery.js?v=3"></script>
|
||||||
|
|||||||
@@ -127,27 +127,8 @@ function allerA(ecran) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let _adminTimeoutId = null;
|
function demarrerTimeoutAdmin() {}
|
||||||
const ADMIN_TIMEOUT_MS = 30000;
|
function arreterTimeoutAdmin() {}
|
||||||
|
|
||||||
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 recommencer() {
|
function recommencer() {
|
||||||
photosSession = [];
|
photosSession = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user