Download index.html from LoicUX/sdl: direct link, hf CLI and curl.
- Browser
- Download file 31.9 kB
-
https://huggingface.co/spaces/LoicUX/sdl/resolve/main/index.html
- Command line
-
hf download hf://spaces/LoicUX/sdl/index.html
-
curl -L -o index.html https://huggingface.co/spaces/LoicUX/sdl/resolve/main/index.html
31.9 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QHSE Manager Pro - Plateforme SaaS pour responsables QHSE</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| /* Animation pour la modale */ | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(20px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .modal-animation { | |
| animation: fadeIn 0.3s ease-out forwards; | |
| } | |
| .rotate-180 { | |
| transform: rotate(180deg); | |
| } | |
| .children-container { | |
| max-height: 0; | |
| overflow: hidden; | |
| transition: max-height 0.3s ease-out; | |
| } | |
| .children-container:not(.hidden) { | |
| max-height: 500px; | |
| } | |
| /* Style personnalisé pour les colonnes de navigation */ | |
| .nav-column { | |
| transition: all 0.3s ease; | |
| min-height: 400px; | |
| } | |
| /* Effet de survol pour les cartes */ | |
| .card-hover:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm sticky top-0 z-50"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <!-- Logo --> | |
| <div class="flex items-center space-x-2"> | |
| <div class="bg-blue-600 text-white p-2 rounded-lg"> | |
| <i class="fas fa-shield-alt text-xl"></i> | |
| </div> | |
| <span class="text-xl font-bold text-gray-800">QHSE Manager Pro</span> | |
| </div> | |
| <!-- Navigation principale --> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition">Tableau de bord</a> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition">Rapports</a> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition">Formations</a> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition">Documentation</a> | |
| </nav> | |
| <!-- Bouton de navigation contextuelle --> | |
| <button id="openContextNav" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center space-x-2 transition"> | |
| <i class="fas fa-compass"></i> | |
| <span>Naviguer par contexte</span> | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="bg-gradient-to-r from-blue-600 to-blue-800 text-white py-16"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h1 class="text-4xl md:text-5xl font-bold mb-6">Votre plateforme QHSE tout-en-un</h1> | |
| <p class="text-xl mb-8 max-w-3xl mx-auto">Gérez la Qualité, l'Hygiène, la Sécurité et l'Environnement de votre organisation avec nos outils spécialisés</p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <button class="bg-white text-blue-600 px-6 py-3 rounded-lg font-semibold hover:bg-gray-100 transition">Démarrer l'essai gratuit</button> | |
| <button class="border-2 border-white text-white px-6 py-3 rounded-lg font-semibold hover:bg-white hover:text-blue-600 transition">Voir la démo</button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Modale de navigation contextuelle --> | |
| <div id="contextNavModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"> | |
| <div class="bg-white rounded-xl shadow-2xl w-full max-w-5xl mx-4 modal-animation"> | |
| <!-- En-tête de la modale --> | |
| <div class="border-b border-gray-200 px-6 py-4 flex justify-between items-center"> | |
| <h3 class="text-xl font-semibold text-gray-800">Naviguer par contexte</h3> | |
| <button id="closeContextNav" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times text-xl"></i> | |
| </button> | |
| </div> | |
| <!-- Corps de la modale --> | |
| <div class="p-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6" id="navigationColumns"> | |
| <!-- Colonne 1 : Domaines --> | |
| <div class="nav-column" id="domainColumn"> | |
| <h4 class="text-lg font-medium text-gray-700 mb-4">1. Sélectionnez un domaine</h4> | |
| <div class="space-y-3"> | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-domain="securite" onclick="selectDomain('securite')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-red-100 p-2 rounded-full"> | |
| <i class="fas fa-shield-alt text-red-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">Sécurité</h5> | |
| <p class="text-sm text-gray-500">Gestion des risques SST</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-domain="environnement" onclick="selectDomain('environnement')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-green-100 p-2 rounded-full"> | |
| <i class="fas fa-leaf text-green-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">Environnement</h5> | |
| <p class="text-sm text-gray-500">Gestion des impacts environnementaux</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-domain="qualite" onclick="selectDomain('qualite')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-blue-100 p-2 rounded-full"> | |
| <i class="fas fa-award text-blue-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">Qualité</h5> | |
| <p class="text-sm text-gray-500">Systèmes de management qualité</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-domain="hygiene" onclick="selectDomain('hygiene')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-purple-100 p-2 rounded-full"> | |
| <i class="fas fa-hand-sparkles text-purple-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">Hygiène</h5> | |
| <p class="text-sm text-gray-500">Gestion des risques sanitaires</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Colonne 2 : Logiciels --> | |
| <div class="nav-column" id="softwareColumn"> | |
| <h4 class="text-lg font-medium text-gray-700 mb-4">2. Choisissez un logiciel</h4> | |
| <div class="space-y-3" id="softwareOptions"> | |
| <div class="p-4 text-gray-400 italic">Sélectionnez d'abord un domaine</div> | |
| </div> | |
| </div> | |
| <!-- Colonne 3 : Niveaux d'organisation --> | |
| <div class="nav-column" id="levelColumn"> | |
| <div class="mb-4"> | |
| <h4 class="text-lg font-medium text-gray-700 mb-2">3. Sélectionnez un niveau</h4> | |
| <div class="relative"> | |
| <input type="text" id="levelSearch" placeholder="Rechercher un niveau..." | |
| class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-blue-500 focus:border-blue-500"> | |
| <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="space-y-1" id="levelOptions"> | |
| <div class="p-4 text-gray-400 italic">Sélectionnez d'abord un logiciel</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Pied de la modale --> | |
| <div class="border-t border-gray-200 px-6 py-4 bg-gray-50 rounded-b-xl"> | |
| <div class="flex justify-between items-center"> | |
| <div id="selectedPath" class="text-sm text-gray-500"> | |
| Aucune sélection | |
| </div> | |
| <button id="goToContext" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg disabled:opacity-50 disabled:cursor-not-allowed" disabled> | |
| Aller au contexte sélectionné | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Contenu principal --> | |
| <main class="container mx-auto px-4 py-12"> | |
| <section class="mb-16"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Nos solutions pour votre organisation</h2> | |
| <div class="grid md:grid-cols-2 lg:grid-cols-4 gap-8"> | |
| <!-- Carte 1 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="bg-red-100 p-6 flex justify-center"> | |
| <i class="fas fa-shield-alt text-red-600 text-5xl"></i> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-semibold mb-3">Sécurité au travail</h3> | |
| <p class="text-gray-600 mb-4">Gérez les risques, les accidents et les formations sécurité avec nos outils dédiés.</p> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800">Découvrir <i class="fas fa-arrow-right ml-1"></i></a> | |
| </div> | |
| </div> | |
| <!-- Carte 2 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="bg-green-100 p-6 flex justify-center"> | |
| <i class="fas fa-leaf text-green-600 text-5xl"></i> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-semibold mb-3">Environnement</h3> | |
| <p class="text-gray-600 mb-4">Suivez votre performance environnementale et vos obligations réglementaires.</p> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800">Découvrir <i class="fas fa-arrow-right ml-1"></i></a> | |
| </div> | |
| </div> | |
| <!-- Carte 3 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="bg-blue-100 p-6 flex justify-center"> | |
| <i class="fas fa-award text-blue-600 text-5xl"></i> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-semibold mb-3">Management qualité</h3> | |
| <p class="text-gray-600 mb-4">Pilotez vos processus qualité et vos indicateurs de performance.</p> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800">Découvrir <i class="fas fa-arrow-right ml-1"></i></a> | |
| </div> | |
| </div> | |
| <!-- Carte 4 --> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition"> | |
| <div class="bg-purple-100 p-6 flex justify-center"> | |
| <i class="fas fa-hand-sparkles text-purple-600 text-5xl"></i> | |
| </div> | |
| <div class="p-6"> | |
| <h3 class="text-xl font-semibold mb-3">Hygiène industrielle</h3> | |
| <p class="text-gray-600 mb-4">Contrôlez les risques sanitaires et les expositions aux agents chimiques.</p> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800">Découvrir <i class="fas fa-arrow-right ml-1"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <section class="bg-white rounded-xl shadow-md p-8 mb-16"> | |
| <div class="flex flex-col md:flex-row items-center"> | |
| <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8"> | |
| <h2 class="text-3xl font-bold mb-4">Une interface unifiée pour tous vos besoins QHSE</h2> | |
| <p class="text-gray-600 mb-6">Accédez à l'ensemble de vos outils depuis une seule plateforme, avec une navigation intuitive adaptée à votre contexte professionnel.</p> | |
| <button id="openContextNav2" class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-semibold transition"> | |
| Essayer la navigation contextuelle | |
| </button> | |
| </div> | |
| <div class="md:w-1/2"> | |
| <img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Dashboard QHSE" class="rounded-lg shadow-md"> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid md:grid-cols-4 gap-8"> | |
| <div> | |
| <h3 class="text-xl font-semibold mb-4">QHSE Manager Pro</h3> | |
| <p class="text-gray-400">La solution tout-en-un pour les responsables Qualité, Hygiène, Sécurité et Environnement.</p> | |
| </div> | |
| <div> | |
| <h4 class="font-medium mb-4">Solutions</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Sécurité au travail</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Environnement</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Management qualité</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Hygiène industrielle</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-medium mb-4">Ressources</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Formations</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">FAQ</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="font-medium mb-4">Contact</h4> | |
| <ul class="space-y-2"> | |
| <li class="flex items-center space-x-2 text-gray-400"><i class="fas fa-envelope"></i> <span>contact@qhsepro.com</span></li> | |
| <li class="flex items-center space-x-2 text-gray-400"><i class="fas fa-phone"></i> <span>+33 1 23 45 67 89</span></li> | |
| <li class="flex items-center space-x-2 text-gray-400"><i class="fas fa-map-marker-alt"></i> <span>Paris, France</span></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© 2023 QHSE Manager Pro. Tous droits réservés.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Données pour la navigation contextuelle | |
| const navigationData = { | |
| securite: { | |
| name: "Sécurité", | |
| softwares: [ | |
| { id: "evaluteo", name: "Evaluteo", description: "Évaluation des risques professionnels", icon: "fas fa-clipboard-check", color: "red" }, | |
| { id: "safetytrack", name: "SafetyTrack", description: "Suivi des incidents et accidents", icon: "fas fa-exclamation-triangle", color: "orange" }, | |
| { id: "formapro", name: "FormaPro", description: "Gestion des formations SST", icon: "fas fa-user-graduate", color: "yellow" } | |
| ] | |
| }, | |
| environnement: { | |
| name: "Environnement", | |
| softwares: [ | |
| { id: "chimiteo", name: "Chimiteo", description: "Gestion des produits chimiques", icon: "fas fa-flask", color: "green" }, | |
| { id: "ecotrack", name: "EcoTrack", description: "Suivi des déchets et émissions", icon: "fas fa-recycle", color: "emerald" }, | |
| { id: "regulcheck", name: "RegulCheck", description: "Conformité réglementaire", icon: "fas fa-gavel", color: "teal" } | |
| ] | |
| }, | |
| qualite: { | |
| name: "Qualité", | |
| softwares: [ | |
| { id: "docxp", name: "DocXP", description: "Gestion documentaire", icon: "fas fa-file-alt", color: "blue" }, | |
| { id: "qualipro", name: "QualiPro", description: "Amélioration continue", icon: "fas fa-chart-line", color: "indigo" }, | |
| { id: "auditplus", name: "AuditPlus", description: "Planification des audits", icon: "fas fa-clipboard-list", color: "purple" } | |
| ] | |
| }, | |
| hygiene: { | |
| name: "Hygiène", | |
| softwares: [ | |
| { id: "hygisoft", name: "Hygisoft", description: "Contrôle des risques sanitaires", icon: "fas fa-hand-sparkles", color: "pink" }, | |
| { id: "exposcan", name: "ExpoScan", description: "Suivi des expositions", icon: "fas fa-virus-slash", color: "rose" }, | |
| { id: "meditrack", name: "MediTrack", description: "Suivi médical du personnel", icon: "fas fa-heartbeat", color: "fuchsia" } | |
| ] | |
| } | |
| }; | |
| const organizationLevels = [ | |
| { | |
| id: "site", | |
| name: "Site", | |
| description: "Accès aux données d'un site spécifique", | |
| icon: "fas fa-building", | |
| children: [ | |
| { id: "batiment-a", name: "Bâtiment A", icon: "fas fa-building" }, | |
| { id: "batiment-b", name: "Bâtiment B", icon: "fas fa-building" } | |
| ] | |
| }, | |
| { | |
| id: "region", | |
| name: "Région", | |
| description: "Vue régionale consolidée", | |
| icon: "fas fa-map-marked-alt", | |
| children: [ | |
| { id: "nord", name: "Nord", icon: "fas fa-map-marker-alt" }, | |
| { id: "sud", name: "Sud", icon: "fas fa-map-marker-alt" } | |
| ] | |
| }, | |
| { | |
| id: "groupe", | |
| name: "Groupe", | |
| description: "Vue globale de l'entreprise", | |
| icon: "fas fa-sitemap", | |
| children: [ | |
| { id: "filiale1", name: "Filiale 1", icon: "fas fa-warehouse" }, | |
| { id: "filiale2", name: "Filiale 2", icon: "fas fa-warehouse" } | |
| ] | |
| }, | |
| { | |
| id: "service", | |
| name: "Service", | |
| description: "Accès par service/département", | |
| icon: "fas fa-users", | |
| children: [ | |
| { id: "rh", name: "Ressources Humaines", icon: "fas fa-user-tie" }, | |
| { id: "prod", name: "Production", icon: "fas fa-industry" } | |
| ] | |
| } | |
| ]; | |
| // Variables pour suivre la sélection | |
| let currentDomain = null; | |
| let currentSoftware = null; | |
| let currentLevel = null; | |
| // Éléments du DOM | |
| const contextNavModal = document.getElementById('contextNavModal'); | |
| const openContextNav = document.getElementById('openContextNav'); | |
| const openContextNav2 = document.getElementById('openContextNav2'); | |
| const closeContextNav = document.getElementById('closeContextNav'); | |
| const goToContext = document.getElementById('goToContext'); | |
| const selectedPath = document.getElementById('selectedPath'); | |
| const domainColumn = document.getElementById('domainColumn'); | |
| const softwareColumn = document.getElementById('softwareColumn'); | |
| const levelColumn = document.getElementById('levelColumn'); | |
| const softwareOptions = document.getElementById('softwareOptions'); | |
| const levelOptions = document.getElementById('levelOptions'); | |
| // Gestionnaires d'événements | |
| openContextNav.addEventListener('click', () => { | |
| contextNavModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| }); | |
| openContextNav2.addEventListener('click', () => { | |
| contextNavModal.classList.remove('hidden'); | |
| document.body.style.overflow = 'hidden'; | |
| }); | |
| closeContextNav.addEventListener('click', () => { | |
| contextNavModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| }); | |
| goToContext.addEventListener('click', () => { | |
| if (currentDomain && currentSoftware && currentLevel) { | |
| alert(`Redirection vers: ${currentDomain} > ${currentSoftware} > ${currentLevel}`); | |
| contextNavModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| }); | |
| // Fonctions pour la navigation | |
| function selectDomain(domainId) { | |
| currentDomain = domainId; | |
| currentSoftware = null; | |
| currentLevel = null; | |
| // Remplir les options de logiciels | |
| softwareOptions.innerHTML = ''; | |
| navigationData[domainId].softwares.forEach(software => { | |
| softwareOptions.innerHTML += ` | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-software="${software.id}" onclick="selectSoftware('${software.id}')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-${software.color}-100 p-2 rounded-full"> | |
| <i class="${software.icon} text-${software.color}-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">${software.name}</h5> | |
| <p class="text-sm text-gray-500">${software.description}</p> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| }); | |
| // Vider les niveaux | |
| levelOptions.innerHTML = '<div class="p-4 text-gray-400 italic">Sélectionnez d\'abord un logiciel</div>'; | |
| updateSelectedPath(); | |
| updateGoButton(); | |
| } | |
| function selectSoftware(softwareId) { | |
| currentSoftware = softwareId; | |
| currentLevel = null; | |
| // Remplir les options de niveaux d'organisation | |
| levelOptions.innerHTML = ''; | |
| organizationLevels.forEach(level => { | |
| levelOptions.innerHTML += ` | |
| <div class="card-hover cursor-pointer p-4 border border-gray-200 rounded-lg transition" data-level="${level.id}" onclick="selectLevel('${level.id}')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-gray-100 p-2 rounded-full"> | |
| <i class="${level.icon} text-gray-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">${level.name}</h5> | |
| <p class="text-sm text-gray-500">${level.description}</p> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| }); | |
| updateSelectedPath(); | |
| updateGoButton(); | |
| } | |
| function selectLevel(levelId) { | |
| currentLevel = levelId; | |
| updateSelectedPath(); | |
| updateGoButton(); | |
| } | |
| function renderLevelOptions() { | |
| levelOptions.innerHTML = ''; | |
| organizationLevels.forEach(level => { | |
| const levelElement = document.createElement('div'); | |
| levelElement.className = 'border border-gray-200 rounded-lg overflow-hidden mb-2'; | |
| levelElement.innerHTML = ` | |
| <div class="card-hover cursor-pointer p-4 flex justify-between items-center" | |
| data-level="${level.id}" | |
| onclick="toggleLevelChildren(this, '${level.id}')"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="bg-gray-100 p-2 rounded-full"> | |
| <i class="${level.icon} text-gray-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">${level.name}</h5> | |
| <p class="text-sm text-gray-500">${level.description}</p> | |
| </div> | |
| </div> | |
| <i class="fas fa-chevron-down text-gray-400 transition-transform"></i> | |
| </div> | |
| <div class="children-container hidden pl-8 bg-gray-50"> | |
| ${level.children.map(child => ` | |
| <div class="card-hover cursor-pointer p-3 border-t border-gray-200 flex items-center space-x-3" | |
| data-level="${child.id}" | |
| onclick="selectLevel('${child.id}'); event.stopPropagation()"> | |
| <div class="bg-gray-100 p-2 rounded-full"> | |
| <i class="${child.icon} text-gray-600"></i> | |
| </div> | |
| <div> | |
| <h5 class="font-medium">${child.name}</h5> | |
| </div> | |
| </div> | |
| `).join('')} | |
| </div> | |
| `; | |
| levelOptions.appendChild(levelElement); | |
| }); | |
| } | |
| function toggleLevelChildren(element, levelId) { | |
| const childrenContainer = element.parentElement.querySelector('.children-container'); | |
| const chevron = element.querySelector('i.fa-chevron-down'); | |
| childrenContainer.classList.toggle('hidden'); | |
| chevron.classList.toggle('rotate-180'); | |
| // Si c'est le niveau parent qu'on sélectionne | |
| if (!childrenContainer.classList.contains('hidden')) { | |
| selectLevel(levelId); | |
| } | |
| } | |
| // Gestion de la recherche | |
| const levelSearch = document.getElementById('levelSearch'); | |
| levelSearch.addEventListener('input', (e) => { | |
| const searchTerm = e.target.value.toLowerCase(); | |
| const levelItems = document.querySelectorAll('#levelOptions [data-level]'); | |
| levelItems.forEach(item => { | |
| const levelName = item.querySelector('h5').textContent.toLowerCase(); | |
| if (levelName.includes(searchTerm)) { | |
| item.closest('.border').style.display = ''; | |
| } else { | |
| item.closest('.border').style.display = 'none'; | |
| } | |
| }); | |
| }); | |
| // Modifier la fonction selectSoftware pour utiliser le nouveau rendu | |
| function selectSoftware(softwareId) { | |
| currentSoftware = softwareId; | |
| currentLevel = null; | |
| renderLevelOptions(); | |
| updateSelectedPath(); | |
| updateGoButton(); | |
| } | |
| function updateSelectedPath() { | |
| let pathText = ''; | |
| if (currentDomain) { | |
| pathText += navigationData[currentDomain].name; | |
| } | |
| if (currentSoftware) { | |
| const software = navigationData[currentDomain].softwares.find(s => s.id === currentSoftware); | |
| pathText += ` > ${software.name}`; | |
| } | |
| if (currentLevel) { | |
| const level = organizationLevels.find(l => l.id === currentLevel); | |
| pathText += ` > ${level.name}`; | |
| } | |
| selectedPath.textContent = pathText || 'Aucune sélection'; | |
| } | |
| function updateGoButton() { | |
| goToContext.disabled = !(currentDomain && currentSoftware && currentLevel); | |
| } | |
| // Fermer la modale en cliquant à l'extérieur | |
| contextNavModal.addEventListener('click', (e) => { | |
| if (e.target === contextNavModal) { | |
| contextNavModal.classList.add('hidden'); | |
| document.body.style.overflow = 'auto'; | |
| } | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=LoicUX/sdl" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |