An awesome replacement for JavaScript's prompt. It is only an addition of SweetAlert by Tristan Edwards (@t4t5).
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">View the SweetAlert source.
sweetPrompt("Title", "Description Content", "Confirm", "Cancel", function(response){
console.log('This is your response: '+response);
});Gabriele De Rosa
This repository is deprecated because SweetPrompt is now natively contained in SweetAlert.
If this project help you reduce time to develop, you can give me a cup of coffee :)
