1.0.4 • Published 5 years ago

npm-counter-example v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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!

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago