A simple 4-function calculator implemented using plain-old vanilla JavaScript, HTML, and CSS. It recognizes keyboard shortcuts for quick calculations and displays the current state of the calculator’s memory below the interface. This project was undertaken as an exercise in breaking away from my reliance on frontend frameworks like jQuery and Twitter Bootstrap.
If you would like to run a local instance of this app in developer mode, the easiest method is using npm, the package manager included with Node.js.
-
Install Node.js
-
Install the required JavaScript dependencies using npm
npm install
- Run
npm run serve
to start webpack-dev-server for local development. - Run
npm run build
to generate the static files ready for deployment to your production server.
vanilla-js-calculator is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see http://www.gnu.org/licenses/.