Spaces:
Running
Running
Le site que tu as créé le bouton ne sont pas fonctionnels je veux que tu corrige ça tout doit être fonctionnel et accessible quand on clique je dois pas être fonctionnel automatiquement par exemple le droit de planifier le cours d'arranger les choses d'ajouter des membres - Follow Up Deployment
27bfd50 verified Download index.html from cansim/https-cansim-med-com: direct link, hf CLI and curl.
- Browser
- Download file 37.1 kB
-
https://huggingface.co/spaces/cansim/https-cansim-med-com/resolve/main/index.html
- Command line
-
hf download hf://spaces/cansim/https-cansim-med-com/index.html
-
curl -L -o index.html https://huggingface.co/spaces/cansim/https-cansim-med-com/resolve/main/index.html
37.1 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Conférence en ligne</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> | |
| /* Custom styles that can't be done with Tailwind */ | |
| .video-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .participant-video { | |
| position: relative; | |
| aspect-ratio: 16/9; | |
| background-color: #1e293b; | |
| } | |
| .controls-container { | |
| transition: all 0.3s ease; | |
| } | |
| .chat-messages { | |
| height: calc(100vh - 250px); | |
| overflow-y: auto; | |
| } | |
| @media (max-width: 768px) { | |
| .video-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-900 text-white"> | |
| <!-- Main container --> | |
| <div class="flex flex-col h-screen"> | |
| <!-- Header --> | |
| <header class="bg-gray-800 py-3 px-4 flex justify-between items-center border-b border-gray-700"> | |
| <div class="flex items-center space-x-4"> | |
| <h1 class="text-xl font-bold">Conférence en ligne</h1> | |
| <span class="bg-blue-600 text-xs px-2 py-1 rounded">En direct</span> | |
| <span id="timer" class="text-sm">00:00:00</span> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button id="participants-btn" class="p-2 rounded-full hover:bg-gray-700"> | |
| <i class="fas fa-users"></i> | |
| <span class="ml-1 hidden md:inline">Participants (5)</span> | |
| </button> | |
| <button id="chat-btn" class="p-2 rounded-full hover:bg-gray-700"> | |
| <i class="fas fa-comment"></i> | |
| <span class="ml-1 hidden md:inline">Chat</span> | |
| </button> | |
| <button id="more-btn" class="p-2 rounded-full hover:bg-gray-700"> | |
| <i class="fas fa-ellipsis-h"></i> | |
| <span class="ml-1 hidden md:inline">Options</span> | |
| </button> | |
| <button id="leave-btn" class="bg-red-600 hover:bg-red-700 px-4 py-1 rounded-full"> | |
| Quitter | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Main content area --> | |
| <div class="flex flex-1 overflow-hidden"> | |
| <!-- Video grid area --> | |
| <div class="flex-1 p-4 overflow-auto"> | |
| <div class="video-grid" id="video-container"> | |
| <!-- Participant videos will be added here by JavaScript --> | |
| <div class="participant-video rounded-lg overflow-hidden"> | |
| <video class="w-full h-full object-cover" autoplay playsinline></video> | |
| <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2"> | |
| <span class="text-sm">Vous (Organisateur)</span> | |
| <div class="flex space-x-2 mt-1"> | |
| <span class="bg-red-500 text-white text-xs px-1 rounded">Mute</span> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Sample participant videos --> | |
| <div class="participant-video rounded-lg overflow-hidden"> | |
| <div class="w-full h-full flex items-center justify-center"> | |
| <div class="w-20 h-20 rounded-full bg-blue-600 flex items-center justify-center"> | |
| <span class="text-2xl">JD</span> | |
| </div> | |
| </div> | |
| <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2"> | |
| <span class="text-sm">Jean Dupont</span> | |
| <div class="flex space-x-2 mt-1"> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span> | |
| <span class="bg-red-500 text-white text-xs px-1 rounded">Caméra off</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="participant-video rounded-lg overflow-hidden"> | |
| <video class="w-full h-full object-cover" autoplay playsinline></video> | |
| <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2"> | |
| <span class="text-sm">Marie Martin</span> | |
| <div class="flex space-x-2 mt-1"> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="participant-video rounded-lg overflow-hidden"> | |
| <div class="w-full h-full flex items-center justify-center"> | |
| <div class="w-20 h-20 rounded-full bg-purple-600 flex items-center justify-center"> | |
| <span class="text-2xl">PL</span> | |
| </div> | |
| </div> | |
| <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2"> | |
| <span class="text-sm">Paul Leroy</span> | |
| <div class="flex space-x-2 mt-1"> | |
| <span class="bg-red-500 text-white text-xs px-1 rounded">Mute</span> | |
| <span class="bg-red-500 text-white text-xs px-1 rounded">Caméra off</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="participant-video rounded-lg overflow-hidden"> | |
| <video class="w-full h-full object-cover" autoplay playsinline></video> | |
| <div class="absolute bottom-0 left-0 right-0 bg-black bg-opacity-50 p-2"> | |
| <span class="text-sm">Sophie Lambert</span> | |
| <div class="flex space-x-2 mt-1"> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Micro</span> | |
| <span class="bg-green-500 text-white text-xs px-1 rounded">Caméra</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Sidebar (hidden by default) --> | |
| <div id="sidebar" class="w-0 md:w-80 bg-gray-800 border-l border-gray-700 overflow-hidden transition-all duration-300"> | |
| <div class="h-full flex flex-col"> | |
| <!-- Sidebar tabs --> | |
| <div class="flex border-b border-gray-700"> | |
| <button class="sidebar-tab flex-1 py-3 px-4 hover:bg-gray-700" data-tab="participants"> | |
| <i class="fas fa-users mr-2"></i> | |
| <span>Participants (5)</span> | |
| </button> | |
| <button class="sidebar-tab flex-1 py-3 px-4 hover:bg-gray-700" data-tab="chat"> | |
| <i class="fas fa-comment mr-2"></i> | |
| <span>Chat</span> | |
| </button> | |
| </div> | |
| <!-- Participants tab content --> | |
| <div id="participants-tab" class="sidebar-content flex-1 overflow-auto p-4"> | |
| <div class="mb-4"> | |
| <input type="text" placeholder="Rechercher un participant" class="w-full bg-gray-700 rounded px-3 py-2 text-sm"> | |
| </div> | |
| <div class="space-y-3"> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center"> | |
| <span>VO</span> | |
| </div> | |
| <span>Vous (Organisateur)</span> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-microphone-slash"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-video-slash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center"> | |
| <span>JD</span> | |
| </div> | |
| <span>Jean Dupont</span> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-green-500"> | |
| <i class="fas fa-microphone"></i> | |
| </button> | |
| <button class="text-red-500"> | |
| <i class="fas fa-video-slash"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center"> | |
| <span>MM</span> | |
| </div> | |
| <span>Marie Martin</span> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-green-500"> | |
| <i class="fas fa-microphone"></i> | |
| </button> | |
| <button class="text-green-500"> | |
| <i class="fas fa-video"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-yellow-600 flex items-center justify-center"> | |
| <span>PL</span> | |
| </div> | |
| <span>Paul Leroy</span> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-red-500"> | |
| <i class="fas fa-microphone-slash"></i> | |
| </button> | |
| <button class="text-red-500"> | |
| <i class="fas fa-video-slash"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-700 rounded"> | |
| <div class="flex items-center space-x-3"> | |
| <div class="w-8 h-8 rounded-full bg-pink-600 flex items-center justify-center"> | |
| <span>SL</span> | |
| </div> | |
| <span>Sophie Lambert</span> | |
| </div> | |
| <div class="flex space-x-2"> | |
| <button class="text-green-500"> | |
| <i class="fas fa-microphone"></i> | |
| </button> | |
| <button class="text-green-500"> | |
| <i class="fas fa-video"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-ellipsis-v"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6"> | |
| <button id="invite-btn" class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded"> | |
| <i class="fas fa-plus mr-2"></i> | |
| Inviter des participants | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Chat tab content --> | |
| <div id="chat-tab" class="sidebar-content hidden flex-1 flex flex-col"> | |
| <div class="chat-messages p-4 space-y-4"> | |
| <div class="flex"> | |
| <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center mr-3"> | |
| <span>JD</span> | |
| </div> | |
| <div> | |
| <div class="text-xs text-gray-400 mb-1">Jean Dupont - 14:32</div> | |
| <div class="bg-gray-700 p-3 rounded-lg max-w-xs"> | |
| Bonjour à tous, comment allez-vous ? | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center mr-3"> | |
| <span>MM</span> | |
| </div> | |
| <div> | |
| <div class="text-xs text-gray-400 mb-1">Marie Martin - 14:33</div> | |
| <div class="bg-gray-700 p-3 rounded-lg max-w-xs"> | |
| Très bien merci! Et vous ? | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-end"> | |
| <div class="text-right"> | |
| <div class="text-xs text-gray-400 mb-1">Vous - 14:34</div> | |
| <div class="bg-blue-600 p-3 rounded-lg max-w-xs"> | |
| Je vais bien aussi, merci. Prêts à commencer la réunion ? | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex"> | |
| <div class="w-8 h-8 rounded-full bg-pink-600 flex items-center justify-center mr-3"> | |
| <span>SL</span> | |
| </div> | |
| <div> | |
| <div class="text-xs text-gray-400 mb-1">Sophie Lambert - 14:35</div> | |
| <div class="bg-gray-700 p-3 rounded-lg max-w-xs"> | |
| Oui, tout est prêt de mon côté! | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="p-4 border-t border-gray-700"> | |
| <div class="flex items-center space-x-2"> | |
| <button class="text-gray-400 hover:text-white p-2"> | |
| <i class="fas fa-smile"></i> | |
| </button> | |
| <input type="text" placeholder="Envoyer un message..." class="flex-1 bg-gray-700 rounded px-3 py-2 text-sm"> | |
| <button class="text-blue-500 p-2"> | |
| <i class="fas fa-paper-plane"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Controls bar --> | |
| <div class="controls-container bg-gray-800 py-3 px-6 border-t border-gray-700"> | |
| <div class="flex justify-center items-center space-x-4"> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-microphone text-white"></i> | |
| </button> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-video text-white"></i> | |
| </button> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 w-12 h-12 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-desktop text-white"></i> | |
| </button> | |
| <button class="control-btn bg-red-600 hover:bg-red-700 w-12 h-12 rounded-full flex items-center justify-center"> | |
| <i class="fas fa-phone-slash text-white"></i> | |
| </button> | |
| <div class="flex items-center space-x-4 ml-4"> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded"> | |
| <i class="fas fa-poll"></i> | |
| <span class="ml-1 hidden md:inline">Sondage</span> | |
| </button> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded"> | |
| <i class="fas fa-chalkboard"></i> | |
| <span class="ml-1 hidden md:inline">Tableau blanc</span> | |
| </button> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded"> | |
| <i class="fas fa-people-arrows"></i> | |
| <span class="ml-1 hidden md:inline">Sous-salles</span> | |
| </button> | |
| <button class="control-btn bg-gray-700 hover:bg-gray-600 p-2 rounded"> | |
| <i class="fas fa-record-vinyl"></i> | |
| <span class="ml-1 hidden md:inline">Enregistrer</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Modal for scheduling/organizing --> | |
| <div id="schedule-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold">Planifier et organiser</h3> | |
| <button id="close-schedule-modal" class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="mb-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-4"> | |
| <button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center"> | |
| <i class="fas fa-calendar-plus text-2xl mb-2"></i> | |
| <span>Planifier un cours</span> | |
| </button> | |
| <button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center"> | |
| <i class="fas fa-users text-2xl mb-2"></i> | |
| <span>Ajouter des membres</span> | |
| </button> | |
| <button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center"> | |
| <i class="fas fa-tasks text-2xl mb-2"></i> | |
| <span>Organiser le contenu</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button id="cancel-schedule" class="px-4 py-2 rounded border border-gray-600 hover:bg-gray-700"> | |
| Annuler | |
| </button> | |
| <button id="confirm-schedule" class="px-4 py-2 rounded bg-blue-600 hover:bg-blue-700"> | |
| Confirmer | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Modal for breakout rooms --> | |
| <div id="breakout-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold">Gérer les sous-salles</h3> | |
| <button id="close-breakout-modal" class="text-gray-400 hover:text-white"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="mb-6"> | |
| <div class="flex items-center space-x-4 mb-4"> | |
| <button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded"> | |
| <i class="fas fa-plus mr-2"></i> | |
| Créer une sous-salle | |
| </button> | |
| <button class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded"> | |
| <i class="fas fa-random mr-2"></i> | |
| Répartir automatiquement | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> | |
| <div class="bg-gray-700 p-4 rounded-lg"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h4 class="font-bold">Salle principale</h4> | |
| <span class="text-sm bg-gray-600 px-2 py-1 rounded">5 participants</span> | |
| </div> | |
| <div class="space-y-2"> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-6 h-6 rounded-full bg-blue-600 flex items-center justify-center text-xs"> | |
| VO | |
| </div> | |
| <span class="text-sm">Vous</span> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-6 h-6 rounded-full bg-purple-600 flex items-center justify-center text-xs"> | |
| JD | |
| </div> | |
| <span class="text-sm">Jean Dupont</span> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-6 h-6 rounded-full bg-green-600 flex items-center justify-center text-xs"> | |
| MM | |
| </div> | |
| <span class="text-sm">Marie Martin</span> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-6 h-6 rounded-full bg-yellow-600 flex items-center justify-center text-xs"> | |
| PL | |
| </div> | |
| <span class="text-sm">Paul Leroy</span> | |
| </div> | |
| </div> | |
| <div class="flex items-center justify-between p-2 hover:bg-gray-600 rounded"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-6 h-6 rounded-full bg-pink-600 flex items-center justify-center text-xs"> | |
| SL | |
| </div> | |
| <span class="text-sm">Sophie Lambert</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-700 p-4 rounded-lg"> | |
| <div class="flex justify-between items-center mb-3"> | |
| <h4 class="font-bold">Sous-salle 1</h4> | |
| <div class="flex space-x-2"> | |
| <button class="text-gray-400 hover:text-white text-sm"> | |
| <i class="fas fa-broadcast-tower"></i> | |
| </button> | |
| <button class="text-gray-400 hover:text-white text-sm"> | |
| <i class="fas fa-trash"></i> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="text-sm text-gray-400 italic">Aucun participant</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="flex justify-end space-x-3"> | |
| <button class="px-4 py-2 rounded border border-gray-600 hover:bg-gray-700"> | |
| Annuler | |
| </button> | |
| <button class="px-4 py-2 rounded bg-blue-600 hover:bg-blue-700"> | |
| Lancer les sous-salles | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Timer functionality | |
| let seconds = 0; | |
| const timerElement = document.getElementById('timer'); | |
| function updateTimer() { | |
| seconds++; | |
| const hours = Math.floor(seconds / 3600); | |
| const minutes = Math.floor((seconds % 3600) / 60); | |
| const secs = seconds % 60; | |
| timerElement.textContent = | |
| `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`; | |
| } | |
| setInterval(updateTimer, 1000); | |
| // Sidebar functionality | |
| const sidebar = document.getElementById('sidebar'); | |
| const participantsBtn = document.getElementById('participants-btn'); | |
| const chatBtn = document.getElementById('chat-btn'); | |
| const sidebarTabs = document.querySelectorAll('.sidebar-tab'); | |
| const sidebarContents = document.querySelectorAll('.sidebar-content'); | |
| function toggleSidebar() { | |
| if (sidebar.classList.contains('w-0')) { | |
| sidebar.classList.remove('w-0'); | |
| sidebar.classList.add('w-full', 'md:w-80'); | |
| } else { | |
| sidebar.classList.add('w-0'); | |
| sidebar.classList.remove('w-full', 'md:w-80'); | |
| } | |
| } | |
| participantsBtn.addEventListener('click', () => { | |
| toggleSidebar(); | |
| showTab('participants'); | |
| }); | |
| chatBtn.addEventListener('click', () => { | |
| toggleSidebar(); | |
| showTab('chat'); | |
| }); | |
| function showTab(tabName) { | |
| sidebarContents.forEach(content => { | |
| content.classList.add('hidden'); | |
| if (content.id === `${tabName}-tab`) { | |
| content.classList.remove('hidden'); | |
| } | |
| }); | |
| sidebarTabs.forEach(tab => { | |
| tab.classList.remove('bg-gray-700'); | |
| if (tab.dataset.tab === tabName) { | |
| tab.classList.add('bg-gray-700'); | |
| } | |
| }); | |
| } | |
| sidebarTabs.forEach(tab => { | |
| tab.addEventListener('click', () => { | |
| showTab(tab.dataset.tab); | |
| }); | |
| }); | |
| // Schedule/Organize modal | |
| const scheduleModal = document.getElementById('schedule-modal'); | |
| const moreBtn = document.getElementById('more-btn'); | |
| const closeScheduleModal = document.getElementById('close-schedule-modal'); | |
| const cancelSchedule = document.getElementById('cancel-schedule'); | |
| moreBtn.addEventListener('click', () => { | |
| scheduleModal.classList.remove('hidden'); | |
| }); | |
| closeScheduleModal.addEventListener('click', () => { | |
| scheduleModal.classList.add('hidden'); | |
| }); | |
| cancelSchedule.addEventListener('click', () => { | |
| scheduleModal.classList.add('hidden'); | |
| }); | |
| document.querySelectorAll('.schedule-option').forEach(option => { | |
| option.addEventListener('click', function() { | |
| const action = this.querySelector('span').textContent; | |
| alert(`Action sélectionnée : ${action}`); | |
| // Ici vous pourriez ajouter la logique spécifique pour chaque action | |
| }); | |
| }); | |
| document.getElementById('confirm-schedule').addEventListener('click', function() { | |
| alert('Configuration confirmée'); | |
| scheduleModal.classList.add('hidden'); | |
| }); | |
| // Breakout rooms modal | |
| const breakoutModal = document.getElementById('breakout-modal'); | |
| const breakoutBtn = document.querySelector('.control-btn:nth-child(7)'); // 7th control button | |
| const closeBreakoutModal = document.getElementById('close-breakout-modal'); | |
| breakoutBtn.addEventListener('click', () => { | |
| breakoutModal.classList.remove('hidden'); | |
| }); | |
| closeBreakoutModal.addEventListener('click', () => { | |
| breakoutModal.classList.add('hidden'); | |
| }); | |
| // Toggle mute/unmute for microphone | |
| const micBtn = document.querySelector('.control-btn:nth-child(1)'); | |
| let isMuted = false; | |
| micBtn.addEventListener('click', () => { | |
| isMuted = !isMuted; | |
| const icon = micBtn.querySelector('i'); | |
| if (isMuted) { | |
| icon.classList.remove('fa-microphone'); | |
| icon.classList.add('fa-microphone-slash'); | |
| micBtn.classList.add('bg-red-600', 'hover:bg-red-700'); | |
| micBtn.classList.remove('bg-gray-700', 'hover:bg-gray-600'); | |
| } else { | |
| icon.classList.add('fa-microphone'); | |
| icon.classList.remove('fa-microphone-slash'); | |
| micBtn.classList.remove('bg-red-600', 'hover:bg-red-700'); | |
| micBtn.classList.add('bg-gray-700', 'hover:bg-gray-600'); | |
| } | |
| }); | |
| // Toggle video on/off | |
| const videoBtn = document.querySelector('.control-btn:nth-child(2)'); | |
| let isVideoOff = false; | |
| videoBtn.addEventListener('click', () => { | |
| isVideoOff = !isVideoOff; | |
| const icon = videoBtn.querySelector('i'); | |
| if (isVideoOff) { | |
| icon.classList.remove('fa-video'); | |
| icon.classList.add('fa-video-slash'); | |
| videoBtn.classList.add('bg-red-600', 'hover:bg-red-700'); | |
| videoBtn.classList.remove('bg-gray-700', 'hover:bg-gray-600'); | |
| } else { | |
| icon.classList.add('fa-video'); | |
| icon.classList.remove('fa-video-slash'); | |
| videoBtn.classList.remove('bg-red-600', 'hover:bg-red-700'); | |
| videoBtn.classList.add('bg-gray-700', 'hover:bg-gray-600'); | |
| } | |
| }); | |
| // Invite participants button | |
| const inviteBtn = document.getElementById('invite-btn'); | |
| inviteBtn.addEventListener('click', () => { | |
| const inviteLink = window.location.href; | |
| navigator.clipboard.writeText(inviteLink) | |
| .then(() => alert('Lien de la réunion copié dans le presse-papiers !')) | |
| .catch(() => prompt('Copiez ce lien pour inviter des participants :', inviteLink)); | |
| }); | |
| // Leave meeting button | |
| const leaveBtn = document.getElementById('leave-btn'); | |
| leaveBtn.addEventListener('click', () => { | |
| if (confirm('Voulez-vous vraiment quitter la réunion ?')) { | |
| alert('Vous avez quitté la réunion'); | |
| // In a real app, this would redirect or close the meeting | |
| } | |
| }); | |
| // Simulate video streams (in a real app, this would be WebRTC) | |
| const videoElements = document.querySelectorAll('video'); | |
| if (videoElements.length > 0) { | |
| // Try to get user media for the first video (local stream) | |
| navigator.mediaDevices.getUserMedia({ video: true, audio: false }) | |
| .then(stream => { | |
| videoElements[0].srcObject = stream; | |
| }) | |
| .catch(err => { | |
| console.error('Error accessing camera:', err); | |
| }); | |
| // For demo purposes, we'll just show a placeholder for other videos | |
| for (let i = 1; i < videoElements.length; i++) { | |
| videoElements[i].poster = 'https://placehold.co/600x400/1e293b/ffffff?text=Participant'; | |
| } | |
| } | |
| </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=cansim/https-cansim-med-com" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |