I forked this from my old repo and refactored it with better styling and more functionality.
The purpose of this app is practicing a short build from start to finish in one sitting.
- Practicing jquery
- Streamlining Bootstrap usage
- Using a switch() statement
- add
- subtract
- multiply
- divide
|⟼ server.js
|
|⟼ /views
| ↳ index.html
|
|⟼ /routes
| ↳ htmlroutes.js
|
|⟼ /public
| ↳ /assets
| ↳ /css
| ↳ style.css
| ↳ /js
| ↳ calApp.js
HTML page uses buttons with the values of 1-9, operators and an equals sign that will complete each equation and clear button to rest the page regardless of the state.
The layout is done with a linked stylesheet (style.css) and the Bootstrap cdn for the grid system.
Javascript file links to the above html file.
It completes each operator's function while adding each equation and solution to the html page using jquery.
In it's current stage, this app has no persistance.
Deployed on Heroku: View App
-
Issue ⟼ Second number shows all inputs. It should mimic the first number's input.
Solution ⟼ Changed line 27 from .append() to .text(parseInt(firstNum) + " " + operator + " " + parseInt(secondNum))
↳ Fixed -
Add Feature ⟼ Add Info: even or odd.
Solution ⟼ Added a function that triggers when the equals button is press and display the results of the function in an html div
↳ Added