diff --git a/css/toast.css b/css/toast.css index 17f6541..2f1fb3b 100644 --- a/css/toast.css +++ b/css/toast.css @@ -1,3 +1,8 @@ +/** + * @author Script47 (https://github.com/Script47/Toast) + * @description Toast - A Bootstrap 4.2+ jQuery plugin for the toast component + * @version 0.6.0 + **/ #toast-container { position: sticky; z-index: 1055; diff --git a/dist/toast.min.css b/dist/toast.min.css index 45e9e20..90dcacc 100644 --- a/dist/toast.min.css +++ b/dist/toast.min.css @@ -1 +1,6 @@ +/** + * @author Script47 (https://github.com/Script47/Toast) + * @description Toast - A Bootstrap 4.2+ jQuery plugin for the toast component + * @version 0.6.0 + **/ #toast-container{position:sticky;z-index:1055;top:0}#toast-wrapper{position:absolute;top:0;right:0;margin:5px}#toast-container>#toast-wrapper>.toast{min-width:150px}#toast-container>#toast-wrapper>.toast>.toast-header strong{padding-right:20px} \ No newline at end of file diff --git a/dist/toast.min.js b/dist/toast.min.js index cc8e3df..01827d5 100644 --- a/dist/toast.min.js +++ b/dist/toast.min.js @@ -1,3 +1,8 @@ +/** + * @author Script47 (https://github.com/Script47/Toast) + * @description Toast - A Bootstrap 4.2+ jQuery plugin for the toast component + * @version 0.6.0 + **/ (function(b){b.toast=function(a){b("#toast-container").length||(b("body").prepend('
'),b("#toast-container").append(''),b("body").on("hidden.bs.toast",".toast",function(){b(this).remove()}));var d="",e="",f="text-muted",g="",l=a.title||"Notice!",m=a.subtitle||"",h=a.content||"",k=a.delay||-1,c=a.img;switch(a.type||"info"){case "info":d="bg-info";g=f=e="text-white";break;case "success":d="bg-success"; g=f=e="text-white";break;case "warning":case "warn":d="bg-warning";g=f=e="text-white";break;case "error":case "danger":d="bg-danger",g=f=e="text-white"}a='