1- # [ jQuery Spinner] ( https://vsn4ik.github.io/jquery. spinner/ )
1+ # [ Input Spinner] ( https://vsn4ik.github.io/input- spinner/ )
22
33[ ![ License] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( LICENSE )
4- [ ![ Build Status] ( https://github.com/vsn4ik/jquery. spinner/workflows/Test/badge.svg )] ( https://github.com/vsn4ik/jquery. spinner/actions?workflow=Test )
5- [ ![ devDependency Status] ( https://david-dm.org/vsn4ik/jquery. spinner/dev-status.svg )] ( https://david-dm.org/vsn4ik/jquery. spinner?type=dev )
4+ [ ![ Build Status] ( https://github.com/vsn4ik/input- spinner/workflows/Test/badge.svg )] ( https://github.com/vsn4ik/input- spinner/actions?workflow=Test )
5+ [ ![ devDependency Status] ( https://david-dm.org/vsn4ik/input- spinner/dev-status.svg )] ( https://david-dm.org/vsn4ik/input- spinner?type=dev )
66
77
8- A Number-Spinner based-on jQuery , Support Keyboard operations and continuous changing.
8+ A Number-Spinner, Support keyboard operations and continuous changing.
99
1010## Basic usage, it's very simple
1111``` html
1212<!-- // ref javascript file -->
13- <script src =" dist/js/jquery. spinner.js" ></script >
13+ <script src =" dist/input- spinner.js" ></script >
1414
1515<!-- // spinner plugin DOM -->
1616<div data-trigger =" spinner" >
@@ -27,16 +27,16 @@ In your web page:
2727
2828``` html
2929<script src =" jquery.js" ></script >
30- <script src =" dist/js/jquery. spinner.js" ></script >
30+ <script src =" dist/input- spinner.js" ></script >
3131<script >
32- $ ( " #spinner" )
33- .spinner (' delay' , 200 ) // delay in ms
34- .spinner (' changed' , function (e , newVal , oldVal ) {
35- // trigger lazed, depend on delay option.
36- })
37- .spinner (' changing' , function (e , newVal , oldVal ) {
38- // trigger immediately
39- });
32+ $ ( ' #spinner' )
33+ .spinner (' delay' , 200 ) // delay in ms
34+ .spinner (' changed' , function (e , newVal , oldVal ) {
35+ // trigger lazed, depend on delay option.
36+ })
37+ .spinner (' changing' , function (e , newVal , oldVal ) {
38+ // trigger immediately
39+ });
4040 </script >
4141
4242<div data-trigger =" spinner" id =" spinner" >
@@ -89,10 +89,10 @@ Usage:
8989
9090## Examples
9191
92- ### Work with Bootstrap 3 and Font Awesome 4
92+ ### Work with Bootstrap and Font Awesome
9393
9494``` html
95- <link href =" dist/css/bootstrap -spinner.css" rel =" stylesheet" >
95+ <link href =" dist/input -spinner.css" rel =" stylesheet" >
9696
9797<div class =" input-group spinner" data-trigger =" spinner" >
9898 <input type =" text" class =" form-control text-center" value =" 1" data-rule =" quantity" >
@@ -125,7 +125,7 @@ Usage:
125125</div >
126126
127127<script >
128- $ (" #spinner" ).spinner (' changing' , function (e , newVal , oldVal ) {
128+ $ (' #spinner' ).spinner (' changing' , function (e , newVal , oldVal ) {
129129 $ (' #spinner-value' ).html (newVal);
130130 });
131131 </script >
@@ -134,7 +134,7 @@ Usage:
134134#### pass step options as a function
135135``` javascript
136136// To skip 0
137- $ (" #spinner" ).spinner ({
137+ $ (' #spinner' ).spinner ({
138138 step : function (dir ) {
139139 // 'this' references to the spinner object
140140 if ((this .oldValue === 1 && dir === ' down' ) || (this .oldValue === - 1 && dir === ' up' )) {
@@ -145,7 +145,7 @@ $("#spinner").spinner({
145145});
146146
147147// or use API syntax
148- $ (" #spinner" ).spinner (' step' , function (dir ) {
148+ $ (' #spinner' ).spinner (' step' , function (dir ) {
149149 // your logic here
150150});
151151```
@@ -158,6 +158,6 @@ Copyright xixilive, 2013–2015
158158
159159Licensed under [ the MIT License] [ license ] .
160160
161- [ license ] : https://github.com/vsn4ik/jquery. spinner/blob/master/LICENSE
162- [ development ] : https://raw.githubusercontent.com/vsn4ik/jquery. spinner/master/dist/js/jquery. spinner.min.js
163- [ production ] : https://raw.githubusercontent.com/vsn4ik/jquery. spinner/master/dist/js/jquery. spinner.js
161+ [ license ] : https://github.com/vsn4ik/input- spinner/blob/master/LICENSE
162+ [ development ] : https://raw.githubusercontent.com/vsn4ik/input- spinner/master/dist/input- spinner.min.js
163+ [ production ] : https://raw.githubusercontent.com/vsn4ik/input- spinner/master/dist/input- spinner.js
0 commit comments