Zen Toast

7fc97a3b9a082807bf5fe0ef62e289e1bd91c03e

RossAscends <124905043+RossAscends@users.noreply.github.com>

1 files changed, +24 -3Ignore whitespace
public/script.js+24 -3
@@ -314,12 +314,33 @@ await new Promise((resolve) => {
314314});
315315
316316// Configure toast library:
317317/* toastr.options.escapeHtml = true; // Prevent raw HTML inserts
318318toastr.options.timeOut = 4000; // How long the toast will display without user interaction
319319toastr.options.extendedTimeOut = 10000; // How long the toast will display after a user hovers over it
320320toastr.options.progressBar = truefalse; // Visually indicate how long before a toast expires.
321321toastr.options.closeButton = truefalse; // enable a close button
322+toastr.options.hideEasing = 'linear';
323+toastr.options.showEasing = 'linear';
324+toastr.options.showMethod = 'fadeIn';
325+toastr.options.hideMethod = 'fadeOut';
326+toastr.options.showDuration = 1000;
327+toastr.options.hideDuration = 1000; */
322328//toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
329+
330+
331+toastr.options = {
332+ 'closeButton': false,
333+ 'progressBar': false,
334+ 'showDuration': 250,
335+ 'hideDuration': 250,
336+ 'timeOut': 4000,
337+ 'extendedTimeOut': 10000,
338+ 'showEasing': 'linear',
339+ 'hideEasing': 'linear',
340+ 'showMethod': 'fadeIn',
341+ 'hideMethod': 'fadeOut',
342+};
343+
323344toastr.options.onHidden = () => {
324345 // If we have any dialog still open, the last "hidden" toastr will remove the toastr-container. We need to keep it alive inside the dialog though
325346 // so the toasts still show up inside there.