Skip to Content

JavaScript File

URL: https://www.astrostar.ru/js/toast/toastr.min.js?v6a145b0d3800c
HTTP Status: 200 OK
MIME Type: application/javascript
Last Modified: Thu, 14 May 2026 11:35:06 GMT
Download Time: Less than a second
Cookies: None
Size: 6 KB
HTTP Headers:  5 headers
Links In:  2 pages
Links Out:  0 links
Images:  0 images
CSS:  0 files
JavaScript:  0 files
OK Issues: No issues found

1// version 2.1.4

2

3!function (a) { a(["jquery"], function (a) { return function () { function h(a, b, c) { return u({ type: e.error, iconClass: v().iconClasses.error, message: a, optionsOverride: c, title: b }

4) }

5 function i(c, d) { return c || (c = v()), b = a("#" + c.containerId), b.length ? b : (d && (b = r(c)), b) }

6 function j(a, b, c) { return u({ type: e.info, iconClass: v().iconClasses.info, message: a, optionsOverride: c, title: b }

7) }

8 function k(a) { c = a }

9 function l(a, b, c) { return u({ type: e.success, iconClass: v().iconClasses.success, message: a, optionsOverride: c, title: b }

10) }

11 function m(a, b, c) { return u({ type: e.warning, iconClass: v().iconClasses.warning, message: a, optionsOverride: c, title: b }

12) }

13 function n(a, c) { var d = v(); b || i(d), q(a, d, c) || p(d) }

14 function o(c) { var d = v(); return b || i(d), c && 0 === a(":focus", c).length ? void w(c) : void (b.children().length && b.remove()) }

15 function p(c) { for (var d = b.children(), e = d.length - 1; e >= 0; e--)q(a(d[e]), c) }

16 function q(b, c, d) { var e = !(!d || !d.force) && d.force; return !(!b || !e && 0 !== a(":focus", b).length) && (b[c.hideMethod]({ duration: c.hideDuration, easing: c.hideEasing, complete: function () { w(b) }

17 }

18), !0) }

19 function r(c) { return b = a("<div/>").attr("id", c.containerId).addClass("toast-container").addClass(c.positionClass), b.appendTo(a(c.target)), b }

20 function s() { return { tapToDismiss: !0, toastClass: "toast", containerId: "toast-container", debug: !1, showMethod: "fadeIn", showDuration: 300, showEasing: "swing", onShown: void 0, hideMethod: "fadeOut", hideDuration: 1e3, hideEasing: "swing", onHidden: void 0, closeMethod: !1, closeDuration: !1, closeEasing: !1, closeOnHover: !0, extendedTimeOut: 1e3, iconClasses: { error: "toast-error", info: "toast-info", success: "toast-success", warning: "toast-warning" }

21, iconClass: "toast-info", positionClass: "toast-top-right", timeOut: 5e3, titleClass: "toast-title", messageClass: "toast-message", escapeHtml: !1, target: "body", closeHtml: '<button type="button">&times;</button>', closeClass: "toast-close-button", newestOnTop: !0, preventDuplicates: !1, progressBar: !1, progressClass: "toast-progress", rtl: !1 }

22 }

23 function t(a) { c && c(a) }

24 function u(c) { function q(a) { return null == a && (a = ""), a.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/</g, "&lt;").replace(/>/g, "&gt;") }

25 function r() { y(), A(), B(), C(), D(), E(), z(), s() }

26 function s() { var a = ""; switch (c.iconClass) { case "toast-success": case "toast-info": a = "polite"; break; default: a = "assertive" }

27j.attr("aria-live", a) }

28 function u() { e.closeOnHover && j.hover(I, H), !e.onclick && e.tapToDismiss && j.click(G), e.closeButton && n && n.click(function (a) { a.stopPropagation ? a.stopPropagation() : void 0 !== a.cancelBubble && a.cancelBubble !== !0 && (a.cancelBubble = !0), e.onCloseClick && e.onCloseClick(a), G(!0) }

29), e.onclick && j.click(function (a) { e.onclick(a), G() }

30) }

31 function x() { j.hide(), j[e.showMethod]({ duration: e.showDuration, easing: e.showEasing, complete: e.onShown }

32), e.timeOut > 0 && (h = setTimeout(G, e.timeOut), o.maxHideTime = parseFloat(e.timeOut), o.hideEta = (new Date).getTime() + o.maxHideTime, e.progressBar && (o.intervalId = setInterval(J, 10))) }

33 function y() { c.iconClass && j.addClass(e.toastClass).addClass(f) }

34 function z() { e.newestOnTop ? b.prepend(j) : b.append(j) }

35 function A() { if (c.title) { var a = c.title; e.escapeHtml && (a = q(c.title)), k.append(a).addClass(e.titleClass), j.append(k) }

36 }

37 function B() { if (c.message) { var a = c.message; e.escapeHtml && (a = q(c.message)), l.append(a).addClass(e.messageClass), j.append(l) }

38 }

39 function C() { e.closeButton && (n.addClass(e.closeClass).attr("role", "button"), j.prepend(n)) }

40 function D() { e.progressBar && (m.addClass(e.progressClass), j.prepend(m)) }

...

</html>