https://github.com/parking-master/simple-alert
This project is a remake of SweetAlert (1) to make basic beautiful alert boxes.
https://github.com/parking-master/simple-alert
alert alert-box css html html5 javascript javascript-alert
Last synced: 3 months ago
JSON representation
This project is a remake of SweetAlert (1) to make basic beautiful alert boxes.
- Host: GitHub
- URL: https://github.com/parking-master/simple-alert
- Owner: Parking-Master
- Created: 2021-10-28T17:52:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-26T22:09:43.000Z (about 3 years ago)
- Last Synced: 2025-01-23T05:25:46.197Z (5 months ago)
- Topics: alert, alert-box, css, html, html5, javascript, javascript-alert
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-Alert
This project is a remake of [SweetAlert (1)](https://sweetalert.js.org/) to make basic beautiful alert boxes.## Welcome to Simple-Alert
Amazing / basic `alert`, `confirm`, and `prompt` boxes.The library loads [SweetAlert (1)](https://sweetalert.js.org/) and makes its on custom styles for the alert box.
###### Alert box
###### Confirm box
###### Prompt box
### Getting started
1-Line code embed with CDNjs.
``````
For the minified version:
``````
Read the [documentation](#documentation) below to make your amazing alert boxes!
### Documentation
You can also try a [live preview](https://parking-master.github.io/Simple-Alert/preview.htm) before you start.
#### Alert box
```
simple.alert("Your message", function() {
/* Function after "OK" is pressed */
});
```
#### Confirm box
```
simple.confirm("Do you really want to do this?", function() {
/*
* Function after "OK" is pressed.
* If "Cancel" is pressed, the box will close
*/
});
```
#### Prompt box
```
simple.prompt("Enter something:", "", (val) => {
/* "val" is the value from the input. */
});
```
Try it out!
###### Copyright (c) 2021 Parking Master
## License
MIT