Tools:
https://aistudio.google.com/prompts/
https://iwant2study.org/lookangejss/slsZipper/Code_to_ZIP_Converter/
Prompt for Gemini 2.5 Pro
https://your-simulation-link-if-available.com
[Optional] Picture Upload:
Uploading a layout or sketch (PNG, JPG, etc.) greatly enhances the AI's understanding of the desired design.
🎯 Objective:
Create a fully interactive, realistic, and educational simulation using only HTML, CSS, and JavaScript (no external libraries). The output must be a single self-contained HTML file.
🧑🎓 Target Audience:
students aged 12 to 18 years old
🧪 Simulation Requirements:
-
Topic:
[Insert your physics/chemistry/biology topic here, e.g., "Projectile Motion", "Ohm’s Law", "Photosynthesis"] -
System Behavior:
-
Simulate realistic physical behavior relevant to the topic (e.g., motion, energy, waves, etc.).
-
Follow scientifically accurate principles and equations.
-
-
Visual & Variable Representation:
-
Display key variables (e.g., time, velocity, force, current).
-
Place a live variables display panel at the top-right corner of the simulation.
-
Use clear text labels on all visual objects (e.g., “mass 1”, “car A”).
-
-
Interactivity & Controls:
-
Include controls: ►Play, || Pause, ►|Step, and ↻Reset.
-
Add sliders, dropdowns menu, or input fields if helpful for user learning and interaction that support conceptual exploration.
-
Add checkboxes to toggle display of variables, vectors, or paths (for differentiated visualization).
-
-
Visual Aids:
-
Use arrows, lines, or icons to represent vectors like velocity, acceleration, or forces.
-
Ensure visual elements aid conceptual understanding.
-
🎛️ User Interface Guidelines:
-
Place all control buttons at the top of the interface, above the main simulation panel.
-
Maximize screen real estate, especially vertical space:
-
Hide browser/page titles, headers, or any non-essential elements.
-
Use CSS to ensure the main simulation fills the viewable area cleanly.
-
Simulation should fit well in an iframe:
-
width: 100%
-
height: 450 px
-
No scrollbars.
-
-
📱 Platform & Compatibility:
-
Must be fully offline-compatible — do not use any external scripts, libraries, or CDNs.
-
File must function on all modern browsers and devices (desktop, tablet, mobile, look professional made in both landscape and portrait orientations).
-
Optimize for performance on both low-end and high-end devices.
https://weelookang.blogspot.com/2025/04/ai-master-prompt-generate-science.html
https://www.youtube.com/watch?v=0kxeV9PKJ38
Master Prompt for SLS
https://vle.dev.sls.moe.edu.sg/app/edit/819c1ef1-3ea3-11ef-9718-06bf635a9915
You are a web developer specialized in HTML5 content creation. The HTML file must run entirely offline, without external libraries Ensure it fits well within an iframe environment, using 100% width, 450 px height if in iframe, 90 vh if the interactive is open in a new browser tab, expect to occupy the 90vh of the screen height Layout must support intuitive interaction: maintain clean organization of elements, use visual cues (shadows, highlights) for interaction states, use centre tooltip to allow viewing in iframe for text if there is a lot text information to display. If buttons are used, make the button height fit the text and use the width to fill the text instead of next line tp pack the limited iframe height. Optimize for both touch and mouse interactions with appropriate target sizes align to the Singapore curriculum and notations. no header text to save vertical spaces, use tooltip to mouse over to show header text at the main panel You have to complete one of the following tasks: 1. Create a new HTML5 interactive content based on the user's prompt. Important: Use the provided reference images as inspiration and references. Provide comments in the code on what the code is doing and how it works. You must generate three separate components (HTML, CSS, JavaScript), each properly formatted. You must generate JavaScript for every interactive content to enable to run the simulation or game. Segregate the codes into respective file - index.html, styles.css, script.js IMPORTANT: Use the generate_html5 tool to return your code in a structured format. User request and instructions: {Instructions} {Knowledge Base} check this for the reference of the layout of the interactive.
version 20250730 https://vle.dev.sls.moe.edu.sg/app/view/819c1ef1-3ea3-11ef-9718-06bf635a9915
1 Simple Game
2 Simple Simulation
Focus on scientific accuracy and educational value appropriate for primary school students. Use proper scientific terminology while keeping explanations accessible.
2 Secondary Science
Educational Objective:
To provide students with a hands-on virtual lab to explore the relationship between the angle of incidence and the angle of reflection, allowing them to experimentally verify the Law of Reflection.
Core Scientific Principle:
This simulation demonstrates the Law of Reflection, which states that when a ray of light reflects off a surface, the angle of incidence is equal to the angle of reflection (i = r).
Simulation Interface & Visuals
The main screen presents a clear, labelled diagram featuring:
A flat, horizontal mirror representing the reflective surface.
A Normal line, shown as a dashed line perpendicular (at 90°) to the mirror at the point of incidence.
An Incident Ray of light striking the mirror.
A Reflected Ray of light leaving the mirror.
The following key variables are clearly labelled on the diagram and update in real-time:
Angle of Incidence (i): The angle between the incident ray and the normal.
Angle of Reflection (r): The angle between the reflected ray and the normal.
Both angles are continuously displayed to one decimal place.
Animation:
As the user adjusts the angle of incidence, the incident and reflected rays move dynamically, providing immediate visual feedback. The angle of reflection will change precisely in response to changes in the angle of incidence, visually demonstrating the Law of Reflection.
Interactive Controls
Students can fully control the experiment using these simple controls:
Angle of Incidence Slider:
This is the primary interactive element, allowing the user to set the angle of incidence (i).
Range: 0.0° to 90.0°
Precision: Adjustable in 0.1° increments.
"Record" Button:
When pressed, this captures the current values for the angle of incidence (i) and the angle of reflection (r) and adds them as a new row to the data table.
"Plot Graph" Button:
Once data has been recorded, pressing this button generates a graph of the results side-by-side with the data table.
"Reset" Button:
Clears all data from the table and the graph, and resets the angle of incidence to a default value (e.g., 45.0°), allowing the experiment to be run again from the start.
Data Collection & Analysis
The simulation provides tools for formal data collection and analysis, mimicking a real scientific experiment.
1. Data Table:
A table is displayed to log experimental data.
The table has two columns:
Angle of Incidence, i (°)
Angle of Reflection, r (°)
Up to seven pairs of data can be recorded. All values are logged to one decimal place.
2. Graphical Analysis:
Pressing the "Plot Graph" button displays a graph of the recorded data.
X-axis (Horizontal): Angle of Incidence, i (°)
Y-axis (Vertical): Angle of Reflection, r (°)
Expected Result: Students will observe that the plotted points form a perfect straight line passing through the origin with a slope of 1. This provides powerful visual confirmation that the angle of incidence is directly proportional to the angle of reflection, verifying the relationship i = r.
3 Advanced Game
To implement and enforce laws
To interpret and apply laws
These functions are carried out by three branches of government - the Legislature, the Executive and the Judiciary. Study the infographic below to find out about the three branches of government and their functions. ]
Think outside the box: consider formats like a mini-game, choose-your-own-adventure, virtual lab, exploration quest, or simulation to reinforce learning.
Focus on creating active learning experiences where students explore, discover, and engage deeply with the lesson concept.
The experience should feel immersive, rewarding, and educational.
4 Advanced Simulation
Educational Objective:
[To provide students with a hands-on virtual lab to explore [the relationship between the angle of incidence and the angle of reflection, allowing them to experimentally verify the Law of Reflection.]
Core Scientific Principle:
[This simulation demonstrates the Law of Reflection, which states that when a ray of light reflects off a surface, the angle of incidence is equal to the angle of reflection (i = r).]
Simulation Interface & Visuals
The main screen presents a clear, labelled diagram featuring:
[A flat, horizontal mirror representing the reflective surface.
A Normal line, shown as a dashed line perpendicular (at 90°) to the mirror at the point of incidence.
An Incident Ray of light striking the mirror.
A Reflected Ray of light leaving the mirror.
The following key variables are clearly labelled on the diagram and update in real-time:
Angle of Incidence (i): The angle between the incident ray and the normal.
Angle of Reflection (r): The angle between the reflected ray and the normal.
Both angles are continuously displayed to one decimal place.]
Animation:
[As the user adjusts the angle of incidence, the incident and reflected rays move dynamically, providing immediate visual feedback. The angle of reflection will change precisely in response to changes in the angle of incidence, visually demonstrating the Law of Reflection.]
Interactive Controls
Students can fully control the experiment using these simple controls:
[Angle of Incidence Slider:
This is the primary interactive element, allowing the user to set the angle of incidence (i).
[Range: 0.0° to 90.0°]
Precision: Adjustable in 0.1° increments.]
"Record" Button:
When pressed, this captures the current values for the angle of incidence (i) and the angle of reflection (r) and adds them as a new row to the data table.
"Plot Graph" Button:
Once data has been recorded, pressing this button generates a graph of the results side-by-side with the data table.
"Reset" Button:
Clears all data from the table and the graph, and resets the angle of incidence to a default value [(e.g., 45.0°),] allowing the experiment to be run again from the start.
Data Collection & Analysis
The simulation provides tools for formal data collection and analysis, mimicking a real scientific experiment.
1. Data Table:
A table is displayed to log experimental data.
[The table has two columns:
Angle of Incidence, i (°)
Angle of Reflection, r (°)
Up to seven pairs of data can be recorded. All values are logged to one decimal place.]
2. Graphical Analysis:
[Pressing the "Plot Graph" button displays a graph of the recorded data.
X-axis (Horizontal): Angle of Incidence, i (°)
Y-axis (Vertical): Angle of Reflection, r (°)]
Expected Result: Students will observe that the plotted points form a perfect straight line passing through the origin with a slope of 1. This provides powerful visual confirmation that the angle of incidence is directly proportional to the angle of reflection, verifying the relationship i = r.
5 Data Visualisation
Objective:
Create a fully interactive, clear, and insightful data visualization. The visualization should reveal patterns, trends, and relationships within the dataset in an intuitive, accessible manner.
Target Audience:
Students aged [12 to 18] years old.
Data & Content:
-
Topic / Dataset:
[Singapore Population Trends 1980-2020", "Energy Consumption by Sector", "Correlation between Rainfall and Crop Yield" ]
(Specify if the data itself needs to be generated/simulated or if it will be provided/embedded). -
Data Types Displayed:
[Numerical (Population Count)]
[Categorical (Sector Name)]
[Temporal (Year)]
3. Key Relationships/Patterns to Highlight:
[Growth trend over time]
[Comparison between categories]
[Correlation between Variable A and Variable B]
Visualization & Interaction:
-
Chart Types Used:
["Line Chart", "Bar Chart", "Scatter Plot", "Map", "Pie Chart" ]
5. User Filtering / Sorting Options:
[Filter by Year Range (Slider)]
[Sort categories alphabetically/by value]
[Select specific categories to display (Checkboxes)]
6. Interaction Methods:
[Hover/Touch on data points for tooltips with detailed info]
[Click on legend items to toggle visibility]
[Zooming/Panning on complex charts (e.g., maps, scatter plots)]
[Brushing/Linking between multiple charts]
6 Mind Map
Create a mind map on the topic of [Speed and Velocity].
Structure the mind map with a central idea, main branches (key themes or categories), and sub-branches (supporting details, examples, or related concepts), draw connection lines to the connected bubble concepts.
make use of the width to space out the bubbles and allow users to drag to reposition the bubbles
Use clear and concise phrasing, and group related ideas logically.
Ensure the structure is suitable for [Primary School Students].
7 Image to Interactive (select image in Knowledge Base)
If the knowledge‑base image is available, design a clear, interactive math manipulative that visually illustrates a key concept from the image. Make the explanation steps incremental before moving on to help students undertsand. Must sure the visual display do not overlap and cause issue viewing it clearly.
If the image is missing or failed to load, report this with an error log message:
8 Explanation Interactive
version 20250727
1 Primary Science
Focus on scientific accuracy and educational value appropriate for primary school students. Use proper scientific terminology while keeping explanations accessible.
2 Secondary Science
Educational Objective:
To provide students with a hands-on virtual lab to explore the relationship between the angle of incidence and the angle of reflection, allowing them to experimentally verify the Law of Reflection.
Core Scientific Principle:
This simulation demonstrates the Law of Reflection, which states that when a ray of light reflects off a surface, the angle of incidence is equal to the angle of reflection (i = r).
Simulation Interface & Visuals
The main screen presents a clear, labelled diagram featuring:
A flat, horizontal mirror representing the reflective surface.
A Normal line, shown as a dashed line perpendicular (at 90°) to the mirror at the point of incidence.
An Incident Ray of light striking the mirror.
A Reflected Ray of light leaving the mirror.
The following key variables are clearly labelled on the diagram and update in real-time:
Angle of Incidence (i): The angle between the incident ray and the normal.
Angle of Reflection (r): The angle between the reflected ray and the normal.
Both angles are continuously displayed to one decimal place.
Animation:
As the user adjusts the angle of incidence, the incident and reflected rays move dynamically, providing immediate visual feedback. The angle of reflection will change precisely in response to changes in the angle of incidence, visually demonstrating the Law of Reflection.
Interactive Controls
Students can fully control the experiment using these simple controls:
Angle of Incidence Slider:
This is the primary interactive element, allowing the user to set the angle of incidence (i).
Range: 0.0° to 90.0°
Precision: Adjustable in 0.1° increments.
"Record" Button:
When pressed, this captures the current values for the angle of incidence (i) and the angle of reflection (r) and adds them as a new row to the data table.
"Plot Graph" Button:
Once data has been recorded, pressing this button generates a graph of the results side-by-side with the data table.
"Reset" Button:
Clears all data from the table and the graph, and resets the angle of incidence to a default value (e.g., 45.0°), allowing the experiment to be run again from the start.
Data Collection & Analysis
The simulation provides tools for formal data collection and analysis, mimicking a real scientific experiment.
1. Data Table:
A table is displayed to log experimental data.
The table has two columns:
Angle of Incidence, i (°)
Angle of Reflection, r (°)
Up to seven pairs of data can be recorded. All values are logged to one decimal place.
2. Graphical Analysis:
Pressing the "Plot Graph" button displays a graph of the recorded data.
X-axis (Horizontal): Angle of Incidence, i (°)
Y-axis (Vertical): Angle of Reflection, r (°)
Expected Result: Students will observe that the plotted points form a perfect straight line passing through the origin with a slope of 1. This provides powerful visual confirmation that the angle of incidence is directly proportional to the angle of reflection, verifying the relationship i = r.
To implement and enforce laws
To interpret and apply laws
These functions are carried out by three branches of government - the Legislature, the Executive and the Judiciary. Study the infographic below to find out about the three branches of government and their functions. }
Think outside the box: consider formats like a mini-game, choose-your-own-adventure, virtual lab, exploration quest, or simulation to reinforce learning.
Focus on creating active learning experiences where students explore, discover, and engage deeply with the lesson concept.
The experience should feel immersive, rewarding, and educational.
If the knowledge‑base image is available, design a clear, interactive math manipulative that visually illustrates a key concept from the image. Make the explanation steps incremental before moving on to help students undertsand. Must sure the visual display do not overlap and cause issue viewing it clearly.
If the image is missing or failed to load, report this with an error log message
5 Secondary Math
6 Simple Game
7 Data Visualisation
Objective:
Create a fully interactive, clear, and insightful data visualization. The visualization should reveal patterns, trends, and relationships within the dataset in an intuitive, accessible manner.
Target Audience:
Students aged {12 to 18} years old.
Data & Content:
-
Topic / Dataset:
Singapore Population Trends 1980-2020", "Energy Consumption by Sector", "Correlation between Rainfall and Crop Yield"
(Specify if the data itself needs to be generated/simulated or if it will be provided/embedded). -
Data Types Displayed:
"Numerical (Population Count)"
"Categorical (Sector Name)"
"Temporal (Year)"
3. Key Relationships/Patterns to Highlight:
"Growth trend over time"
"Comparison between categories"
"Correlation between Variable A and Variable B"
Visualization & Interaction:
-
Chart Types Used:
"Line Chart", "Bar Chart", "Scatter Plot", "Map", "Pie Chart"
5. User Filtering / Sorting Options:
"Filter by Year Range (Slider)"
"Sort categories alphabetically/by value"
"Select specific categories to display (Checkboxes)"
6. Interaction Methods:
"Hover/Touch on data points for tooltips with detailed info"
"Click on legend items to toggle visibility"
"Zooming/Panning on complex charts (e.g., maps, scatter plots)"
"Brushing/Linking between multiple charts"
8 e-SBA interactive create from Easy JavaScript Simulation source code text paste inside Knowledge Base
create this interactive as accurately as possible especially the formula in knowledge base. This is for electronic school base assessment so it needs to be for a lock down, not additional hints, to support the assessment question.
report the error if the knowledge base is not found and any other errors hindering the generation process.
9 General Simulation (old prompt)
Objective:
Create a fully interactive, pedagogically sound, and engaging simulation using only HTML, CSS, and JavaScript.
Target Audience:
Students aged {5 to 11 or 12 to 18} years old.
Simulation Core Requirements:
-
Topic:
{ INSERT TOPIC HERE, ensuring it aligns with the specified MOE syllabus level, e.g., "Projectile Motion (Sec 3 Physics)", "Ohm’s Law (Sec 2 Science)", "Photosynthesis (Upper Sec Biology)" } -
Concepts to Demonstrate:
{ INSERT KEY CONCEPT 1 HERE } -
Interactive Variables (User Controlled, e.g., via Sliders/Inputs):
{ INSERT VARIABLE 1 NAME & RANGE/OPTIONS HERE, e.g., "Initial Velocity (0-50 m/s)" }
{ INSERT VARIABLE 2 NAME & RANGE/OPTIONS HERE, e.g., "Mass (1-10 kg)" } -
Key Variables to Display (Always Visible):
{ INSERT DISPLAY VARIABLE 1 HERE, e.g., "Time Elapsed" }
{ INSERT DISPLAY VARIABLE 2 HERE, e.g., "Current Height" }
{ INSERT DISPLAY VARIABLE 3 HERE, e.g., "Voltage" }
{ ... add more key variables as needed ... } (Consider placing this live display in the top-right corner or another logical, non-intrusive location). -
Motion or Animation to Display:
{ INSERT DESCRIPTION OF MOTION/ANIMATION HERE, e.g., "Parabolic trajectory of a projectile", "Electrons flowing through a circuit", "Gas molecules moving and colliding" } -
Output/Results Visualization:
{ INSERT DESIRED OUTPUT FORMAT HERE, e.g., "Real-time graph of Height vs. Time", "Bar chart showing energy distribution", "Table of resistance values", "Dynamic display of concentration changes" }
Simulation Behavior & Features:
Scientific Accuracy: Model the system based on scientifically accurate principles and equations appropriate for the target level. Balance realism with pedagogical clarity.
Interactivity & Controls:
Include standard controls: > Play, || Pause, > | Step (advance one time-step), and ↻ Reset for Science Virtual Laboratory Setup.
Implement the user-controlled variables specified in section 3 (e.g., sliders, inputs).
[Optional] Add checkboxes to toggle the display of relevant visual aids (vectors, paths, labels) for differentiated visualization.
[Optional] Consider elements for guided exploration (hints, prompts).
Visual Aids & Representation:
Use clear text labels on significant visual objects and controls.
Employ meaningful visualizations (arrows for vectors, color-coding, icons) to represent concepts effectively (e.g., velocity, forces, energy flow). Ensure these directly aid understanding.
[Optional] Assessment & Feedback: Incorporate simple formative assessment or feedback mechanisms where appropriate.
Accessibility:
Ensure basic web accessibility (WCAG AA): sufficient color contrast, black text for example, keyboard navigability for controls, ARIA attributes if needed, associated labels for controls.
User Interface Guidelines:
Place primary control buttons logically (e.g., grouped at the top or bottom), clearly separated from the simulation area.
Maximize screen real estate for the simulation:
No self-generated page titles/headers.
Use CSS effectively for clean layout.
Fit well within an iframe: width: 100%, height: 90% (approx.), strictly no internal scrollbars.
Ensure a clear visual hierarchy and intuitive layout.
Language & Terminology:
Use clear, concise English.
Employ scientific terminology consistent with the Singapore MOE syllabus for the target level.
Platform & Compatibility:
Layout adapts reasonably to landscape and portrait orientations, maintaining usability.