alertifyjs
Version:
AlertifyJS is a javascript framework for developing pretty browser dialogs and notifications.
15 lines (13 loc) • 441 B
JavaScript
// CommonJS
if ( typeof module === 'object' && typeof module.exports === 'object' ) {
module.exports = alertify;
// AMD
} else if ( typeof define === 'function' && define.amd) {
define( [], function () {
return alertify;
} );
// window
} else if ( !window.alertify ) {
window.alertify = alertify;
}
} ( typeof window !== 'undefined' ? window : this ) );