Skip to content

Instantly share code, notes, and snippets.

@dariye
Created December 1, 2015 02:17
Show Gist options
  • Save dariye/10b9a938e08ab18f9e5f to your computer and use it in GitHub Desktop.
Save dariye/10b9a938e08ab18f9e5f to your computer and use it in GitHub Desktop.
BoXdyQ
$(function() {
swal({
timer: 10000000,
title: "Technology to Combat Food Waste",
text: "<p>Imagine if next Thanksgiving everyone had enough to eat. This holiday season support an organization bringing us one step closer.</p><br/><p>Check out <a href='http://igg.me/at/1522923'> Transfernation's Holiday Campaign on Generosity by Indiegogo </a></p> <br/> <p style='color:#DD6B55'>Every Dollar Counts <p/>",
html: true,
confirmButtonText: "Count me in!",
/*confirmButtonColor: "#ffff00"*/
confirmButtonColor: "#02b9cc",
showLoaderOnConfirm: true,
/* type: "info",*/
showCancelButton: true,
cancelButtonText: "Continue to site",
cancelButtonColor: "#DD6B55",
closeOnConfirm: true,
imageUrl: 'http://www.transfernation.org/images/tr-logo.png',
imageSize: "305x56"
},
function(isConfirm) {
if (isConfirm) {
window.open("http://igg.me/at/1522923", '_blank');
swal("Thank you!", "Thank you for helping combat Food Waste");
} else {
swal("Thank you");
}
});
})();
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert.min.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment