Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 597 Bytes
<html>
<head>
<title></title>
<link rel='stylesheet' href='build/build.css'>
<script src='build/build.js'></script>
</head>
<body>
<button class'trigger'>trigger</button>
<script>
var c = require('bmcmahen-confirmation');
var trigger = document.querySelector('button')
, confirmation;
trigger.onclick = function(){
confirmation = c({
title: 'hi',
content: 'hello',
cancel: 'Cancel',
okay: 'Delete'
}).effect('scale')
.show()
.okay(function(e){
console.log('Delete it.');
})
.cancel(function(e){
console.log('cancel it.');
});
};
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.