mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
51 lines
907 B
Markdown
51 lines
907 B
Markdown
# jquery-loading
|
|
|
|
[](https://travis-ci.org/CarlosBonetti/jquery-loading)
|
|
|
|
Add and manipulate loading states of any element on the page.
|
|
|
|
[Docs and Demos](http://carlosbonetti.github.io/jquery-loading/).
|
|
|
|
## Getting started
|
|
|
|
Install it, using [npm](https://www.npmjs.com/):
|
|
|
|
```sh
|
|
$ npm install --save jquery-easy-loading
|
|
```
|
|
|
|
Include it:
|
|
|
|
```html
|
|
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
|
|
<script src="jquery.loading.js"></script>
|
|
```
|
|
|
|
Use it:
|
|
|
|
```javascript
|
|
$("#some-element").loading();
|
|
```
|
|
|
|
Visit [the website](http://carlosbonetti.github.io/jquery-loading/) for full list of options, methods and customization.
|
|
|
|
## Contributing to this project
|
|
|
|
Install dependencies once:
|
|
|
|
```
|
|
$ yarn install
|
|
```
|
|
|
|
Then build the project (generates `dist/` files):
|
|
|
|
```
|
|
$ yarn build
|
|
```
|
|
|
|
Run all tests with:
|
|
|
|
```
|
|
$ yarn test
|
|
```
|