From 61da354a51faa8ac0fa5d0489e0fba0446bda2be Mon Sep 17 00:00:00 2001 From: biss Date: Fri, 17 Apr 2026 18:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/{index.html => countdown.html} | 104 ++++++------ gen/resum.html | 248 +++++++++++++++++++++++++++++ gen/todo.html | 114 +++++++++++++ 3 files changed, 412 insertions(+), 54 deletions(-) rename gen/{index.html => countdown.html} (80%) create mode 100644 gen/resum.html create mode 100644 gen/todo.html diff --git a/gen/index.html b/gen/countdown.html similarity index 80% rename from gen/index.html rename to gen/countdown.html index 9698e7e..1c14130 100644 --- a/gen/index.html +++ b/gen/countdown.html @@ -2,7 +2,7 @@ - 墨水屏倒计时 Pro - 阵列卡片版 + 墨水屏倒计时 Pro - 动态阵列版 ` : ''} +
${item.name}
${dayHTML}
@@ -247,13 +256,11 @@ `; }); } - function updateItem(index, key, value) { exams[index][key] = value; renderPreview(); - localStorage.setItem('dragExamGridV1', JSON.stringify(exams)); + localStorage.setItem('dragExamGridV2', JSON.stringify(exams)); } - function saveOrder() { const newExams = []; document.querySelectorAll('.manage-item').forEach(el => { @@ -262,7 +269,6 @@ exams = newExams; renderAll(); } - function addItem() { const n = document.getElementById('name-in').value; const d = document.getElementById('date-in').value; @@ -273,39 +279,29 @@ document.getElementById('name-in').value = ''; } } - function removeItem(index) { exams.splice(index, 1); renderAll(); } - function downloadImage() { - html2canvas(document.getElementById('capture-area'), { - width: 400, - height: 300, - scale: 2, - backgroundColor: "#ffffff" - }) + html2canvas(document.getElementById('capture-area'), { width: 400, height: 300, scale: 2 }) .then(canvas => { const link = document.createElement('a'); - link.download = `E-Paper_Grid_${getTodayStr()}.png`; - link.href = canvas.toDataURL("image/png"); + link.download = `Grid_Countdown.png`; + link.href = canvas.toDataURL(); link.click(); }); } - function exportJSON() { const blob = new Blob([JSON.stringify(exams)], {type: 'application/json'}); const a = document.createElement('a'); - a.href = URL.createObjectURL(blob); a.download = 'exams_config.json'; a.click(); + a.href = URL.createObjectURL(blob); a.download = 'exams.json'; a.click(); } - function importJSON(input) { const reader = new FileReader(); reader.onload = e => { exams = JSON.parse(e.target.result); renderAll(); }; reader.readAsText(input.files[0]); } - renderAll(); diff --git a/gen/resum.html b/gen/resum.html new file mode 100644 index 0000000..9811d7f --- /dev/null +++ b/gen/resum.html @@ -0,0 +1,248 @@ + + + + + 简介生成器 + + + + + +
+
+
+
张三
+
全栈开发工程师
+
+ 📍 坐标:北京 · 朝阳
+ 📧 邮箱:zhangsan@dev.com
+ 🔗 博客:blog.zhangsan.me +
+
+ +
+ QR +
扫码获取简历
+
+
+
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + + +
+ 生成的图片尺寸固定为 400x300,完美适配 4.2" 墨水屏。 +
+
+ + + + \ No newline at end of file diff --git a/gen/todo.html b/gen/todo.html new file mode 100644 index 0000000..b2076cd --- /dev/null +++ b/gen/todo.html @@ -0,0 +1,114 @@ + + + + + 4.2寸墨水屏看板 (红色提醒版) + + + + +

三色墨水屏待办生成器

+

提示:红色代表未完成(急需处理),黑色代表已完成

+ +
+
+
+ + +
+
+ +
+ +
+ +
+
+ + + + \ No newline at end of file