diff --git a/static/app.js b/static/app.js index 73d5825..7a71bfd 100644 --- a/static/app.js +++ b/static/app.js @@ -246,6 +246,12 @@ var v = mEls[i].value.trim(); if (v) morningItems.push(v); } + // 收集日历日程 + var calEls = document.querySelectorAll('#morning-calendar-list .cal-task-item span:last-child'); + for (var ci=0; ci 0) { + document.getElementById('morning-calendar').style.display = 'block'; + for (var b=0; b'; + document.getElementById('morning-calendar-list').appendChild(div); + } + } else { + document.getElementById('morning-calendar').style.display = 'none'; } // 责善改过 diff --git a/static/style.css b/static/style.css index ef3cc26..f4d8fb8 100644 --- a/static/style.css +++ b/static/style.css @@ -1803,3 +1803,10 @@ body { /* 编辑模式下显示删除按钮 */ .btn-del { display: none; } .card.editing .btn-del { display: inline-flex; } + +/* 本周日程 */ +.morning-calendar { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; } +.morning-calendar-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; } +.cal-task-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--text-dim); line-height: 1.5; border-bottom: 1px solid var(--bg); } +.cal-task-item:last-child { border-bottom: none; } +.cal-task-dot { flex-shrink: 0; font-size: 14px; margin-top: 1px; } diff --git a/templates/index.html b/templates/index.html index 982fa2e..8be9dd8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -157,6 +157,13 @@ +