Contents
It is a simple counter writtent in HTML / CSS and managed by Javascript code, it increases and decreases the value in a disabled input box.
The structure of the javascript code is formed by a function that reads the initial value of the text box and associates it with the variable count after the initial check of the complete loading of the page.
The variable count will be increased, decreased or reset by the buttons that call the relative functions.
Each function linked to the buttons calls up the update function of the count variable.
- [HTML]
- [CSS]
- [javaScript]
Click + to add 1
Click - to decrease by 1
Click "Reset Counter" to restore counter at the start value
Saverio Bertocci - saverio.bertocci@gmail.com
Project Link: https://github.com/x4v1er94/counter_js