Changes to medconsult.scroll.pub

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

MedConsult

+

Your Online Medical Consultation Platform

+
+
+
+
+

Online Consultation

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

Patient Comments

+
+
+
+
+

Leave a Comment

+
+
+
+
+
+
+
+
+
+

MedConsult - Professional Online Medical Services

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://medconsult.scroll.pub
+ metaTags
+ editButton /edit.html
+ title MedConsult - Online Medical Consultation
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "20635e4a-f49f-4e94-b49c-02b793b5be4c",
+ "object": "chat.completion",
+ "created": 1736149928,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nmedconsult.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://medconsult.scroll.pub\nmetaTags\neditButton /edit.html\ntitle MedConsult - Online Medical Consultation\nstyle.css\nbody.html\nscript.js\n---body.html---\n
\n

MedConsult

\n

Your Online Medical Consultation Platform

\n
\n\n
\n
\n

Online Consultation

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

Patient Comments

\n
\n \n
\n
\n

Leave a Comment

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

MedConsult - Professional Online Medical Services

\n
\n---style.css---\n:root {\n --primary-color: #1a73e8;\n --secondary-color: #f1f3f4;\n --text-color: #202124;\n --white: #ffffff;\n --shadow: 0 2px 4px rgba(0,0,0,0.1);\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n margin: 0;\n padding: 0;\n background-color: var(--secondary-color);\n}\n\n.header {\n background: var(--primary-color);\n color: var(--white);\n padding: 2rem;\n text-align: center;\n box-shadow: var(--shadow);\n}\n\n.container {\n max-width: 800px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.consultation-form, .comments-section {\n background: var(--white);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--shadow);\n margin-bottom: 2rem;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\nlabel {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 500;\n}\n\ninput, textarea {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 1rem;\n}\n\ntextarea {\n resize: vertical;\n}\n\n.submit-btn {\n background: var(--primary-color);\n color: var(--white);\n padding: 0.8rem 1.5rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 1rem;\n transition: background 0.3s ease;\n}\n\n.submit-btn:hover {\n background: #1557b0;\n}\n\n.comments-container {\n margin-top: 1.5rem;\n}\n\n.comment {\n background: var(--secondary-color);\n padding: 1rem;\n border-radius: 4px;\n margin-bottom: 1rem;\n}\n\n.footer {\n text-align: center;\n padding: 1.5rem;\n background: var(--white);\n box-shadow: var(--shadow);\n}\n\n@media (max-width: 768px) {\n .container {\n padding: 0 0.5rem;\n }\n \n .consultation-form, .comments-section {\n padding: 1rem;\n }\n}\n---script.js---\n// Handle consultation form submission\ndocument.getElementById('consultationForm').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const formData = new FormData(this);\n const imageFile = formData.get('image');\n \n // Basic validation\n if (!formData.get('name') || !formData.get('email') || !formData.get('symptoms')) {\n alert('Please fill in all required fields');\n return;\n }\n \n // Process form data (this would be sent to server in real app)\n console.log('Consultation submitted:', {\n name: formData.get('name'),\n email: formData.get('email'),\n symptoms: formData.get('symptoms'),\n image: imageFile ? imageFile.name : 'No image'\n });\n \n alert('Your consultation has been submitted successfully!');\n this.reset();\n});\n\n// Handle comment submission\ndocument.getElementById('commentForm').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const commentText = document.getElementById('comment').value.trim();\n \n if (!commentText) {\n alert('Please enter a comment');\n return;\n }\n \n // Create new comment element\n const commentDiv = document.createElement('div');\n commentDiv.className = 'comment';\n commentDiv.textContent = commentText;\n \n // Add to comments container\n document.getElementById('commentsContainer').prepend(commentDiv);\n \n // Clear input\n document.getElementById('comment').value = '';\n});\n\n// Basic image preview (optional enhancement)\ndocument.getElementById('image').addEventListener('change', function(e) {\n const file = e.target.files[0];\n if (file) {\n const reader = new FileReader();\n reader.onload = function(e) {\n // Could display preview here if desired\n };\n reader.readAsDataURL(file);\n }\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 251,
+ "completion_tokens": 1429,
+ "total_tokens": 1680,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 251
+ },
+ "system_fingerprint": "fp_3a5770e1b4"
+ }
readme.scroll
Changed around line 1
+ # medconsult.scroll.pub
+ Website generated by DeepSeek from prompt: 一个在线问诊系统,有问诊表单,可以留言评论、上传图片
script.js
Changed around line 1
+ // Handle consultation form submission
+ document.getElementById('consultationForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const formData = new FormData(this);
+ const imageFile = formData.get('image');
+
+ // Basic validation
+ if (!formData.get('name') || !formData.get('email') || !formData.get('symptoms')) {
+ alert('Please fill in all required fields');
+ return;
+ }
+
+ // Process form data (this would be sent to server in real app)
+ console.log('Consultation submitted:', {
+ name: formData.get('name'),
+ email: formData.get('email'),
+ symptoms: formData.get('symptoms'),
+ image: imageFile ? imageFile.name : 'No image'
+ });
+
+ alert('Your consultation has been submitted successfully!');
+ this.reset();
+ });
+
+ // Handle comment submission
+ document.getElementById('commentForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const commentText = document.getElementById('comment').value.trim();
+
+ if (!commentText) {
+ alert('Please enter a comment');
+ return;
+ }
+
+ // Create new comment element
+ const commentDiv = document.createElement('div');
+ commentDiv.className = 'comment';
+ commentDiv.textContent = commentText;
+
+ // Add to comments container
+ document.getElementById('commentsContainer').prepend(commentDiv);
+
+ // Clear input
+ document.getElementById('comment').value = '';
+ });
+
+ // Basic image preview (optional enhancement)
+ document.getElementById('image').addEventListener('change', function(e) {
+ const file = e.target.files[0];
+ if (file) {
+ const reader = new FileReader();
+ reader.onload = function(e) {
+ // Could display preview here if desired
+ };
+ reader.readAsDataURL(file);
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #1a73e8;
+ --secondary-color: #f1f3f4;
+ --text-color: #202124;
+ --white: #ffffff;
+ --shadow: 0 2px 4px rgba(0,0,0,0.1);
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ margin: 0;
+ padding: 0;
+ background-color: var(--secondary-color);
+ }
+
+ .header {
+ background: var(--primary-color);
+ color: var(--white);
+ padding: 2rem;
+ text-align: center;
+ box-shadow: var(--shadow);
+ }
+
+ .container {
+ max-width: 800px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+ }
+
+ .consultation-form, .comments-section {
+ background: var(--white);
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--shadow);
+ margin-bottom: 2rem;
+ }
+
+ .form-group {
+ margin-bottom: 1.5rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 500;
+ }
+
+ input, textarea {
+ width: 100%;
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+ }
+
+ textarea {
+ resize: vertical;
+ }
+
+ .submit-btn {
+ background: var(--primary-color);
+ color: var(--white);
+ padding: 0.8rem 1.5rem;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background 0.3s ease;
+ }
+
+ .submit-btn:hover {
+ background: #1557b0;
+ }
+
+ .comments-container {
+ margin-top: 1.5rem;
+ }
+
+ .comment {
+ background: var(--secondary-color);
+ padding: 1rem;
+ border-radius: 4px;
+ margin-bottom: 1rem;
+ }
+
+ .footer {
+ text-align: center;
+ padding: 1.5rem;
+ background: var(--white);
+ box-shadow: var(--shadow);
+ }
+
+ @media (max-width: 768px) {
+ .container {
+ padding: 0 0.5rem;
+ }
+
+ .consultation-form, .comments-section {
+ padding: 1rem;
+ }
+ }