style(라이브): 오른쪽 달력 글자 굵게, 방송 있는 날 점 표시
- 공용 erp-datepop mountRange 에 dayClass 옵션(없으면 예전 그대로) - 달력 화면이 보는 달 ±1년의 방송 날짜를 넘기고, 그 날에 초록 점 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -170,9 +170,12 @@
|
||||
if (sideBox && window.ErpDatePop) {
|
||||
let holidays = {};
|
||||
try { holidays = JSON.parse(document.getElementById("lv-my-holidays").textContent); } catch (_) {}
|
||||
let liveDays = {}; // 방송 있는 날 → 점
|
||||
try { JSON.parse(document.getElementById("lv-live-days").textContent).forEach(function (iso) { liveDays[iso] = true; }); } catch (_) {}
|
||||
const english = document.querySelector(".lv").lang === "en";
|
||||
window.ErpDatePop.mountRange(sideBox, {
|
||||
start: shownDay, end: shownDay, holidays: holidays, single: function () { return true; },
|
||||
dayClass: function (iso) { return liveDays[iso] ? ["has-live"] : []; },
|
||||
locale: english ? {
|
||||
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], prev: "Previous month", next: "Next month",
|
||||
title: function (y, m) { return new Date(y, m, 1).toLocaleString("en", { month: "long" }) + " " + y; },
|
||||
|
||||
Reference in New Issue
Block a user