commit 7f408a51fecc6e48a78b6ae5ed6700698734c897
Author: root <root@hub.scroll.pub>
Date: 2024-12-27 22:44:04 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..5d8ae45
--- /dev/null
+++ b/body.html
@@ -0,0 +1,26 @@
+<header>
+ <h1>MathGenius</h1>
+ <p>Your personal math learning and practice platform</p>
+</header>
+
+<main>
+ <section id="course-generator">
+ <h2>Generate a New Math Course</h2>
+ <button id="generate-course">Generate Course</button>
+ <div id="course-content"></div>
+ </section>
+
+ <section id="whiteboard">
+ <h2>Practice Whiteboard</h2>
+ <div class="whiteboard-tools">
+ <button id="pen-tool">Pen</button>
+ <button id="eraser-tool">Eraser</button>
+ <button id="clear-board">Clear</button>
+ </div>
+ <canvas id="whiteboard-canvas"></canvas>
+ </section>
+</main>
+
+<footer>
+ <p>MathGenius - Continuous Learning, Infinite Possibilities</p>
+</footer>
\ No newline at end of file
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..30f6c2c
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://mathgenius.scroll.pub
+metaTags
+editButton /edit.html
+title MathGenius - Learn and Practice Math
+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..e3e470b
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,25 @@
+{
+ "id": "0409ec80-bfb7-4022-a281-4fc5ccb6f51b",
+ "object": "chat.completion",
+ "created": 1735339428,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "---domain---\nmathgenius.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://mathgenius.scroll.pub\nmetaTags\neditButton /edit.html\ntitle MathGenius - Learn and Practice Math\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <h1>MathGenius</h1>\n <p>Your personal math learning and practice platform</p>\n</header>\n\n<main>\n <section id=\"course-generator\">\n <h2>Generate a New Math Course</h2>\n <button id=\"generate-course\">Generate Course</button>\n <div id=\"course-content\"></div>\n </section>\n\n <section id=\"whiteboard\">\n <h2>Practice Whiteboard</h2>\n <div class=\"whiteboard-tools\">\n <button id=\"pen-tool\">Pen</button>\n <button id=\"eraser-tool\">Eraser</button>\n <button id=\"clear-board\">Clear</button>\n </div>\n <canvas id=\"whiteboard-canvas\"></canvas>\n </section>\n</main>\n\n<footer>\n <p>MathGenius - Continuous Learning, Infinite Possibilities</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #f5f5f5;\n --accent-color: #ff6b6b;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n margin: 0;\n padding: 0;\n background-color: var(--secondary-color);\n color: #333;\n line-height: 1.6;\n}\n\nheader {\n background: var(--primary-color);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\nh1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\nmain {\n max-width: 1200px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\nsection {\n background: white;\n border-radius: 8px;\n box-shadow: 0 2px 4px rgba(0,0,0,0.1);\n margin-bottom: 2rem;\n padding: 1.5rem;\n}\n\nbutton {\n background: var(--primary-color);\n color: white;\n border: none;\n padding: 0.75rem 1.5rem;\n border-radius: 4px;\n cursor: pointer;\n transition: background 0.3s ease;\n}\n\nbutton:hover {\n background: #357abd;\n}\n\n#whiteboard-canvas {\n width: 100%;\n height: 500px;\n border: 1px solid #ddd;\n border-radius: 4px;\n margin-top: 1rem;\n}\n\n.whiteboard-tools {\n display: flex;\n gap: 0.5rem;\n margin-bottom: 1rem;\n}\n\nfooter {\n text-align: center;\n padding: 1rem;\n background: var(--primary-color);\n color: white;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n \n #whiteboard-canvas {\n height: 300px;\n }\n}\n---script.js---\n// Course Generator\nconst courseGenerator = document.getElementById('generate-course');\nconst courseContent = document.getElementById('course-content');\n\nconst mathTopics = {\n highschool: ['Algebra', 'Geometry', 'Trigonometry', 'Calculus'],\n college: ['Linear Algebra', 'Differential Equations', 'Probability', 'Statistics'],\n graduate: ['Real Analysis', 'Abstract Algebra', 'Topology', 'Number Theory']\n};\n\nfunction generateCourse() {\n const level = Object.keys(mathTopics)[Math.floor(Math.random() * 3)];\n const topic = mathTopics[level][Math.floor(Math.random() * mathTopics[level].length)];\n \n const courseHTML = `\n <h3>New ${level} Course: ${topic}</h3>\n <p>Here's what you'll learn:</p>\n <ul>\n <li>Introduction to ${topic}</li>\n <li>Core concepts and theories</li>\n <li>Practical applications</li>\n <li>Problem-solving techniques</li>\n </ul>\n `;\n \n courseContent.innerHTML = courseHTML;\n}\n\ncourseGenerator.addEventListener('click', generateCourse);\n\n// Whiteboard\nconst canvas = document.getElementById('whiteboard-canvas');\nconst ctx = canvas.getContext('2d');\nlet isDrawing = false;\n\ncanvas.width = canvas.offsetWidth;\ncanvas.height = canvas.offsetHeight;\n\nctx.lineWidth = 3;\nctx.lineCap = 'round';\nctx.strokeStyle = '#000';\n\nfunction startDrawing(e) {\n isDrawing = true;\n draw(e);\n}\n\nfunction stopDrawing() {\n isDrawing = false;\n ctx.beginPath();\n}\n\nfunction draw(e) {\n if (!isDrawing) return;\n \n ctx.lineTo(e.offsetX, e.offsetY);\n ctx.stroke();\n ctx.beginPath();\n ctx.moveTo(e.offsetX, e.offsetY);\n}\n\ncanvas.addEventListener('mousedown', startDrawing);\ncanvas.addEventListener('mouseup', stopDrawing);\ncanvas.addEventListener('mousemove', draw);\n\ndocument.getElementById('pen-tool').addEventListener('click', () => {\n ctx.strokeStyle = '#000';\n});\n\ndocument.getElementById('eraser-tool').addEventListener('click', () => {\n ctx.strokeStyle = '#fff';\n});\n\ndocument.getElementById('clear-board').addEventListener('click', () => {\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n});\n\n// Responsive Canvas\nwindow.addEventListener('resize', () => {\n canvas.width = canvas.offsetWidth;\n canvas.height = canvas.offsetHeight;\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 279,
+ "completion_tokens": 1267,
+ "total_tokens": 1546,
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 279
+ },
+ "system_fingerprint": "fp_f1afce2943"
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..cd54736
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# mathgenius.scroll.pub
+Website generated by DeepSeek from prompt: Create a website that constantly generates new math courses from highschool up till graduate level, make it look fancy yet minimalistic, with a whiteboard with different whiteboard tools where i can practice the new learned theory and solve problems
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..98ca5ca
--- /dev/null
+++ b/script.js
@@ -0,0 +1,82 @@
+// Course Generator
+const courseGenerator = document.getElementById('generate-course');
+const courseContent = document.getElementById('course-content');
+
+const mathTopics = {
+ highschool: ['Algebra', 'Geometry', 'Trigonometry', 'Calculus'],
+ college: ['Linear Algebra', 'Differential Equations', 'Probability', 'Statistics'],
+ graduate: ['Real Analysis', 'Abstract Algebra', 'Topology', 'Number Theory']
+};
+
+function generateCourse() {
+ const level = Object.keys(mathTopics)[Math.floor(Math.random() * 3)];
+ const topic = mathTopics[level][Math.floor(Math.random() * mathTopics[level].length)];
+
+ const courseHTML = `
+ <h3>New ${level} Course: ${topic}</h3>
+ <p>Here's what you'll learn:</p>
+ <ul>
+ <li>Introduction to ${topic}</li>
+ <li>Core concepts and theories</li>
+ <li>Practical applications</li>
+ <li>Problem-solving techniques</li>
+ </ul>
+ `;
+
+ courseContent.innerHTML = courseHTML;
+}
+
+courseGenerator.addEventListener('click', generateCourse);
+
+// Whiteboard
+const canvas = document.getElementById('whiteboard-canvas');
+const ctx = canvas.getContext('2d');
+let isDrawing = false;
+
+canvas.width = canvas.offsetWidth;
+canvas.height = canvas.offsetHeight;
+
+ctx.lineWidth = 3;
+ctx.lineCap = 'round';
+ctx.strokeStyle = '#000';
+
+function startDrawing(e) {
+ isDrawing = true;
+ draw(e);
+}
+
+function stopDrawing() {
+ isDrawing = false;
+ ctx.beginPath();
+}
+
+function draw(e) {
+ if (!isDrawing) return;
+
+ ctx.lineTo(e.offsetX, e.offsetY);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(e.offsetX, e.offsetY);
+}
+
+canvas.addEventListener('mousedown', startDrawing);
+canvas.addEventListener('mouseup', stopDrawing);
+canvas.addEventListener('mousemove', draw);
+
+document.getElementById('pen-tool').addEventListener('click', () => {
+ ctx.strokeStyle = '#000';
+});
+
+document.getElementById('eraser-tool').addEventListener('click', () => {
+ ctx.strokeStyle = '#fff';
+});
+
+document.getElementById('clear-board').addEventListener('click', () => {
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
+});
+
+// Responsive Canvas
+window.addEventListener('resize', () => {
+ canvas.width = canvas.offsetWidth;
+ canvas.height = canvas.offsetHeight;
+});
\ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..fe577e7
--- /dev/null
+++ b/style.css
@@ -0,0 +1,86 @@
+:root {
+ --primary-color: #4a90e2;
+ --secondary-color: #f5f5f5;
+ --accent-color: #ff6b6b;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ margin: 0;
+ padding: 0;
+ background-color: var(--secondary-color);
+ color: #333;
+ line-height: 1.6;
+}
+
+header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+}
+
+h1 {
+ margin: 0;
+ font-size: 2.5rem;
+}
+
+main {
+ max-width: 1200px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+}
+
+section {
+ background: white;
+ border-radius: 8px;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ margin-bottom: 2rem;
+ padding: 1.5rem;
+}
+
+button {
+ background: var(--primary-color);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background 0.3s ease;
+}
+
+button:hover {
+ background: #357abd;
+}
+
+#whiteboard-canvas {
+ width: 100%;
+ height: 500px;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ margin-top: 1rem;
+}
+
+.whiteboard-tools {
+ display: flex;
+ gap: 0.5rem;
+ margin-bottom: 1rem;
+}
+
+footer {
+ text-align: center;
+ padding: 1rem;
+ background: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+}
+
+@media (max-width: 768px) {
+ h1 {
+ font-size: 2rem;
+ }
+
+ #whiteboard-canvas {
+ height: 300px;
+ }
+}
\ No newline at end of file