Changes to dailylog.scroll.pub

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

Daily Work Log

+

Fill out your daily work report and generate a JSON output.

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Generated JSON

+
+
+
+
+
+
+

Keep track of your daily work progress.

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://dailylog.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Daily Work Log
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # dailylog.scroll.pub
+ Website generated by DeepSeek from prompt: 制作一个网页用来填写每日工作日报 记录内容如下json 记录后生成同样格式的json可用于复制
script.js
Changed around line 1
+ document.getElementById('workLogForm').addEventListener('submit', function (e) {
+ e.preventDefault();
+
+ const formData = {
+ date: document.getElementById('date').value,
+ tasks: document.getElementById('tasks').value.split('\n').filter(task => task.trim() !== ''),
+ hours: parseFloat(document.getElementById('hours').value),
+ notes: document.getElementById('notes').value
+ };
+
+ const jsonOutput = JSON.stringify(formData, null, 2);
+ document.getElementById('jsonOutput').textContent = jsonOutput;
+ document.getElementById('output').classList.remove('hidden');
+ });
+
+ document.getElementById('copyButton').addEventListener('click', function () {
+ const jsonOutput = document.getElementById('jsonOutput').textContent;
+ navigator.clipboard.writeText(jsonOutput).then(() => {
+ alert('JSON copied to clipboard!');
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #2563eb;
+ --secondary-color: #1e40af;
+ --background-color: #f8fafc;
+ --text-color: #1e293b;
+ --border-radius: 8px;
+ --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ }
+
+ header {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ margin-bottom: 2rem;
+ }
+
+ main {
+ max-width: 800px;
+ margin: 0 auto;
+ padding: 0 1rem;
+ }
+
+ .form-group {
+ margin-bottom: 1.5rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 600;
+ }
+
+ input,
+ textarea {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid #e2e8f0;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+ transition: border-color 0.2s;
+ }
+
+ input:focus,
+ textarea:focus {
+ outline: none;
+ border-color: var(--primary-color);
+ box-shadow: var(--box-shadow);
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 0.75rem 1.5rem;
+ border: none;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background-color 0.2s;
+ }
+
+ button:hover {
+ background-color: var(--secondary-color);
+ }
+
+ #output {
+ margin-top: 2rem;
+ padding: 1.5rem;
+ background-color: white;
+ border-radius: var(--border-radius);
+ box-shadow: var(--box-shadow);
+ }
+
+ .hidden {
+ display: none;
+ }
+
+ pre {
+ background-color: #f1f5f9;
+ padding: 1rem;
+ border-radius: var(--border-radius);
+ overflow-x: auto;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ margin-top: 2rem;
+ color: #64748b;
+ }
+
+ @media (max-width: 768px) {
+ header {
+ padding: 1.5rem;
+ }
+
+ main {
+ padding: 0 0.5rem;
+ }
+ }