Plain CSS & JavaScript calculator. Not using JavaScript eval()
function due to possible security issues. Neither using external CSS nor JavaScript libraries.
JavaScript OOP development. See JavaScript file remarks for further explanations.
- Usability - user can use both keyboard and mouse. First two line shows: 1) calculation string 2) collapsed calculation (if available).
- Ease of implementation - just include js & css files. Add
<div id="calculator"></div>
and you are ready to go. See calc.html example file. - Reusability & Extensibility - complete OOP approach. Could be easily extended with additional mathematical operations.
The MIT License (MIT)
Copyright (c) 2015 Angel Todorov