An open source calculator platform
Alluding to a popular Omni(potent-ish) Calculator website, Zeus is a Greek god who rules as king of the gods.
The entire project can be run locally by opening index.html or on any static site hosting service.
Calculators are defined as objects in the data.js file with the key being a unique ID and the value being an object with the following properties:
name: A human-readable name of the calculatordescription: A brief description of its purposevars: An array of variables used in the calculation:name: A human-readable name of the variablesymbols: A list of alternative symbols for the variable. All variables must have the same number of alternative symbols.
required_vars: The number of variables which must be provided to calculate the result. Currently the result is expected to fill all remaining variables.func: A JavaScript function which takes an array of input variables (currently floats ornull) and returns an array of output variables.
- Input-only & Output-only fieldselds
- Dropdown / radio button fields
- Ability to display more than one answer (e.g. quadratic formula)