Skip to content

Simple counter with all possible options clubbed in div tag.

License

Notifications You must be signed in to change notification settings

tousifahmedah/displayCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

displayCounter

Simple counter with all possible options clubbed in div tag.

##Installation Include the displayCounterJS.js after including the jQuery

<script src="/path/to/displayCounterJS.js"></script>

or

Install using npm

npm install display-counter

#Example :

<html>
<head>
	<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
	<script src="displayCounterJS.js"></script>
</head>

<body>
	<div id="displayCounter" min="23" max="2000" increment="3" delay="1000" ></div>
	
	<script>
		$.fndisplayCounter("displayCounter");
	</script>
	
</body>
</html>

min

  • Starting value of the counter to start with.

max

  • Maximum value the counter shall reach.

increment

  • Increament value.

delay

  • Delay in mili seconds.

About

Simple counter with all possible options clubbed in div tag.

Resources

License

Stars

Watchers

Forks

Packages

No packages published