An open API service indexing awesome lists of open source software.

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.

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
Alert

###### Confirm box
Confirm

###### Prompt box
Prompt


### 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