Changes to dataviz.scroll.pub

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

DataViz

+

Upload your data, analyze it, and visualize the results.

+
+
+
+
+

Upload Your Data

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

Analysis Results

+
+
+
+
+
+

DataViz - Simplifying Data Analysis

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://dataviz.scroll.pub
+ metaTags
+ editButton /edit.html
+ title DataViz - Analyze & Visualize Your Data
+ style.css
+ body.html
+ script.js
prompt.json
Changed around line 1
+ {
+ "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
\n

DataViz

\n

Upload your data, analyze it, and visualize the results.

\n
\n\n
\n
\n

Upload Your Data

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

Analysis Results

\n
\n Download Results\n
\n
\n\n
\n

DataViz - Simplifying Data Analysis

\n
\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 = '

Graph will be displayed here.

';\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"
+ }
readme.scroll
Changed around line 1
+ # 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.
script.js
Changed around line 1
+ 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 = '

Graph will be displayed here.

';
+
+ // Enable download link
+ const downloadLink = document.getElementById('download-link');
+ downloadLink.href = URL.createObjectURL(dataFile);
+ downloadLink.classList.remove('hidden');
+ }, 2000);
+ });
style.css
Changed around line 1
+ :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;
+ }
+ }