highlight-script
code:script.js
export function highlight() {
const days = "日", "月", "火", "水", "木", "金", "土";
const today = daysnew Date().getDay();
document.querySelectorAll(".line").forEach(line => {
const text = line.textContent.trim();
if (text.startsWith(today)) {
line.style.backgroundColor = "lightyellow"; // 色はお好みで
}
});
}