npm-counter-example
v1.0.4
Published
This is simple stepcounter
Downloads
4
Maintainers
Readme
Increment & Decrement Counter
This is a Simple Javascript stepcounter
Note
Add incrementorAndDecrementor.js to your html file
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>StepCounter</title>
<script src="../node_modules/npm-counter-example/incrementorAndDecrementor.js"></script>
</head>
<body>
<div id="countByOne"></div>
</body>
</html>
Step 1: add some class to the div.
<div id="countByOne"></div>
Step 2: Initialize the plugin on your page. For example
// initialize with defaults
$('#countByOne').stepCounter();
Using NPM
To install using the npm
package manager run:
$ npm install npm-counter-example
Contribute
Contributions are always welcome!