//Test for bootstrap-notify v3.1.3 //Copied example directly from Bootstrap-notify site $.notify({ // options icon: 'glyphicon glyphicon-warning-sign', title: 'Bootstrap notify', message: 'Turning standard Bootstrap alerts into "notify" like notifications', url: 'https://github.com/mouse0270/bootstrap-notify', target: '_blank' },{ // settings element: 'body', position: null, type: "info", allow_dismiss: true, newest_on_top: false, showProgressbar: false, placement: { from: "top", align: "right" }, offset: 20, spacing: 10, z_index: 1031, delay: 5000, timer: 1000, url_target: '_blank', mouse_over: null, animate: { enter: 'animated fadeInDown', exit: 'animated fadeOutUp' }, onShow: null, onShown: null, onClose: null, onClosed: null, icon_type: 'class', template: '' }); const notifyResult = $.notify({ message: 'Callbacks have the popup element as an argument', },{ onShow: function($ele) { notifyResult.$ele === $ele; }, onShown: function($ele) { notifyResult.$ele === $ele; }, onClose: function($ele) { notifyResult.$ele === $ele; }, onClosed: function($ele) { notifyResult.$ele === $ele; }, });