| 507 | } |
| 508 | |
| 509 | function loadScheduleData() { |
| 510 | const scheduleGrid = document.getElementById("scheduleGrid") |
| 511 | if (scheduleGrid) { |
| 512 | const days = ["Dushanba", "Seshanba", "Chorshanba", "Payshanba", "Juma", "Shanba", "Yakshanba"] |
| 513 | const times = ["08:00", "09:00", "10:00", "11:00", "12:00", "13:00", "14:00"] |
| 514 | |
| 515 | let html = "" |
| 516 | |
| 517 | // Header row |
| 518 | html += '<div class="schedule-cell header">Vaqt</div>' |
| 519 | days.forEach((day) => { |
| 520 | html += `<div class="schedule-cell header">${day}</div>` |
| 521 | }) |
| 522 | |
| 523 | // Time slots |
| 524 | times.forEach((time) => { |
| 525 | html += `<div class="schedule-cell header">${time}</div>` |
| 526 | days.forEach((day) => { |
| 527 | html += `<div class="schedule-cell"> |
| 528 | <div class="schedule-event">Matematika - 10A</div> |
| 529 | </div>` |
| 530 | }) |
| 531 | }) |
| 532 | |
| 533 | scheduleGrid.innerHTML = html |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | function toggleTheme() { |
| 538 | currentTheme = currentTheme === "light" ? "dark" : "light" |