Zen Toast

7fc97a3b9a082807bf5fe0ef62e289e1bd91c03e

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

1 files changed, +24 -3Showing whitespace changes
public/script.js+24 -3
@@ -314,12 +314,33 @@ await new Promise((resolve) => {
314});314});
315315
316// Configure toast library:316// Configure toast library:
317toastr.options.escapeHtml = true; // Prevent raw HTML inserts317/* toastr.options.escapeHtml = true; // Prevent raw HTML inserts
318toastr.options.timeOut = 4000; // How long the toast will display without user interaction318toastr.options.timeOut = 4000; // How long the toast will display without user interaction
319toastr.options.extendedTimeOut = 10000; // How long the toast will display after a user hovers over it319toastr.options.extendedTimeOut = 10000; // How long the toast will display after a user hovers over it
320toastr.options.progressBar = true; // Visually indicate how long before a toast expires.320toastr.options.progressBar = false; // Visually indicate how long before a toast expires.
321toastr.options.closeButton = true; // enable a close button321toastr.options.closeButton = false; // enable a close button
322toastr.options.hideEasing = 'linear';
323toastr.options.showEasing = 'linear';
324toastr.options.showMethod = 'fadeIn';
325toastr.options.hideMethod = 'fadeOut';
326toastr.options.showDuration = 1000;
327toastr.options.hideDuration = 1000; */
322//toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container328//toastr.options.positionClass = power_user.toastr_position; // Where to position the toast container
329
330
331toastr.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
323toastr.options.onHidden = () => {344toastr.options.onHidden = () => {
324 // 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 though345 // 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
325 // so the toasts still show up inside there.346 // so the toasts still show up inside there.