Skip to content

Commit bcef83a

Browse files
committed
Bump v1.0.0
1 parent 5b3bb9e commit bcef83a

23 files changed

+105
-423
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules/
2+
/dist/
23
/*-dist.zip

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Contributing
22

33
## Important notes
4-
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `less` and `js` subdirectories!
4+
Please don't edit files in the `dist` subdirectory as they are generated via Grunt. You'll find source code in the `src` subdirectory!
55

66
### Code style
77
Regarding code style like indentation and whitespace, **follow the conventions you see used in the source already.**
@@ -20,6 +20,6 @@ First, ensure that you have the latest [Node.js](https://nodejs.org) and [npm](h
2020
1. Add failing tests for the change you want to make. Run `npm run test` to see the tests fail.
2121
1. Fix stuff.
2222
1. Run `npm run test` to see if the tests pass. Repeat steps 2-4 until done.
23-
1. Open `js/tests/index.html` unit test file(s) in actual browser to ensure tests pass everywhere.
23+
1. Open `tests/index.html` unit test file(s) in actual browser to ensure tests pass everywhere.
2424
1. Update the documentation to reflect any changes.
2525
1. Push to your fork and submit a pull request.

README.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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&ndash;2015
158158

159159
Licensed 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

dist/css/bootstrap-spinner.min.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/js/jquery.spinner.js

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)