Spaces:
Running
Running
File size: 37,060 Bytes
b435547 27bfd50 b435547 27bfd50 b435547 27bfd50 b435547 27bfd50 b435547 27bfd50 b435547 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 | <!DOCTYPE html>
<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> |