commit bb35642a0a9ed1f2c37898f05f577343b916d1e7
Author: root <root@hub.scroll.pub>
Date: 2025-01-06 13:17:38 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..5abc3bb
--- /dev/null
+++ b/body.html
@@ -0,0 +1,29 @@
+<header>
+ <h1>DataViz</h1>
+ <p>Upload your data, analyze it, and visualize the results.</p>
+</header>
+
+<main>
+ <section id="upload-section">
+ <h2>Upload Your Data</h2>
+ <form id="upload-form">
+ <label for="data-file">Data File (CSV):</label>
+ <input type="file" id="data-file" accept=".csv" required>
+
+ <label for="image-file">Image File (Optional):</label>
+ <input type="file" id="image-file" accept="image/*">
+
+ <button type="submit">Analyze Data</button>
+ </form>
+ </section>
+
+ <section id="results-section" class="hidden">
+ <h2>Analysis Results</h2>
+ <div id="graph-container"></div>
+ <a id="download-link" class="hidden" download="results.csv">Download Results</a>
+ </section>
+</main>
+
+<footer>
+ <p>DataViz - Simplifying Data Analysis</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..5e02fd0
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://dataviz.scroll.pub
+metaTags
+editButton /edit.html
+title DataViz - Analyze & Visualize Your Data
+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..43508b1
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "84b6e5e6-b5d7-4afb-93f1-40fcb8709b16",
+ "object": "chat.completion",
+ "created": 1736169436,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\ndataviz.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://dataviz.scroll.pub\nmetaTags\neditButton /edit.html\ntitle DataViz - Analyze & Visualize Your Data\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>DataViz</h1>\n <p>Upload your data, analyze it, and visualize the results.</p>\n</header>\n\n<main>\n <section id=\"upload-section\">\n <h2>Upload Your Data</h2>\n <form id=\"upload-form\">\n <label for=\"data-file\">Data File (CSV):</label>\n <input type=\"file\" id=\"data-file\" accept=\".csv\" required>\n \n <label for=\"image-file\">Image File (Optional):</label>\n <input type=\"file\" id=\"image-file\" accept=\"image/*\">\n \n <button type=\"submit\">Analyze Data</button>\n </form>\n </section>\n\n <section id=\"results-section\" class=\"hidden\">\n <h2>Analysis Results</h2>\n <div id=\"graph-container\"></div>\n <a id=\"download-link\" class=\"hidden\" download=\"results.csv\">Download Results</a>\n </section>\n</main>\n\n<footer>\n <p>DataViz - Simplifying Data Analysis</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f5f5f5;\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 line-height: 1.6;\n color: var(--text-color);\n margin: 0;\n padding: 0;\n background-color: var(--secondary-color);\n}\n\nheader {\n background-color: var(--primary-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\nmain {\n max-width: 800px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\nsection {\n background: white;\n padding: 2rem;\n border-radius: var(--border-radius);\n box-shadow: var(--box-shadow);\n margin-bottom: 2rem;\n}\n\nform {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n}\n\nlabel {\n font-weight: bold;\n}\n\ninput[type=\"file\"] {\n padding: 0.5rem;\n border: 1px solid #ddd;\n border-radius: var(--border-radius);\n}\n\nbutton {\n background-color: var(--primary-color);\n color: white;\n padding: 0.75rem;\n border: none;\n border-radius: var(--border-radius);\n cursor: pointer;\n transition: background-color 0.3s ease;\n}\n\nbutton:hover {\n background-color: darken(var(--primary-color), 10%);\n}\n\n#results-section {\n text-align: center;\n}\n\n#graph-container {\n margin: 2rem 0;\n}\n\n#download-link {\n display: inline-block;\n background-color: var(--primary-color);\n color: white;\n padding: 0.75rem 1.5rem;\n border-radius: var(--border-radius);\n text-decoration: none;\n transition: background-color 0.3s ease;\n}\n\n#download-link:hover {\n background-color: darken(var(--primary-color), 10%);\n}\n\n.hidden {\n display: none;\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.getElementById('upload-form').addEventListener('submit', function(e) {\n e.preventDefault();\n \n const dataFile = document.getElementById('data-file').files[0];\n const imageFile = document.getElementById('image-file').files[0];\n \n if (!dataFile) {\n alert('Please upload a data file.');\n return;\n }\n \n // Simulate analysis process\n setTimeout(() => {\n document.getElementById('upload-section').classList.add('hidden');\n document.getElementById('results-section').classList.remove('hidden');\n \n // Simulate graph display\n const graphContainer = document.getElementById('graph-container');\n graphContainer.innerHTML = '<p>Graph will be displayed here.</p>';\n \n // Enable download link\n const downloadLink = document.getElementById('download-link');\n downloadLink.href = URL.createObjectURL(dataFile);\n downloadLink.classList.remove('hidden');\n }, 2000);\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 283,
+ "completion_tokens": 1076,
+ "total_tokens": 1359,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 283
+ },
+ "system_fingerprint": "fp_3a5770e1b4"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..4268f45
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# dataviz.scroll.pub
+Website generated by DeepSeek from prompt: i want to create a website to analyse the data and make graph. i have written a R script. i need the users to upload the data to be analysed and the needed pictures. after the data was analysed , the users can download the results.
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..9f64c1f
--- /dev/null
+++ b/script.js
@@ -0,0 +1,26 @@
+document.getElementById('upload-form').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const dataFile = document.getElementById('data-file').files[0];
+ const imageFile = document.getElementById('image-file').files[0];
+
+ if (!dataFile) {
+ alert('Please upload a data file.');
+ return;
+ }
+
+ // Simulate analysis process
+ setTimeout(() => {
+ document.getElementById('upload-section').classList.add('hidden');
+ document.getElementById('results-section').classList.remove('hidden');
+
+ // Simulate graph display
+ const graphContainer = document.getElementById('graph-container');
+ graphContainer.innerHTML = '<p>Graph will be displayed here.</p>';
+
+ // Enable download link
+ const downloadLink = document.getElementById('download-link');
+ downloadLink.href = URL.createObjectURL(dataFile);
+ downloadLink.classList.remove('hidden');
+ }, 2000);
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..1564d19
--- /dev/null
+++ b/style.css
@@ -0,0 +1,112 @@
+:root {
+ --primary-color: #4a90e2;
+ --secondary-color: #f5f5f5;
+ --text-color: #333;
+ --border-radius: 8px;
+ --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ margin: 0;
+ padding: 0;
+ background-color: var(--secondary-color);
+}
+
+header {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+}
+
+h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+}
+
+main {
+ max-width: 800px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+}
+
+section {
+ background: white;
+ padding: 2rem;
+ border-radius: var(--border-radius);
+ box-shadow: var(--box-shadow);
+ margin-bottom: 2rem;
+}
+
+form {
+ display: flex;
+ flex-direction: column;
+ gap: 1rem;
+}
+
+label {
+ font-weight: bold;
+}
+
+input[type="file"] {
+ padding: 0.5rem;
+ border: 1px solid #ddd;
+ border-radius: var(--border-radius);
+}
+
+button {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 0.75rem;
+ border: none;
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+button:hover {
+ background-color: darken(var(--primary-color), 10%);
+}
+
+#results-section {
+ text-align: center;
+}
+
+#graph-container {
+ margin: 2rem 0;
+}
+
+#download-link {
+ display: inline-block;
+ background-color: var(--primary-color);
+ color: white;
+ padding: 0.75rem 1.5rem;
+ border-radius: var(--border-radius);
+ text-decoration: none;
+ transition: background-color 0.3s ease;
+}
+
+#download-link:hover {
+ background-color: darken(var(--primary-color), 10%);
+}
+
+.hidden {
+ display: none;
+}
+
+@media (max-width: 600px) {
+ h1 {
+ font-size: 2rem;
+ }
+
+ main {
+ padding: 0 0.5rem;
+ }
+
+ section {
+ padding: 1rem;
+ }
+}
\ No newline at end of file