Changes to lunarholiday.scroll.pub

root
root
24 days ago
Initial commit
body.html
Changed around line 1
+
+

中国农历日历与法定假日

+

探索中国农历与法定假日的完美结合

+
+
+
+
+
+

感谢访问,祝您生活愉快!

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://lunarholiday.scroll.pub
+ metaTags
+ editButton /edit.html
+ title 中国农历日历与法定假日
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "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
\n

中国农历日历与法定假日

\n

探索中国农历与法定假日的完美结合

\n
\n
\n
\n
\n
\n

感谢访问,祝您生活愉快!

\n
\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"
+ }
readme.scroll
Changed around line 1
+ # lunarholiday.scroll.pub
+ Website generated by DeepSeek from prompt: 实现一个中国农历的日历,并且标准上中国的法定假日
script.js
Changed around line 1
+ 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;
style.css
Changed around line 1
+ 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));
+ }
+ }