Changes to mathmaze.scroll.pub

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

Math Maze Creator

+

Fun and educational mazes to practice math skills!

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

Made with ❤️ for young learners

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://mathmaze.scroll.pub
+ metaTags
+ editButton /edit.html
+ title Math Maze Creator for Kids
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # mathmaze.scroll.pub
+ Website generated by DeepSeek from prompt: simple math maze creator for kids to train on math - allow multiple ages selection so it can create something per age.
script.js
Changed around line 1
+ document.getElementById('createMaze').addEventListener('click', function() {
+ const age = document.getElementById('age').value;
+ const mazeContainer = document.getElementById('mazeContainer');
+ mazeContainer.innerHTML = '';
+
+ const mazeSize = Math.min(Math.max(age - 4, 3), 8); // Adjust maze size based on age
+ const gridSize = mazeSize * mazeSize;
+
+ mazeContainer.style.gridTemplateColumns = `repeat(${mazeSize}, 1fr)`;
+
+ for (let i = 0; i < gridSize; i++) {
+ const cell = document.createElement('div');
+ cell.className = 'maze-cell';
+
+ // Generate simple math problems based on age
+ const num1 = Math.floor(Math.random() * age) + 1;
+ const num2 = Math.floor(Math.random() * age) + 1;
+ const operator = ['+', '-'][Math.floor(Math.random() * 2)];
+ const problem = `${num1}${operator}${num2}`;
+
+ cell.textContent = problem;
+ mazeContainer.appendChild(cell);
+ }
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #4CAF50;
+ --secondary-color: #45a049;
+ --background-color: #f4f4f4;
+ --text-color: #333;
+ }
+
+ * {
+ box-sizing: border-box;
+ margin: 0;
+ padding: 0;
+ }
+
+ body {
+ font-family: 'Segoe UI', sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ padding: 20px;
+ max-width: 800px;
+ margin: 0 auto;
+ }
+
+ header {
+ text-align: center;
+ padding: 2rem 0;
+ }
+
+ h1 {
+ color: var(--primary-color);
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ section {
+ background: white;
+ padding: 1.5rem;
+ border-radius: 8px;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+ margin-bottom: 1.5rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: bold;
+ }
+
+ select, button {
+ width: 100%;
+ padding: 0.8rem;
+ margin-bottom: 1rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: white;
+ border: none;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+ }
+
+ button:hover {
+ background-color: var(--secondary-color);
+ }
+
+ #mazeContainer {
+ display: grid;
+ gap: 5px;
+ padding: 1rem;
+ background: #e8f5e9;
+ border-radius: 8px;
+ }
+
+ .maze-cell {
+ width: 30px;
+ height: 30px;
+ background: white;
+ border: 1px solid #ddd;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-weight: bold;
+ }
+
+ @media (min-width: 600px) {
+ select, button {
+ width: auto;
+ display: inline-block;
+ margin-right: 1rem;
+ }
+ }