Bestificar JS
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
Crowded Cheetah
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
var toastTrigger = document.getElementById('liveToastBtn')
var toastLiveExample = document.getElementById('liveToast')
if (toastTrigger) {
toastTrigger.addEventListener('click', function () {
var toast = new bootstrap.Toast(toastLiveExample)
toast.show()
})
}
new Toast({
message: 'This is an example with custom buttons',
type: 'success',
customButtons: [
{
text: 'Refresh the page',
onClick: function() {
window.location.reload();
}
},
{
text: 'Follow @ireaderinokun',
onClick: function() {
window.open('https://twitter.com/ireaderinokun');
}
}
]
});