Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/we-lib/popup
Popup your dialog
https://github.com/we-lib/popup
Last synced: about 1 month ago
JSON representation
Popup your dialog
- Host: GitHub
- URL: https://github.com/we-lib/popup
- Owner: we-lib
- Created: 2014-11-26T03:06:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-26T14:59:59.000Z (about 10 years ago)
- Last Synced: 2024-10-12T22:16:18.375Z (3 months ago)
- Language: CSS
- Size: 215 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# popup
Popup your dialog
> Fork of [t4t5/sweetalert](https://github.com/t4t5/sweetalert)
Demo:
## Features (vs sweetalert)
- More responsive, margins optimized
- Dialog and icon animation dropped
- SASS looks difficult to me, LESS instead
- Source code cut (748L to 106L), API cleared## Usage
Popup a warn dialog:
```js
popup({
icon: 'warn',
title: 'Are you sure?',
text: 'You will not be able to recover this imaginary file!',
okBtn: 'Yes, delete it!',
cancelBtn: 'No, cancel plx!'
}, function(ok){ /**/ })
```For more details:
- [Popup demo source](demo/index.html)
- [t4t5/sweetalert](https://github.com/t4t5/sweetalert)