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
Browse files- index.html +82 -1
index.html
CHANGED
|
@@ -57,6 +57,7 @@
|
|
| 57 |
</button>
|
| 58 |
<button id="more-btn" class="p-2 rounded-full hover:bg-gray-700">
|
| 59 |
<i class="fas fa-ellipsis-h"></i>
|
|
|
|
| 60 |
</button>
|
| 61 |
<button id="leave-btn" class="bg-red-600 hover:bg-red-700 px-4 py-1 rounded-full">
|
| 62 |
Quitter
|
|
@@ -257,7 +258,7 @@
|
|
| 257 |
</div>
|
| 258 |
|
| 259 |
<div class="mt-6">
|
| 260 |
-
<button class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded">
|
| 261 |
<i class="fas fa-plus mr-2"></i>
|
| 262 |
Inviter des participants
|
| 263 |
</button>
|
|
@@ -373,6 +374,46 @@
|
|
| 373 |
</div>
|
| 374 |
</div>
|
| 375 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 376 |
<!-- Modal for breakout rooms -->
|
| 377 |
<div id="breakout-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 378 |
<div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6">
|
|
@@ -539,6 +580,37 @@
|
|
| 539 |
});
|
| 540 |
});
|
| 541 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 542 |
// Breakout rooms modal
|
| 543 |
const breakoutModal = document.getElementById('breakout-modal');
|
| 544 |
const breakoutBtn = document.querySelector('.control-btn:nth-child(7)'); // 7th control button
|
|
@@ -592,6 +664,15 @@
|
|
| 592 |
}
|
| 593 |
});
|
| 594 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 595 |
// Leave meeting button
|
| 596 |
const leaveBtn = document.getElementById('leave-btn');
|
| 597 |
leaveBtn.addEventListener('click', () => {
|
|
|
|
| 57 |
</button>
|
| 58 |
<button id="more-btn" class="p-2 rounded-full hover:bg-gray-700">
|
| 59 |
<i class="fas fa-ellipsis-h"></i>
|
| 60 |
+
<span class="ml-1 hidden md:inline">Options</span>
|
| 61 |
</button>
|
| 62 |
<button id="leave-btn" class="bg-red-600 hover:bg-red-700 px-4 py-1 rounded-full">
|
| 63 |
Quitter
|
|
|
|
| 258 |
</div>
|
| 259 |
|
| 260 |
<div class="mt-6">
|
| 261 |
+
<button id="invite-btn" class="w-full bg-blue-600 hover:bg-blue-700 py-2 rounded">
|
| 262 |
<i class="fas fa-plus mr-2"></i>
|
| 263 |
Inviter des participants
|
| 264 |
</button>
|
|
|
|
| 374 |
</div>
|
| 375 |
</div>
|
| 376 |
|
| 377 |
+
<!-- Modal for scheduling/organizing -->
|
| 378 |
+
<div id="schedule-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 379 |
+
<div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6">
|
| 380 |
+
<div class="flex justify-between items-center mb-4">
|
| 381 |
+
<h3 class="text-xl font-bold">Planifier et organiser</h3>
|
| 382 |
+
<button id="close-schedule-modal" class="text-gray-400 hover:text-white">
|
| 383 |
+
<i class="fas fa-times"></i>
|
| 384 |
+
</button>
|
| 385 |
+
</div>
|
| 386 |
+
|
| 387 |
+
<div class="mb-6">
|
| 388 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 389 |
+
<button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center">
|
| 390 |
+
<i class="fas fa-calendar-plus text-2xl mb-2"></i>
|
| 391 |
+
<span>Planifier un cours</span>
|
| 392 |
+
</button>
|
| 393 |
+
|
| 394 |
+
<button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center">
|
| 395 |
+
<i class="fas fa-users text-2xl mb-2"></i>
|
| 396 |
+
<span>Ajouter des membres</span>
|
| 397 |
+
</button>
|
| 398 |
+
|
| 399 |
+
<button class="schedule-option bg-gray-700 hover:bg-gray-600 p-4 rounded-lg flex flex-col items-center">
|
| 400 |
+
<i class="fas fa-tasks text-2xl mb-2"></i>
|
| 401 |
+
<span>Organiser le contenu</span>
|
| 402 |
+
</button>
|
| 403 |
+
</div>
|
| 404 |
+
</div>
|
| 405 |
+
|
| 406 |
+
<div class="flex justify-end space-x-3">
|
| 407 |
+
<button id="cancel-schedule" class="px-4 py-2 rounded border border-gray-600 hover:bg-gray-700">
|
| 408 |
+
Annuler
|
| 409 |
+
</button>
|
| 410 |
+
<button id="confirm-schedule" class="px-4 py-2 rounded bg-blue-600 hover:bg-blue-700">
|
| 411 |
+
Confirmer
|
| 412 |
+
</button>
|
| 413 |
+
</div>
|
| 414 |
+
</div>
|
| 415 |
+
</div>
|
| 416 |
+
|
| 417 |
<!-- Modal for breakout rooms -->
|
| 418 |
<div id="breakout-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50">
|
| 419 |
<div class="bg-gray-800 rounded-lg w-full max-w-2xl p-6">
|
|
|
|
| 580 |
});
|
| 581 |
});
|
| 582 |
|
| 583 |
+
// Schedule/Organize modal
|
| 584 |
+
const scheduleModal = document.getElementById('schedule-modal');
|
| 585 |
+
const moreBtn = document.getElementById('more-btn');
|
| 586 |
+
const closeScheduleModal = document.getElementById('close-schedule-modal');
|
| 587 |
+
const cancelSchedule = document.getElementById('cancel-schedule');
|
| 588 |
+
|
| 589 |
+
moreBtn.addEventListener('click', () => {
|
| 590 |
+
scheduleModal.classList.remove('hidden');
|
| 591 |
+
});
|
| 592 |
+
|
| 593 |
+
closeScheduleModal.addEventListener('click', () => {
|
| 594 |
+
scheduleModal.classList.add('hidden');
|
| 595 |
+
});
|
| 596 |
+
|
| 597 |
+
cancelSchedule.addEventListener('click', () => {
|
| 598 |
+
scheduleModal.classList.add('hidden');
|
| 599 |
+
});
|
| 600 |
+
|
| 601 |
+
document.querySelectorAll('.schedule-option').forEach(option => {
|
| 602 |
+
option.addEventListener('click', function() {
|
| 603 |
+
const action = this.querySelector('span').textContent;
|
| 604 |
+
alert(`Action sélectionnée : ${action}`);
|
| 605 |
+
// Ici vous pourriez ajouter la logique spécifique pour chaque action
|
| 606 |
+
});
|
| 607 |
+
});
|
| 608 |
+
|
| 609 |
+
document.getElementById('confirm-schedule').addEventListener('click', function() {
|
| 610 |
+
alert('Configuration confirmée');
|
| 611 |
+
scheduleModal.classList.add('hidden');
|
| 612 |
+
});
|
| 613 |
+
|
| 614 |
// Breakout rooms modal
|
| 615 |
const breakoutModal = document.getElementById('breakout-modal');
|
| 616 |
const breakoutBtn = document.querySelector('.control-btn:nth-child(7)'); // 7th control button
|
|
|
|
| 664 |
}
|
| 665 |
});
|
| 666 |
|
| 667 |
+
// Invite participants button
|
| 668 |
+
const inviteBtn = document.getElementById('invite-btn');
|
| 669 |
+
inviteBtn.addEventListener('click', () => {
|
| 670 |
+
const inviteLink = window.location.href;
|
| 671 |
+
navigator.clipboard.writeText(inviteLink)
|
| 672 |
+
.then(() => alert('Lien de la réunion copié dans le presse-papiers !'))
|
| 673 |
+
.catch(() => prompt('Copiez ce lien pour inviter des participants :', inviteLink));
|
| 674 |
+
});
|
| 675 |
+
|
| 676 |
// Leave meeting button
|
| 677 |
const leaveBtn = document.getElementById('leave-btn');
|
| 678 |
leaveBtn.addEventListener('click', () => {
|