commit 64d66d56c41a21c6fc2317824be89b1b1d251fff
Author: root <root@hub.scroll.pub>
Date: 2024-12-29 10:50:07 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..ed5b361
--- /dev/null
+++ b/body.html
@@ -0,0 +1,10 @@
+<header>
+ <h1>中国农历日历与法定假日</h1>
+ <p>探索中国农历与法定假日的完美结合</p>
+</header>
+<main>
+ <div id="calendar"></div>
+</main>
+<footer>
+ <p>感谢访问,祝您生活愉快!</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..32aee09
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://lunarholiday.scroll.pub
+metaTags
+editButton /edit.html
+title 中国农历日历与法定假日
+style.css
+body.html
+script.js
\ No newline at end of file
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..0f7a483
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "8fa43c29-549a-4684-815c-a0c92bd6db8e",
+ "object": "chat.completion",
+ "created": 1735469398,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nlunarholiday.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://lunarholiday.scroll.pub\nmetaTags\neditButton /edit.html\ntitle 中国农历日历与法定假日\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>中国农历日历与法定假日</h1>\n <p>探索中国农历与法定假日的完美结合</p>\n</header>\n<main>\n <div id=\"calendar\"></div>\n</main>\n<footer>\n <p>感谢访问,祝您生活愉快!</p>\n</footer>\n---style.css---\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n margin: 0;\n padding: 0;\n background: #f4f4f4;\n color: #333;\n}\n\nheader {\n background: #005f73;\n color: white;\n padding: 20px;\n text-align: center;\n}\n\nmain {\n padding: 20px;\n text-align: center;\n}\n\n#calendar {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));\n gap: 10px;\n padding: 20px;\n}\n\n.day {\n background: white;\n border: 1px solid #ddd;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n}\n\nfooter {\n text-align: center;\n padding: 20px;\n background: #333;\n color: white;\n}\n\n@media (max-width: 600px) {\n #calendar {\n grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));\n }\n}\n---script.js---\nfunction generateCalendar() {\n const calendar = document.getElementById('calendar');\n const today = new Date();\n const year = today.getFullYear();\n const month = today.getMonth();\n\n const firstDay = new Date(year, month, 1);\n const lastDay = new Date(year, month + 1, 0);\n\n for (let day = 1; day <= lastDay.getDate(); day++) {\n const date = new Date(year, month, day);\n const dayElement = document.createElement('div');\n dayElement.className = 'day';\n dayElement.textContent = day;\n if (isHoliday(date)) {\n dayElement.style.backgroundColor = '#ffcccb';\n }\n calendar.appendChild(dayElement);\n }\n}\n\nfunction isHoliday(date) {\n const holidays = [\n '2023-01-01', '2023-02-01', '2023-05-01', '2023-10-01'\n ];\n return holidays.includes(date.toISOString().split('T')[0]);\n}\n\nwindow.onload = generateCalendar;\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 247,
+ "completion_tokens": 640,
+ "total_tokens": 887,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 247
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..7e389d9
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# lunarholiday.scroll.pub
+Website generated by DeepSeek from prompt: 实现一个中国农历的日历,并且标准上中国的法定假日
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..80cfe1f
--- /dev/null
+++ b/script.js
@@ -0,0 +1,29 @@
+function generateCalendar() {
+ const calendar = document.getElementById('calendar');
+ const today = new Date();
+ const year = today.getFullYear();
+ const month = today.getMonth();
+
+ const firstDay = new Date(year, month, 1);
+ const lastDay = new Date(year, month + 1, 0);
+
+ for (let day = 1; day <= lastDay.getDate(); day++) {
+ const date = new Date(year, month, day);
+ const dayElement = document.createElement('div');
+ dayElement.className = 'day';
+ dayElement.textContent = day;
+ if (isHoliday(date)) {
+ dayElement.style.backgroundColor = '#ffcccb';
+ }
+ calendar.appendChild(dayElement);
+ }
+}
+
+function isHoliday(date) {
+ const holidays = [
+ '2023-01-01', '2023-02-01', '2023-05-01', '2023-10-01'
+ ];
+ return holidays.includes(date.toISOString().split('T')[0]);
+}
+
+window.onload = generateCalendar;
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..2fe33de
--- /dev/null
+++ b/style.css
@@ -0,0 +1,47 @@
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ margin: 0;
+ padding: 0;
+ background: #f4f4f4;
+ color: #333;
+}
+
+header {
+ background: #005f73;
+ color: white;
+ padding: 20px;
+ text-align: center;
+}
+
+main {
+ padding: 20px;
+ text-align: center;
+}
+
+#calendar {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: 10px;
+ padding: 20px;
+}
+
+.day {
+ background: white;
+ border: 1px solid #ddd;
+ padding: 10px;
+ border-radius: 5px;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+}
+
+footer {
+ text-align: center;
+ padding: 20px;
+ background: #333;
+ color: white;
+}
+
+@media (max-width: 600px) {
+ #calendar {
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
+ }
+}
\ No newline at end of file