Skip to content

Lucianoga/SweetPrompt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SweetPrompt

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

See it in action!

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);

});

About

An awesome replacement for JavaScript's prompt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.6%
  • CSS 38.4%