All Projects → derogab → SweetPrompt

derogab / SweetPrompt

Licence: MIT license
An awesome replacement for JavaScript's prompt.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

SweetPrompt

GitHub stars GitHub forks GitHub issues GitHub license Status

An awesome replacement for JavaScript's prompt. It is only an addition of SweetAlert by Tristan Edwards (@t4t5).

Dimostration

Usage

You can download the package and reference the JavaScript and CSS files:

<script src="lib/sweet-alert.min.js"></script>
<link rel="stylesheet" type="text/css" href="lib/sweet-alert.css">
<script src="lib/sweet-prompt.min.js"></script>
<link rel="stylesheet" type="text/css" href="lib/sweet-prompt.css">

Example SweetAlert

View the SweetAlert source.

Example SweetPrompt

sweetPrompt("Title", "Description Content", "Confirm", "Cancel", function(response){

  console.log('This is your response: '+response);

});

Credits

Gabriele De Rosa

Deprecated

This repository is deprecated because SweetPrompt is now natively contained in SweetAlert.

Donate

If this project help you reduce time to develop, you can give me a cup of coffee :)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].