hts-ai commited on
Commit
2c272e1
·
verified ·
1 Parent(s): f3c0867

🐳 16/02 - 00:41 - tu parle de quelle bouton ?  rien ne fonctionne il s'ouvre pas les page Contacts et actifsOpérationsGénération narrativeMémoire sécuriséeNoyau cognitifAnti-expositionConfiguration s

Browse files
Files changed (1) hide show
  1. index.html +45 -0
index.html CHANGED
@@ -878,6 +878,51 @@
878
  >
879
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
880
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
881
  <!-- Tier 1 Architecture - API Config Sécurisée -->
882
  <script>
883
  // Initialisation critique AVANT tout chargement de composants
 
878
  >
879
  <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
880
 
881
+ <!-- Navigation Handler - Fix pour ouverture des pages -->
882
+ <script>
883
+ document.addEventListener('DOMContentLoaded', () => {
884
+ // Gestionnaire de navigation pour la sidebar
885
+ document.addEventListener('nav-change', (e) => {
886
+ const page = e.detail?.page;
887
+ if (!page) return;
888
+
889
+ console.log('[Navigation] Changement vers:', page);
890
+
891
+ // Masquer toutes les sections vues
892
+ document.querySelectorAll('main > section[id^="view-"]').forEach(section => {
893
+ section.classList.add('hidden');
894
+ section.classList.remove('fade-in');
895
+ });
896
+
897
+ // Afficher la vue cible
898
+ const targetId = `view-${page}`;
899
+ const targetView = document.getElementById(targetId);
900
+
901
+ if (targetView) {
902
+ targetView.classList.remove('hidden');
903
+ targetView.classList.add('fade-in');
904
+
905
+ // Réinitialiser les icônes feather dans la nouvelle vue
906
+ if (typeof feather !== 'undefined') {
907
+ setTimeout(() => feather.replace(), 100);
908
+ }
909
+
910
+ console.log('[Navigation] Vue affichée:', targetId);
911
+ } else {
912
+ console.error('[Navigation] Vue non trouvée:', targetId);
913
+ }
914
+ });
915
+
916
+ // Navigation au chargement initial (hash ou dashboard par défaut)
917
+ const initialHash = window.location.hash.replace('#', '');
918
+ if (initialHash && document.getElementById(`view-${initialHash}`)) {
919
+ document.dispatchEvent(new CustomEvent('nav-change', {
920
+ detail: { page: initialHash }
921
+ }));
922
+ }
923
+ });
924
+ </script>
925
+
926
  <!-- Tier 1 Architecture - API Config Sécurisée -->
927
  <script>
928
  // Initialisation critique AVANT tout chargement de composants