// Field Ops Portal: job list and dark toggle. const JOBS = [ { job: "J-101", site: "North depot", status: "Done", tag: "ok" }, { job: "J-102", site: "Harbour road", status: "Late", tag: "late" }, { job: "J-103", site: "West yard", status: "Failed", tag: "failed" }, ]; document.getElementById("jobs").innerHTML = JOBS.map( (j) => `${j.job}${j.site}${j.status}` ).join(""); document.getElementById("theme-btn").onclick = () => { const root = document.documentElement; root.dataset.theme = root.dataset.theme === "dark" ? "light" : "dark"; };