This commit is contained in:
KONE SOREL 2025-12-22 09:16:38 +00:00
parent fb78962fc1
commit a87e165f97

View File

@ -554,12 +554,10 @@ foreach ($menus as $key0 => $menuParent) {
<!-- Service Worker Registration --> <!-- Service Worker Registration -->
<script src="/Js/sw-register.js?ver=2025.12.22.00"></script> <script src="/Js/sw-register.js?ver=2025.12.22.00"></script>
</body>
</html>
<script> <script>
// Test du système de menus // Test du système de menus
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
console.group('=== TEST SYSTÈME DE MENUS ==='); console.group('=== TEST SYSTÈME DE MENUS ===');
// Vérifier l'état initial // Vérifier l'état initial
@ -646,10 +644,10 @@ document.addEventListener('DOMContentLoaded', function() {
debugIndicator.textContent = `Menu: ${activeMenuId || 'Aucun'}`; debugIndicator.textContent = `Menu: ${activeMenuId || 'Aucun'}`;
document.body.appendChild(debugIndicator); document.body.appendChild(debugIndicator);
} }
}); });
// Fonction globale pour tester depuis la console // Fonction globale pour tester depuis la console
function testMenuSystem() { function testMenuSystem() {
console.log('=== TEST MANUEL DU SYSTÈME DE MENUS ==='); console.log('=== TEST MANUEL DU SYSTÈME DE MENUS ===');
if (!window.appNavigation) { if (!window.appNavigation) {
@ -683,8 +681,11 @@ function testMenuSystem() {
} }
}, 500); }, 500);
}, 500); }, 500);
} }
// Exposer la fonction de test
window.testMenuSystem = testMenuSystem;
</script>
</body>
</html>
// Exposer la fonction de test
window.testMenuSystem = testMenuSystem;
</script>