diff --git a/dist/toast.min.css b/dist/toast.min.css new file mode 100644 index 0000000..6e10731 --- /dev/null +++ b/dist/toast.min.css @@ -0,0 +1 @@ +#toast-container{position:sticky;z-index:1055;top:0}#toast-wrapper{position:absolute;top:0;right:0;margin:5px}.toast{min-width:150px} \ No newline at end of file diff --git a/dist/toast.min.js b/dist/toast.min.js new file mode 100644 index 0000000..afa762a --- /dev/null +++ b/dist/toast.min.js @@ -0,0 +1,3 @@ +(function(b){b.toast=function(a,h,g,l,k){b("#toast-container").length||(b("body").prepend('
'),b("#toast-container").append('
'));var c="",d="",e="text-muted",f="",m="object"===typeof a?a.title||"":a||"Notice!";h="object"===typeof a?a.subtitle||"":h||"";g="object"===typeof a?a.content||"":g||"";k="object"===typeof a?a.delay||3E3:k||3E3;switch("object"===typeof a?a.type||"":l||""){case "success":c="bg-success"; +f=e=d="text-white";break;case "info":c="bg-info";f=e=d="text-white";break;case "warning":case "warn":c="bg-warning";f=e=d="text-white";break;case "error":case "danger":c="bg-danger",f=e=d="text-white"}a='";b("#toast-wrapper").append(a);b("#toast-wrapper .toast:last").toast("show")}})(jQuery); \ No newline at end of file