commit 8696a825527a80920986e2755120d254b8a41e9d
Author: root <root@hub.scroll.pub> Date: 2024-12-30 07:38:52 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..0f85453 --- /dev/null +++ b/body.html @@ -0,0 +1,36 @@ +<header> + <h1>MR Image Quality Enhancement</h1> + <p>Upload your NIfTI image and select a model for quality enhancement.</p> +</header> + +<main> + <section class="upload-section"> + <h2>Upload Image</h2> + <input type="file" id="imageUpload" accept=".nii"> + <label for="imageUpload" class="upload-label">Choose NIfTI File</label> + </section> + + <section class="model-section"> + <h2>Select Model</h2> + <select id="modelSelect"> + <option value="model1">Model 1: Basic Enhancement</option> + <option value="model2">Model 2: Advanced Enhancement</option> + <option value="model3">Model 3: Expert Enhancement</option> + </select> + </section> + + <section class="preview-section"> + <h2>Preview</h2> + <div id="imagePreview"></div> + <button id="processButton" disabled>Process Image</button> + </section> + + <section class="results-section"> + <h2>Results</h2> + <div id="resultsContainer"></div> + </section> +</main> + +<footer> + <p>MR Image Quality Enhancement Demo</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..88b078e --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://mrenhance.scroll.pub +metaTags +editButton /edit.html +title MR Image Quality Enhancement Demo +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..79af74b --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "893707eb-ffae-4670-8c11-12a9a72b88b4", + "object": "chat.completion", + "created": 1735544312, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\nmrenhance.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://mrenhance.scroll.pub\nmetaTags\neditButton /edit.html\ntitle MR Image Quality Enhancement Demo\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>MR Image Quality Enhancement</h1>\n <p>Upload your NIfTI image and select a model for quality enhancement.</p>\n</header>\n\n<main>\n <section class=\"upload-section\">\n <h2>Upload Image</h2>\n <input type=\"file\" id=\"imageUpload\" accept=\".nii\">\n <label for=\"imageUpload\" class=\"upload-label\">Choose NIfTI File</label>\n </section>\n\n <section class=\"model-section\">\n <h2>Select Model</h2>\n <select id=\"modelSelect\">\n <option value=\"model1\">Model 1: Basic Enhancement</option>\n <option value=\"model2\">Model 2: Advanced Enhancement</option>\n <option value=\"model3\">Model 3: Expert Enhancement</option>\n </select>\n </section>\n\n <section class=\"preview-section\">\n <h2>Preview</h2>\n <div id=\"imagePreview\"></div>\n <button id=\"processButton\" disabled>Process Image</button>\n </section>\n\n <section class=\"results-section\">\n <h2>Results</h2>\n <div id=\"resultsContainer\"></div>\n </section>\n</main>\n\n<footer>\n <p>MR Image Quality Enhancement Demo</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #50e3c2;\n --background-color: #f5f7fa;\n --text-color: #333;\n --border-radius: 8px;\n --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\nbody {\n font-family: 'Segoe UI', sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n line-height: 1.6;\n}\n\nheader {\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\np {\n font-size: 1.1rem;\n}\n\nmain {\n max-width: 800px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\nsection {\n background: white;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n padding: 1.5rem;\n margin-bottom: 1.5rem;\n}\n\n.upload-section {\n text-align: center;\n}\n\n.upload-label {\n display: inline-block;\n background: var(--primary-color);\n color: white;\n padding: 0.75rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\n.upload-label:hover {\n background: #357abd;\n}\n\n#imageUpload {\n display: none;\n}\n\n.model-section select {\n width: 100%;\n padding: 0.75rem;\n border-radius: var(--border-radius);\n border: 1px solid #ddd;\n background: white;\n font-size: 1rem;\n}\n\n.preview-section {\n text-align: center;\n}\n\n#imagePreview {\n margin: 1rem 0;\n min-height: 200px;\n background: #f0f0f0;\n border-radius: var(--border-radius);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #666;\n}\n\n#processButton {\n background: var(--secondary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n font-size: 1rem;\n transition: background 0.3s ease;\n}\n\n#processButton:disabled {\n background: #ccc;\n cursor: not-allowed;\n}\n\n#processButton:hover:not(:disabled) {\n background: #3fc1a8;\n}\n\n.results-section {\n display: none;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 600px) {\n h1 {\n font-size: 2rem;\n }\n\n main {\n padding: 0 0.5rem;\n }\n\n section {\n padding: 1rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const imageUpload = document.getElementById('imageUpload');\n const imagePreview = document.getElementById('imagePreview');\n const processButton = document.getElementById('processButton');\n const resultsContainer = document.getElementById('resultsContainer');\n const resultsSection = document.querySelector('.results-section');\n\n imageUpload.addEventListener('change', function(event) {\n const file = event.target.files[0];\n if (file) {\n imagePreview.textContent = file.name;\n processButton.disabled = false;\n }\n });\n\n processButton.addEventListener('click', function() {\n const selectedModel = document.getElementById('modelSelect').value;\n resultsContainer.innerHTML = `<p>Processing image with ${selectedModel}...</p>`;\n resultsSection.style.display = 'block';\n\n // Simulate processing delay\n setTimeout(() => {\n resultsContainer.innerHTML = `\n <p>Processing complete!</p>\n <div class=\"result-image\">Enhanced Image Preview</div>\n `;\n }, 2000);\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 269, + "completion_tokens": 1298, + "total_tokens": 1567, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 269 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..ca281b9 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# mrenhance1.scroll.pub +Website generated by DeepSeek from prompt: I want to create a webapp demo for mr image quality enhancement for my pitchdeck. I want to be able to upload nii image and select what model to use. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..d1461ea --- /dev/null +++ b/script.js @@ -0,0 +1,29 @@ +document.addEventListener('DOMContentLoaded', function() { + const imageUpload = document.getElementById('imageUpload'); + const imagePreview = document.getElementById('imagePreview'); + const processButton = document.getElementById('processButton'); + const resultsContainer = document.getElementById('resultsContainer'); + const resultsSection = document.querySelector('.results-section'); + + imageUpload.addEventListener('change', function(event) { + const file = event.target.files[0]; + if (file) { + imagePreview.textContent = file.name; + processButton.disabled = false; + } + }); + + processButton.addEventListener('click', function() { + const selectedModel = document.getElementById('modelSelect').value; + resultsContainer.innerHTML = `<p>Processing image with ${selectedModel}...</p>`; + resultsSection.style.display = 'block'; + + // Simulate processing delay + setTimeout(() => { + resultsContainer.innerHTML = ` + <p>Processing complete!</p> + <div class="result-image">Enhanced Image Preview</div> + `; + }, 2000); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..b09f87b --- /dev/null +++ b/style.css @@ -0,0 +1,138 @@ +:root { + --primary-color: #4a90e2; + --secondary-color: #50e3c2; + --background-color: #f5f7fa; + --text-color: #333; + --border-radius: 8px; + --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); +} + +body { + font-family: 'Segoe UI', sans-serif; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); + line-height: 1.6; +} + +header { + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + color: white; + padding: 2rem; + text-align: center; +} + +h1 { + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +p { + font-size: 1.1rem; +} + +main { + max-width: 800px; + margin: 2rem auto; + padding: 0 1rem; +} + +section { + background: white; + border-radius: var(--border-radius); + box-shadow: var(--box-shadow); + padding: 1.5rem; + margin-bottom: 1.5rem; +} + +.upload-section { + text-align: center; +} + +.upload-label { + display: inline-block; + background: var(--primary-color); + color: white; + padding: 0.75rem 1.5rem; + border-radius: var(--border-radius); + cursor: pointer; + transition: background 0.3s ease; +} + +.upload-label:hover { + background: #357abd; +} + +#imageUpload { + display: none; +} + +.model-section select { + width: 100%; + padding: 0.75rem; + border-radius: var(--border-radius); + border: 1px solid #ddd; + background: white; + font-size: 1rem; +} + +.preview-section { + text-align: center; +} + +#imagePreview { + margin: 1rem 0; + min-height: 200px; + background: #f0f0f0; + border-radius: var(--border-radius); + display: flex; + align-items: center; + justify-content: center; + color: #666; +} + +#processButton { + background: var(--secondary-color); + color: white; + border: none; + padding: 0.75rem 1.5rem; + border-radius: var(--border-radius); + cursor: pointer; + font-size: 1rem; + transition: background 0.3s ease; +} + +#processButton:disabled { + background: #ccc; + cursor: not-allowed; +} + +#processButton:hover:not(:disabled) { + background: #3fc1a8; +} + +.results-section { + display: none; +} + +footer { + text-align: center; + padding: 1rem; + background: white; + margin-top: 2rem; +} + +@media (max-width: 600px) { + h1 { + font-size: 2rem; + } + + main { + padding: 0 0.5rem; + } + + section { + padding: 1rem; + } +} \ No newline at end of file