# loadingmodal

> loading modal

Latest version **0.1.0** (published 2016-04-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install loadingmodal
pnpm add loadingmodal
yarn add loadingmodal
bun add loadingmodal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-04-20 |
| First published | 2016-04-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | OvO海风OvO |
| Maintainers | linsf |
| Keywords | loading |

## Links

- npm: https://www.npmjs.com/package/loadingmodal
- Repository: https://github.com/chinaovo-jsmodules/loadingmodal
- Homepage: https://github.com/chinaovo-jsmodules/loadingmodal#readme
- Issues: https://github.com/chinaovo-jsmodules/loadingmodal/issues
- npm.io page: https://npm.io/package/loadingmodal

## Recent versions

- 0.1.0 (latest) — 2016-04-20

## README

# loadingmodal
正在加载模式窗口

```html

<p>
    <input type="button" id="loading1" value="loading我自己">
    <input type="button" id="loading2" value="loading下面这个div">
    <input type="button" id="loading3" value="loading全屏">
</p>
<div id="loading-content" style="width:300px;height:200px;border:1px solid #ccc;background-color:#f2f2f2;">这是个内容的例子
</div>


<script type="text/javascript" src="../node_modules/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="../dist/loadingmodal-min.js"></script>

<script>
    //loading我自己
    $('#loading1').click(function () {
        var load = new loadingmodal({
            target: this
        });
        load.start();
        setTimeout(function () {
            load.stop();
        }, 3000)
    });
    //loading下面这个div
    $('#loading2').click(function () {
        var load = new loadingmodal({
            target: "#loading-content"
        });
        load.start();
        setTimeout(function () {
            load.stop();
        }, 3000)
    });
    //loading全屏
    $('#loading3').click(function () {
        var load = new loadingmodal();
        load.start();
        setTimeout(function () {
            load.stop();
        }, 20000)
    });
</script>



```

---
_Source: https://npm.io/package/loadingmodal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
