Reference
Embedding PhysicsLearn simulations: reference
PhysicsLearn simulations and teaching calculators are free to embed on any site that accepts HTML, such as an LMS, a blog, a Google Site, a Canvas page, a WordPress post or a Notion page. One iframe adds the live tool, and students need no account.
Widget pages
- Widgets: one page per simulation and calculator, 16 in total, at /widgets/{slug}. Each has a live preview and the snippet.
- The most used simulation is the projectile launcher. The others are the free-body diagram builder, the inclined plane simulator and the collision lab.
- Teachers: Google Sites, Canvas, Schoology, Moodle and WordPress steps.
- Catalog of every simulation snippet on one page: embed graphs.
The snippet
The iframe loads the tool from an address that starts with https://www.physicslearn.org/embed/. Width is 100 percent. Height is 640 pixels for simulations and 560 for teaching calculators. The snippet ends with an optional credit line that the site owner may keep, edit or remove.
If iframes are not allowed
Some hosts strip iframes. A plain link to the tool's teaching page works everywhere: the simulations are under interactives and the calculators under calculators, free to use there without an account. The projectile motion guide covers the same physics in words.
Indexes
- Human-readable list: widgets.
- Machine-readable index: https://www.physicslearn.org/embed.json. One JSON record per tool, with the widget page URL, the iframe URL, the height and the full snippet.