MCPcopy Create free account
hub / github.com/Muhammadsiddiq-code/Admin-dashboard / loadScheduleData

Function loadScheduleData

app.js:509–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

507}
508
509function 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
537function toggleTheme() {
538 currentTheme = currentTheme === "light" ? "dark" : "light"

Callers 1

loadPageDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected