Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gao-sun/x0popup
An alternative to original alert, confirm and prompt.
https://github.com/gao-sun/x0popup
js popup
Last synced: 5 days ago
JSON representation
An alternative to original alert, confirm and prompt.
- Host: GitHub
- URL: https://github.com/gao-sun/x0popup
- Owner: gao-sun
- License: gpl-3.0
- Created: 2016-07-11T05:47:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-16T21:27:32.000Z (over 7 years ago)
- Last Synced: 2024-04-14T06:52:19.965Z (7 months ago)
- Topics: js, popup
- Language: JavaScript
- Homepage: http://gao-sun.github.io/x0popup
- Size: 138 KB
- Stars: 176
- Watchers: 7
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# x0popup
![Confirm Popup](https://gao-sun.github.io/x0popup/image/demo.gif)
An alternative to original alert, confirm and prompt.
## If you are looking for a Promise-based unified UI library for all windows/modals/notifcations/pushes, please check my new project [Windowise](https://github.com/gao-sun/windowise)
**Light** - Just 4KB (js + css, after gzipped), no dependency.
**Graceful** - Flat design, suits for all devices.
**Customizable** - Allow user-defined themes.
## Get x0popup
1.Install via npm
```bash
npm install x0popup
```2.Install via bower
```bash
bower install x0popup
```3.Download files manually from /dist
## Get Started
1.Reference the x0popup files:
```html```
2.Test x0popup in javascript:
```javascript
x0p('Message', 'Hello world!', 'info');
```## Tutorial & Advanced Usage
You can see full tutorial and document on [x0popup](http://gao-sun.github.io/x0popup).
## To-do
1.TypeScript definitions
## Contributing
Please leave an issue if you find any bugs, I will fix it ASAP.
If you have any new ideas, feel free to make a pull request and wait for acceptance.