PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(gemini-3.1-pro)
Token size
3,622
Example input
[Clean Water Filter Mission]: Clean Water Filter Mission [Upper elementary collaborative learners]: Upper elementary collaborative learners [Water filtration, environmental engineering, evidence testing]: Water filtration, environmental engineering, evidence testing [60-minute hands-on lab rotation]: 60-minute hands-on lab rotation [Plastic bottles, sand, gravel, cotton, coffee filters, dirty water sample, no drinking test]: Plastic bottles, sand, gravel, cotton, coffee filters, dirty water sample, no drinking test
Example output
<!DOCTYPE strict> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>InquiryCircuit WebLab: Clean Water Filter Mission</title> <style> /* CSS VARIABLES & THEMING */ :root { --primary: #0284c7; /* Ocean Blue */ --primary-light: #e0f2fe; --primary-dark: #0369a1; --secondary: #10b981; /* Eco Green */ --secondary-light: #d1fae5; --secondary-dark: #059669; --accent: #f59e0b; /* Warning/Action Amber */ --bg-color: #f8fafc; --card-bg: #ffffff; --text-dark: #1e293b; --text-light: #64748b; --border: #e2e8f0; --danger: #ef4444; --danger-light: #fee2e2; --radius: 12px; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --transition: all 0.3s ease; } /* RESET & BASE */ * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; } body { background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; } /* TYPOGRAPHY */ h1, h2, h3, h4 { color: var(--primary-dark); margin-bottom: 0.5rem; font-weight: 700; } h1 { font-size: 2.2rem; } h2 { font-size: 1.8rem; border-bottom: 3px solid var(--primary-light); padding-bottom: 0.3rem; display: inline-block; } p { margin-bottom: 1rem; font-size: 1.05rem; } .emoji-icon { font-size: 1.5rem; vertical-align: middle; margin-right: 8px; } /* LAYOUT & NAVIGATION */ header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; } header h1 { color: white; margin: 0; font-size: 1.8rem; display: flex; align-items: center; gap: 10px; } .mode-toggle { background: rgba(255,255,255,0.2); border: 2px solid white; color: white; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-weight: bold; transition: var(--transition); } .mode-toggle:hover { background: white; color: var(--primary); } .app-container { display: flex; flex: 1; max-width: 1200px; margin: 0 auto; width: 100%; padding: 2rem 1rem; gap: 2rem; } /* SIDEBAR / 5E NAV */ aside { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 0.5rem; } .nav-btn { background: var(--card-bg); border: 2px solid var(--border); padding: 1rem; border-radius: var(--radius); text-align: left; cursor: pointer; font-weight: 600; color: var(--text-dark); transition: var(--transition); display: flex; align-items: center; gap: 10px; } .nav-btn:hover { border-color: var(--primary-light); background: var(--primary-light); transform: translateX(5px); } .nav-btn.active { border-color: var(--primary); background: var(--primary); color: white; box-shadow: var(--shadow); } .progress-indicator { height: 8px; background: var(--border); border-radius: 4px; margin-top: 1rem; overflow: hidden; } .progress-bar { height: 100%; background: var(--secondary); width: 0%; transition: width 0.5s ease; } /* MAIN CONTENT AREA */ main { flex: 1; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem; position: relative; overflow: hidden; } .section-view { display: none; animation: fadeIn 0.4s ease-out forwards; } .section-view.active { display: block; } /* UI COMPONENTS */ .card { background: var(--bg-color); border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; transition: var(--transition); } .card:hover { box-shadow: var(--shadow); transform: translateY(-2px); } .alert-card { background: var(--danger-light); border-left: 5px solid var(--danger); padding: 1rem 1.5rem; border-radius: 4px 8px 8px 4px; margin-bottom: 1.5rem; color: #991b1b; font-weight: 600; display: flex; align-items: center; gap: 10px; } .btn { background: var(--primary); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); } .btn-secondary { background: var(--secondary); } .btn-secondary:hover { background: var(--secondary-dark); } .btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); } .btn-outline:hover { background: var(--primary-light); } input[type="text"], textarea, select { width: 100%; padding: 0.8rem; border: 2px solid var(--border); border-radius: 8px; margin-bottom: 1rem; font-size: 1rem; transition: var(--transition); } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); } /* SIMULATION CSS */ .simulation-container { display: flex; gap: 2rem; align-items: flex-end; justify-content: center; margin: 2rem 0; padding: 2rem; background: var(--primary-light); border-radius: var(--radius); } .bottle-wrapper { display: flex; flex-direction: column; align-items: center; width: 140px; } .bottle { width: 120px; height: 300px; border: 4px solid rgba(255,255,255,0.8); border-top: none; border-radius: 0 0 20px 20px; position: relative; background: rgba(255,255,255,0.3); display: flex; flex-direction: column-reverse; overflow: hidden; box-shadow: inset 0 0 15px rgba(0,0,0,0.1); } .bottle-neck { width: 60px; height: 40px; border: 4px solid rgba(255,255,255,0.8); border-bottom: none; border-radius: 10px 10px 0 0; background: rgba(255,255,255,0.3); position: relative; } .layer { width: 100%; transition: height 0.3s ease, background 0.3s ease; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-weight: bold; color: rgba(0,0,0,0.6); text-align: center; } .layer-cotton { background: #fdfbf7; background-image: radial-gradient(#e5e5e5 1px, transparent 1px); background-size: 10px 10px; border-top: 2px dashed #ccc; } .layer-sand { background: #e6c280; background-image: radial-gradient(#c29b57 1px, transparent 1px); background-size: 5px 5px; } .layer-gravel { background: #9ca3af; background-image: radial-gradient(#6b7280 2px, transparent 2px); background-size: 12px 12px; } .layer-filter { background: #ffffff; height: 10px !important; border-bottom: 2px solid #ddd; } .water-drop { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; background: #8b5a2b; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0; pointer-events: none; } .beaker { width: 140px; height: 80px; border: 3px solid rgba(255,255,255,0.8); border-top: none; border-radius: 0 0 10px 10px; margin-top: 10px; position: relative; overflow: hidden; } .filtered-water { position: absolute; bottom: 0; left: 0; width: 100%; height: 0%; background: transparent; transition: height 2s ease, background-color 2s ease; } .sim-controls { display: flex; flex-direction: column; gap: 10px; width: 200px; } .sim-btn { background: white; border: 2px solid var(--primary); padding: 0.5rem; border-radius: 8px; cursor: pointer; font-weight: bold; transition: var(--transition); display: flex; align-items: center; justify-content: space-between; } .sim-btn:hover { background: var(--primary-light); } .sim-btn[disabled] { opacity: 0.5; cursor: not-allowed; } /* QUIZ & BADGES */ .quiz-option { display: block; width: 100%; padding: 1rem; margin-bottom: 0.5rem; background: var(--bg-color); border: 2px solid var(--border); border-radius: 8px; cursor: pointer; transition: var(--transition); font-size: 1rem; text-align: left; } .quiz-option:hover { background: var(--primary-light); border-color: var(--primary); } .quiz-option.correct { background: var(--secondary-light); border-color: var(--secondary); color: var(--secondary-dark); } .quiz-option.incorrect { background: var(--danger-light); border-color: var(--danger); color: var(--danger); } .badge-container { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; } .badge { width: 80px; height: 80px; background: #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; opacity: 0.4; filter: grayscale(100%); transition: var(--transition); flex-direction: column; } .badge span { font-size: 0.6rem; font-weight: bold; margin-top: 5px; color: var(--text-dark); text-align: center; } .badge.unlocked { opacity: 1; filter: grayscale(0%); background: linear-gradient(135deg, #ffd700, #ff8c00); box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); transform: scale(1.1); animation: popBadge 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); } /* DATA TABLE */ table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); } th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); } th { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; } tr:last-child td { border-bottom: none; } /* ANIMATIONS */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes popBadge { 0% { transform: scale(0.5); } 70% { transform: scale(1.2); } 100% { transform: scale(1.1); } } @keyframes drip { 0% { opacity: 1; transform: translate(-50%, -20px) scale(1); } 50% { transform: translate(-50%, 150px) scale(0.8); } 100% { opacity: 0; transform: translate(-50%, 300px) scale(0.5); } } /* TEACHER DASHBOARD SPECIFICS */ .teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; } .tag { background: var(--secondary-light); color: var(--secondary-dark); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: bold; display: inline-block; margin-right: 5px; } /* PRINT STYLES */ @media print { header .mode-toggle, aside, .btn:not(.print-btn), .sim-controls, .badge-container { display: none !important; } body { background: white; color: black; display: block; } .app-container { max-width: 100%; padding: 0; display: block; } main { box-shadow: none; padding: 0; border: none; } .section-view { display: block !important; page-break-after: always; opacity: 1; animation: none; margin-bottom: 2rem; } .section-view:last-child { page-break-after: auto; } .card { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; } .alert-card { border: 2px solid black !important; background: white !important; color: black !important; } table, th, td { border: 1px solid black; } * { transition: none !important; } } /* RESPONSIVE */ @media (max-width: 768px) { .app-container { flex-direction: column; } aside { width: 100%; flex-direction: row; flex-wrap: wrap; } .nav-btn { flex: 1; text-align: center; justify-content: center; padding: 0.5rem; font-size: 0.9rem; } .simulation-container { flex-direction: column; align-items: center; } .sim-controls { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; } header { flex-direction: column; gap: 1rem; text-align: center; } } </style> </head> <body> <header> <h1><span class="emoji-icon">πŸ’§</span> InquiryCircuit WebLab</h1> <button class="mode-toggle" onclick="toggleMode()" id="modeToggleBtn">πŸ‘¨β€πŸ« Switch to Teacher Dashboard</button> </header> <div class="app-container"> <!-- STUDENT NAVIGATION --> <aside id="studentNav"> <button class="nav-btn active" onclick="showSection('engage')"><span class="emoji-icon">πŸš€</span> 1. Engage</button> <button class="nav-btn" onclick="showSection('explore')"><span class="emoji-icon">πŸ”¬</span> 2. Explore</button> <button class="nav-btn" onclick="showSection('explain')"><span class="emoji-icon">πŸ“</span> 3. Explain</button> <button class="nav-btn" onclick="showSection('elaborate')"><span class="emoji-icon">πŸ› οΈ</span> 4. Elaborate</button> <button class="nav-btn" onclick="showSection('evaluate')"><span class="emoji-icon">🎯</span> 5. Evaluate</button> <div style="margin-top: auto;"> <p style="font-size: 0.8rem; font-weight: bold; color: var(--text-light);">Mission Progress</p> <div class="progress-indicator"> <div class="progress-bar" id="progressBar"></div> </div> <div class="badge-container" id="badgesDisplay"> <div class="badge" id="badge-explore">πŸ’§<span>Explorer</span></div> <div class="badge" id="badge-explain">πŸ“<span>Thinker</span></div> <div class="badge" id="badge-evaluate">πŸ†<span>Master</span></div> </div> </div> </aside> <main> <!-- ================= TEACHER DASHBOARD ================= --> <div id="teacher-dashboard" class="section-view"> <h2>πŸ‘¨β€πŸ« Teacher Dashboard: Clean Water Filter Mission</h2> <div style="margin-bottom: 1.5rem;"> <button class="btn btn-secondary" onclick="window.print()"><span class="emoji-icon">πŸ–¨οΈ</span> Print Lesson Plan & Worksheets</button> <button class="btn btn-outline" onclick="resetApp()"><span class="emoji-icon">πŸ”„</span> Reset Student Data</button> </div> <div class="alert-card"> <span class="emoji-icon">⚠️</span> <div> <strong>CRITICAL SAFETY NOTE:</strong> Do NOT allow students to drink the filtered water. This activity is a scientific model only. Microorganisms and unseen chemicals remain even if the water looks clear. </div> </div> <div class="teacher-grid"> <div class="card"> <h3>πŸ“Œ Lesson Overview</h3> <p><strong>Grade Level:</strong> Upper Elementary (3-5)</p> <p><strong>Duration:</strong> 60-Minute Lab Rotation</p> <p><strong>Format:</strong> Collaborative Hands-on Groups</p> <p><strong>Learning Goal:</strong> Students will design, build, and test a water filtration model, using evidence to explain how different materials separate particles from water.</p> </div> <div class="card"> <h3>πŸ“‹ Required Materials (Per Group)</h3> <ul style="margin-left: 1.5rem; margin-top: 0.5rem;"> <li>1 clear plastic bottle (cut in half)</li> <li>Coffee filters or Cotton balls</li> <li>Washed play sand</li> <li>Aquarium gravel or small pebbles</li> <li>"Dirty Water" sample (water mixed with soil/cocoa)</li> <li>Empty cup for catching filtered water</li> </ul> <p style="font-size: 0.9rem; color: var(--text-light); margin-top: 10px;"><em>Low-cost alternative:</em> Use fabric scraps instead of cotton, and dirt from the playground instead of purchased sand.</p> </div> <div class="card"> <h3>⏱️ 60-Min Pacing Guide</h3> <ul style="list-style-type: none;"> <li><strong>10m: Engage</strong> - Intro mission & digital model.</li> <li><strong>15m: Explore</strong> - Digital simulation testing.</li> <li><strong>20m: Elaborate</strong> - Physical filter building & testing.</li> <li><strong>10m: Explain</strong> - CER writing & observation logs.</li> <li><strong>05m: Evaluate</strong> - Quiz & cleanup.</li> </ul> </div> <div class="card"> <h3>πŸ“ Suggested NGSS Alignment</h3> <p><span class="tag">Engineering</span> <strong>3-5-ETS1-2:</strong> Generate and compare multiple possible solutions to a problem.</p> <p><span class="tag">Earth Sci</span> <strong>5-ESS3-1:</strong> Obtain and combine information about ways communities protect Earth's resources.</p> <p><em>*Teacher Verification Note: Review alignment against your specific district curriculum matrix.</em></p> </div> </div> <div class="card"> <h3>πŸ’‘ Facilitation & Misconceptions</h3> <p><strong>Misconception 1: "Sand will make the water dirtier."</strong><br> <em>Facilitation:</em> Ask students, "If sand makes it dirtier, why does the digital model show sand catching dirt? What happens when water flows through packed sand versus loose dirt?"</p> <p><strong>Misconception 2: "Clear water means safe drinking water."</strong><br> <em>Facilitation:</em> Emphasize the safety rule heavily. Explain that bacteria are too small for these filters to catch. Relate it to boiling or chemical treatment at real water plants.</p> <hr style="margin: 1rem 0; border: 0; border-top: 1px solid var(--border);"> <h4>Differentiation</h4> <p><strong>Struggling Learners:</strong> Pre-cut the bottles. Provide sentence starters for the CER section (e.g., "I noticed that...").</p> <p><strong>Advanced/Fast Finishers:</strong> Challenge them to create the fastest filter that still works, timing the flow rate.</p> </div> </div> <!-- ================= ENGAGE (Student) ================= --> <div id="engage" class="section-view active"> <h1>Eco-Town Water Crisis!</h1> <div class="card" style="background: var(--primary-light); border-left: 5px solid var(--primary);"> <h2><span class="emoji-icon">🚨</span> Mission Briefing</h2> <p>Hello, Environmental Engineers! The Mayor of Eco-Town needs your help immediately. A recent storm has washed a lot of mud and debris into the town's river reservoir.</p> <p>The water treatment plant is overwhelmed! Before the water goes to the chemical treatment center, we need to design a <strong>pre-filter system</strong> using natural materials to remove the large dirt and particles.</p> <h3>Your Challenge:</h3> <p>Design and test a filtration model to make the muddy water as visually clear as possible.</p> </div> <div class="alert-card"> <span class="emoji-icon">πŸ›‘</span> <div> <strong>LAB SAFETY RULE 1:</strong> Do NOT drink the water! Even if it looks clear, our filters cannot remove invisible bacteria. This is a scientific model only! </div> </div> <div class="card"> <h3>Vocabulary Check</h3> <div style="display: flex; flex-wrap: wrap; gap: 1rem;"> <div style="flex: 1; min-width: 200px; background: white; padding: 1rem; border-radius: 8px; border: 1px solid var(--border);"> <strong>Filtration:</strong> The process of passing a liquid through a material to remove solid particles. </div> <div style="flex: 1; min-width: 200px; background: white; padding: 1rem; border-radius: 8px; border: 1px solid var(--border);"> <strong>Porous:</strong> Having tiny holes or spaces that allow liquid or air to pass through. </div> <div style="flex: 1; min-width: 200px; background: white; padding: 1rem; border-radius: 8px; border: 1px solid var(--border);"> <strong>Engineer:</strong> A person who uses science and math to solve real-world problems. </div> </div> </div> <button class="btn" onclick="showSection('explore'); updateProgress(20);">Accept Mission & Proceed to Lab ➑️</button> </div> <!-- ================= EXPLORE (Student) ================= --> <div id="explore" class="section-view"> <h2>Digital Filter Simulator</h2> <p>Before building our physical model, let's test materials in our digital lab. A good filter usually goes from coarse (big pieces) to fine (tiny spaces).</p> <div class="card"> <p><strong>Instructions:</strong> Build your filter by adding up to 3 layers. <em>Build from the BOTTOM UP!</em> Then test your design.</p> <div class="simulation-container"> <div class="sim-controls"> <h4>Add Layers (Bottom to Top)</h4> <button class="sim-btn" onclick="addLayer('cotton')">☁️ Cotton/Filter <span id="cnt-cotton">0</span></button> <button class="sim-btn" onclick="addLayer('sand')">πŸ–οΈ Fine Sand <span id="cnt-sand">0</span></button> <button class="sim-btn" onclick="addLayer('gravel')">πŸͺ¨ Gravel <span id="cnt-gravel">0</span></button> <button class="sim-btn" style="background: var(--danger-light); border-color: var(--danger); margin-top: 10px;" onclick="resetSim()">πŸ”„ Clear Filter</button> </div> <div> <div class="bottle-neck"></div> <div class="bottle" id="simBottle"> <!-- Layers will be injected here --> </div> <div class="water-drop" id="waterDrop"></div> <div class="beaker"> <div class="filtered-water" id="beakerWater"></div> </div> </div> <div class="sim-controls"> <h4>Run Simulation</h4> <button class="btn" id="runTestBtn" onclick="runSimulation()" disabled>πŸ’§ Pour Muddy Water</button> <div id="simResult" style="margin-top: 15px; font-weight: bold; text-align: center; min-height: 50px;"></div> </div> </div> </div> <button class="btn" onclick="showSection('explain'); unlockBadge('explore'); updateProgress(40);">Next: Record Observations ➑️</button> </div> <!-- ================= EXPLAIN (Student) ================= --> <div id="explain" class="section-view"> <h2>Data & Evidence Builder</h2> <p>Scientists record what they observe to make claims. Based on your digital simulation, fill out the data table and C.E.R. (Claim, Evidence, Reasoning).</p> <div class="card"> <h3>Observation Log</h3> <table> <thead> <tr> <th>Filter Design (Bottom to Top)</th> <th>Prediction (Clear or Muddy?)</th> <th>Actual Result</th> </tr> </thead> <tbody> <tr> <td>Gravel -> Sand -> Cotton</td> <td><input type="text" placeholder="Type here..." id="obs1"></td> <td>Water was mostly muddy.</td> </tr> <tr> <td>Cotton -> Sand -> Gravel</td> <td><input type="text" placeholder="Type here..." id="obs2"></td> <td>Water was mostly clear.</td> </tr> </tbody> </table> </div> <div class="card"> <h3>C.E.R. Builder</h3> <div style="margin-bottom: 1rem;"> <label style="font-weight: bold; color: var(--primary-dark);">Claim (Answer the question: Which material order works best?)</label> <textarea id="cerClaim" rows="2" placeholder="I claim that placing..."></textarea> </div> <div style="margin-bottom: 1rem;"> <label style="font-weight: bold; color: var(--primary-dark);">Evidence (What data from the simulator supports your claim?)</label> <textarea id="cerEvidence" rows="2" placeholder="In the simulation, when I tested..."></textarea> </div> <div style="margin-bottom: 1rem;"> <label style="font-weight: bold; color: var(--primary-dark);">Reasoning (Why does this happen scientifically? Think about particle size!)</label> <textarea id="cerReasoning" rows="2" placeholder="This happens because gravel catches... and cotton catches..."></textarea> </div> <button class="btn btn-secondary" onclick="saveCER()">πŸ’Ύ Save Notes</button> <span id="saveStatus" style="color: var(--secondary-dark); margin-left: 10px; font-weight: bold;"></span> </div> <button class="btn" onclick="showSection('elaborate'); unlockBadge('explain'); updateProgress(60);">Next: Engineering Challenge ➑️</button> </div> <!-- ================= ELABORATE (Student) ================= --> <div id="elaborate" class="section-view"> <h2>Physical Engineering Challenge</h2> <p>It's time to build your physical model! Work with your team to construct a real filter based on your digital findings.</p> <div class="teacher-grid"> <div class="card"> <h3>πŸ› οΈ Build Checklist</h3> <label style="display: block; margin-bottom: 8px;"><input type="checkbox" id="chk1"> We have our cut plastic bottle.</label> <label style="display: block; margin-bottom: 8px;"><input type="checkbox" id="chk2"> We have an empty collection cup underneath.</label> <label style="display: block; margin-bottom: 8px;"><input type="checkbox" id="chk3"> We agreed on the layer order as a team.</label> <label style="display: block; margin-bottom: 8px;"><input type="checkbox" id="chk4"> We added our materials (Cotton, Sand, Gravel).</label> <label style="display: block; margin-bottom: 8px;"><input type="checkbox" id="chk5"> Teacher has approved us to pour the muddy water.</label> </div> <div class="card"> <h3>πŸ”„ Iteration & Improvement</h3> <p>Engineers rarely get it perfectly right the first time. Watch the water flow.</p> <label style="font-weight: bold;">Did the water flow too fast or too slow?</label> <input type="text" id="flowRate" placeholder="It flowed..."> <label style="font-weight: bold; margin-top: 10px; display: block;">If you could rebuild it, what would you change?</label> <textarea id="improvement" rows="2" placeholder="Next time, I would..."></textarea> <button class="btn btn-outline" style="margin-top: 10px;" onclick="saveElaborate()">Save Reflection</button> </div> </div> <button class="btn" onclick="showSection('evaluate'); updateProgress(80);">Next: Mission Quiz ➑️</button> </div> <!-- ================= EVALUATE (Student) ================= --> <div id="evaluate" class="section-view"> <h2>Mission Evaluation</h2> <div class="card" id="quizContainer"> <h3>Knowledge Check</h3> <div id="q1-box"> <p><strong>1. Why is cotton or a coffee filter usually placed at the very bottom of the bottle neck?</strong></p> <button class="quiz-option" onclick="checkAnswer('q1', false, this)">A) To add flavor to the water.</button> <button class="quiz-option" onclick="checkAnswer('q1', false, this)">B) To catch the large pebbles and sticks.</button> <button class="quiz-option" onclick="checkAnswer('q1', true, this)">C) To act as a final barrier for the tiniest dirt particles and keep the sand from falling out.</button> </div> <div id="q2-box" style="margin-top: 20px;"> <p><strong>2. After passing through your physical filter, is the water safe to drink?</strong></p> <button class="quiz-option" onclick="checkAnswer('q2', false, this)">A) Yes, if it looks perfectly clear.</button> <button class="quiz-option" onclick="checkAnswer('q2', true, this)">B) No, because microscopic bacteria and chemicals might still be in it.</button> <button class="quiz-option" onclick="checkAnswer('q2', false, this)">C) Yes, because sand kills all bacteria.</button> </div> </div> <div class="card"> <h3>Student Self-Rubric</h3> <p>How did you do on this mission? Select your level:</p> <select id="studentRubric" style="max-width: 300px;"> <option value="">-- Select Level --</option> <option value="beginning">Beginning: I needed a lot of help to build and explain.</option> <option value="developing">Developing: I helped build, but my evidence is missing parts.</option> <option value="proficient">Proficient: My filter worked, and I explained it using Claim/Evidence.</option> <option value="advanced">Advanced: My filter worked well, my CER is strong, and I suggested design improvements.</option> </select> </div> <button class="btn btn-secondary" onclick="finishMission()"><span class="emoji-icon">πŸŽ‰</span> Complete Mission!</button> <div id="finalMessage" style="margin-top: 15px; font-weight: bold; color: var(--secondary-dark); display: none;"> Mission Accomplished! Great job, Environmental Engineer! Please wait for teacher instructions. </div> </div> </main> </div> <script> // --- NAVIGATION & UI STATE --- let isTeacherMode = false; function toggleMode() { isTeacherMode = !isTeacherMode; const btn = document.getElementById('modeToggleBtn'); const studentNav = document.getElementById('studentNav'); // Hide all sections document.querySelectorAll('.section-view').forEach(s => s.classList.remove('active')); if (isTeacherMode) { btn.innerHTML = "πŸŽ“ Switch to Student Mission"; btn.style.background = "white"; btn.style.color = "var(--primary-dark)"; studentNav.style.display = "none"; document.getElementById('teacher-dashboard').classList.add('active'); } else { btn.innerHTML = "πŸ‘¨β€πŸ« Switch to Teacher Dashboard"; btn.style.background = "rgba(255,255,255,0.2)"; btn.style.color = "white"; studentNav.style.display = "flex"; // Show engage by default when returning to student showSection('engage'); } } function showSection(sectionId) { // Update active state in nav document.querySelectorAll('.nav-btn').forEach(btn => btn.classList.remove('active')); const activeBtn = Array.from(document.querySelectorAll('.nav-btn')).find(b => b.getAttribute('onclick').includes(sectionId)); if(activeBtn) activeBtn.classList.add('active'); // Show section document.querySelectorAll('.section-view').forEach(s => s.classList.remove('active')); document.getElementById(sectionId).classList.add('active'); } function updateProgress(percentage) { document.getElementById('progressBar').style.width = percentage + '%'; } function unlockBadge(badgeId) { const badge = document.getElementById('badge-' + badgeId); if(badge && !badge.classList.contains('unlocked')) { badge.classList.add('unlocked'); } } // --- SIMULATION LOGIC --- let currentLayers = []; const MAX_LAYERS = 3; function addLayer(material) { if (currentLayers.length >= MAX_LAYERS) { alert("Maximum of 3 layers reached!"); return; } currentLayers.push(material); renderSimulation(); } function renderSimulation() { const bottle = document.getElementById('simBottle'); bottle.innerHTML = ''; // Reset counters document.getElementById('cnt-cotton').innerText = '0'; document.getElementById('cnt-sand').innerText = '0'; document.getElementById('cnt-gravel').innerText = '0'; // Build visually from bottom (which is index 0 of our array, rendered bottom-up via CSS flex-direction: column-reverse) currentLayers.forEach(mat => { const div = document.createElement('div'); div.className = `layer layer-${mat}`; // Set height based on how many layers there are to fill the bottle div.style.height = `${100 / MAX_LAYERS}%`; div.innerText = mat.toUpperCase(); bottle.appendChild(div); // Update counts const countSpan = document.getElementById(`cnt-${mat}`); countSpan.innerText = parseInt(countSpan.innerText) + 1; }); // Enable test button if we have at least 1 layer document.getElementById('runTestBtn').disabled = currentLayers.length === 0; // Reset beaker and result document.getElementById('beakerWater').style.height = '0%'; document.getElementById('simResult').innerHTML = ''; } function resetSim() { currentLayers = []; renderSimulation(); document.getElementById('beakerWater').style.height = '0%'; document.getElementById('beakerWater').style.backgroundColor = 'transparent'; } function runSimulation() { if(currentLayers.length === 0) return; const btn = document.getElementById('runTestBtn'); btn.disabled = true; const drop = document.getElementById('waterDrop'); const beakerWater = document.getElementById('beakerWater'); const resultText = document.getElementById('simResult'); resultText.innerHTML = "Filtering... ⏳"; // Start drip animation drop.style.animation = 'none'; void drop.offsetWidth; // trigger reflow drop.style.animation = 'drip 2s forwards'; setTimeout(() => { // Determine result based on logic // Ideal: Cotton at bottom (index 0), Sand middle, Gravel top. let waterColor = '#8b5a2b'; // Default muddy let resultMsg = "Water is still very muddy. Particle sizes weren't caught well."; if (currentLayers[0] === 'cotton') { if (currentLayers.includes('sand')) { waterColor = '#e0f7fa'; // Clear/light blueish resultMsg = "βœ… Success! Water is mostly clear. The cotton caught fine dirt, and sand caught medium pieces."; } else { waterColor = '#d2b48c'; // Tan resultMsg = "Water is somewhat clear, but sand would help catch more dirt before the cotton."; } } else if (currentLayers[0] === 'sand') { waterColor = '#d2b48c'; // Tan resultMsg = "Water is tan. Sand washed out the bottom because there was no cotton to hold it!"; } beakerWater.style.backgroundColor = waterColor; beakerWater.style.height = '60%'; resultText.innerHTML = resultMsg; btn.disabled = false; }, 2000); } // --- DATA SAVING (LOCAL STATE) --- function saveCER() { const claim = document.getElementById('cerClaim').value; const evidence = document.getElementById('cerEvidence').value; const reasoning = document.getElementById('cerReasoning').value; localStorage.setItem('waterFilter_CER', JSON.stringify({claim, evidence, reasoning})); const status = document.getElementById('saveStatus'); status.innerText = "Saved!"; setTimeout(() => status.innerText = "", 2000); } function saveElaborate() { localStorage.setItem('waterFilter_Flow', document.getElementById('flowRate').value); localStorage.setItem('waterFilter_Improve', document.getElementById('improvement').value); alert("Reflection saved locally."); } // --- QUIZ LOGIC --- const quizAnswers = { q1: false, q2: false }; function checkAnswer(qId, isCorrect, btnElement) { // Reset siblings const parent = document.getElementById(`${qId}-box`); parent.querySelectorAll('.quiz-option').forEach(btn => { btn.classList.remove('correct', 'incorrect'); }); if (isCorrect) { btnElement.classList.add('correct'); quizAnswers[qId] = true; } else { btnElement.classList.add('incorrect'); quizAnswers[qId] = false; } } function finishMission() { if(!quizAnswers.q1 || !quizAnswers.q2) { alert("Please answer all knowledge check questions correctly before completing the mission."); return; } if(document.getElementById('studentRubric').value === "") { alert("Please select your self-rubric level."); return; } unlockBadge('evaluate'); updateProgress(100); document.getElementById('finalMessage').style.display = "block"; // Save final state localStorage.setItem('waterFilter_Completed', 'true'); } // --- UTILITY --- function resetApp() { if(confirm("Are you sure? This will clear all student inputs on this device.")) { localStorage.clear(); document.querySelectorAll('input[type="text"], textarea').forEach(el => el.value = ""); document.querySelectorAll('input[type="checkbox"]').forEach(el => el.checked = false); document.getElementById('studentRubric').value = ""; document.querySelectorAll('.quiz-option').forEach(btn => btn.classList.remove('correct', 'incorrect')); document.getElementById('finalMessage').style.display = "none"; resetSim(); quizAnswers.q1 = false; quizAnswers.q2 = false; // Reset badges & progress document.querySelectorAll('.badge').forEach(b => b.classList.remove('unlocked')); updateProgress(0); alert("Data reset successfully."); } } // Load saved data on start window.onload = function() { const savedCER = JSON.parse(localStorage.getItem('waterFilter_CER')); if(savedCER) { document.getElementById('cerClaim').value = savedCER.claim || ""; document.getElementById('cerEvidence').value = savedCER.evidence || ""; document.getElementById('cerReasoning').value = savedCER.reasoning || ""; } document.getElementById('flowRate').value = localStorage.getItem('waterFilter_Flow') || ""; document.getElementById('improvement').value = localStorage.getItem('waterFilter_Improve') || ""; }; </script> </body> </html>
β™ŠοΈ Gemini

Interactive Smart Stem Web App Builder

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
GEMINI-3.1-PRO
Tested icon
Guide icon
4 examples icon
Free credits icon
Build interactive STEM learning experiences in Gemini with an educator-focused prompt that combines 5E inquiry learning, suggested NGSS alignment, real-world problem solving, hands-on STEM challenges, assessments, and teacher-ready classroom tools. No coding skill needed. No technical setup required. Simply fill in a few easy fields, paste the prompt into Gemini, and let it generate for you.
...more
Updated 1 week ago
Report
Browse Marketplace