FormulaApplet (deprecated)
- is replaced by FormulaApplet-H5P
- lets you create math or physics exercises on HTML pages or in Wikis.
- You can provide an expression as solution, and FormulaApplet checks if your solution is right or wrong.
- Algebraic equivalent solutions are also accepted.
- FormulaApplet is able to deal with physical units.
- FormulaApplet is open source. It is written in JavaScript and uses some open source libraries.
- FormulaApplet is the successor of Formel-Applet (Java, closed source).
- ToDo list for FormulaApplet
- FormulaApplet wiki
- Docs generated by jsdoc.js - Work in progress
Formula Applet is still under development (especially the H5P part).
- Using semantic versioning, the major version number has been changed to zero to express the development state of the project.
- Version number of FormulaAppletEditor has been changed from 1.1.x to 0.11.x and further to 0.12.x
- Version number of FormulaApplet has been changed from 2.10.784 to 0.12.0
H5P Plugin
General
- There is an H5P plugin for the FormulaApplet with which you can put FormulaApplet tasks on pages with H5p support.
- You need the H5P.FormulaApplet and the H5P.FormulaAppletEditor plugin for this to work.
H5P Development environment
- In the h5p folder there is a Docker environment for a Drupal instance with H5P installed on which you can test the plugin.
- First-time installation for the Docker development environment:
- Install Docker and Docker Compose (might be included with docker).
- Run the following command in the
h5p
directory:docker compose build
(might take a while), thendocker compose up
. Ifdocker compose
is not available, usedocker-compose
. - Open http://localhost:8080. Start the setup for Drupal. If you need account credentials, use username
admin
with passwordadmin
. - Follow the steps to set up H5P development (under "Enabling H5P development mode and development folder").
- Now start the JavaScript Bundler (Rollup) build in H5P development mode by running
npm run h5p
in themain
folder. This will automatically build the plugin scripts, copy them into the plugin development folders and should auto-refresh the Drupal page when code is changed. - Now "create content" in Drupal and choose the FormulaApplet plugin.