<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">var method = {
	msg_layer: function (obj) {
		jQuery(".msg-layer-bg,.msg-layer").remove();
		jQuery("body").append('&lt;div class="msg-layer-bg"&gt;&lt;/div&gt;&lt;div class="msg-layer showAlert"&gt;&lt;h5&gt;&lt;/h5&gt;&lt;div class="msg-con"&gt;&lt;/div&gt;&lt;div class="layer-close"&gt;&amp;times;&lt;/div&gt;&lt;div class="layer-btn"&gt;&lt;input type="button" class="layer-cancel"/&gt;&lt;input type="button" class="layer-commit"/&gt;&lt;/div&gt;&lt;/div&gt;');
		var _layerBg = jQuery(".msg-layer-bg"),
		_layer = jQuery(".msg-layer"),
		_close = jQuery(".layer-close"),
		_cansel = jQuery(".layer-cancel"),
		_commit = jQuery(".layer-commit");
		_layer.attr("data-animation", obj.type);
		var winH = jQuery(window).height(),
		winW = jQuery(window).width();
		if (obj.title) {
			_layer.find("h5").html(obj.title);
		} else {
			_layer.find("h5").css("display", "none")
		}
		if (obj.content) {
			_layer.find(jQuery(".msg-con")).html(obj.content);
		} else if (obj.url) {
			jQuery.get(obj.url, function (data) {
				_layer.find(jQuery(".msg-con")).html(data);
			});
		}
		_layer.css({
			"display": "block"
		});
		_layerBg.css({
			"display": "block"
		});
		if (!obj.close || obj.close == "true") {
			_close.css("display", "block");
			_close.on("click", function () {
				method.msg_close();
			})
		} else {
			_close.css("display", "none");
		}
		if (obj.btn) {
			if (obj.btn[0] != "") {
				_cansel.css("display", "inline-block");
				_cansel.val(obj.btn[0]);
				_cansel.on("click", function () {
					if (obj.callBack1) {
						obj.callBack1();
						method.msg_close();
					} else {
						method.msg_close();
					}
				})
			}
			if (obj.btn[1] != "") {
				_commit.css("display", "inline-block");
				_commit.val(obj.btn[1]);
				_commit.on("click", function () {
					if (obj.callBack2) {
						obj.callBack2();
					}
				})
			}
		}
		
		if (obj.area) {
			if (obj.area[0] != "auto" &amp;&amp; obj.area[1] != "auto") {
				_layer.css({
					"width": obj.area[0],
					"height": obj.area[1],
					"left": winW / 2 - parseFloat(obj.area[0]) / 2,
					"top": winH / 2 - parseFloat(obj.area[1]) / 2
				});
			} else if (obj.area[0] != "auto" &amp;&amp; obj.area[1] === "auto") {
				_layer.css({
					"width": obj.area[0],
					"height": obj.area[1],
					"left": winW / 2 - parseFloat(obj.area[0]) / 2,
					"top": winH / 2 - (_layer.height() + 20) / 2
				});
			} else if (obj.area[0] === "auto" &amp;&amp; obj.area[1] != "auto") {
				_layer.css({
					"width": _layer.width() + 20,
					"height": obj.area[1],
					"left": winW / 2 - (_layer.width() + 20) / 2,
					"top": winH / 2 - parseFloat(obj.area[1]) / 2
				});
			}
		} else {
			_layer.css({
				width: _layer.width() + 20 + "px",
				"margin": "-" + ((_layer.height() + 10) / 2) + "px 0 0 -" + ((_layer.width() + 20) / 2) + "px"
			});
		}
	},
	msg_close: function () {
		var timer = null;
		jQuery(".msg-layer").removeClass('showAlert').addClass("hideAlert");
		timer = setTimeout(function () {
				clearTimeout(timer);
				jQuery(".msg-layer-bg").remove();
				jQuery(".msg-layer").remove();
			}, 200);
	},
	msg_fade: function (obj) {
		if (jQuery(".msy-alert").length &gt; 0) {
			jQuery(".msy-alert").remove();
		}
		jQuery("body").append('&lt;div class="msy-alert showAlert" data-animation="layerFadeIn"&gt;' + obj.content + '&lt;/div&gt;');
		var msg_timer = null,
		jQuerymsg = jQuery(".msy-alert");
		var winH = jQuery(window).height(),
		winW = jQuery(window).width();
		if (obj.area) {
			if (obj.area[0] != "auto" &amp;&amp; obj.area[1] != "auto") {
				jQuerymsg.css({
					"width": obj.area[0],
					"height": obj.area[1],
					"left": winW / 2 - parseFloat(obj.area[0]) / 2,
					"top": winH / 2 - parseFloat(obj.area[1]) / 2
				});
			} else if (obj.area[0] != "auto" &amp;&amp; obj.area[1] === "auto") {
				jQuerymsg.css({
					"width": obj.area[0],
					"height": obj.area[1],
					"left": winW / 2 - parseFloat(obj.area[0]) / 2,
					"top": winH / 2 - (jQuerymsg.height()) / 2
				});
			} else if (obj.area[0] === "auto" &amp;&amp; obj.area[1] != "auto") {
				jQuerymsg.css({
					"width": jQuerymsg.width() + 20,
					"height": obj.area[1],
					"left": winW / 2 - (jQuerymsg.width()) / 2,
					"top": winH / 2 - parseFloat(obj.area[1]) / 2
				});
			}
		} else {
			jQuerymsg.css({
				width: jQuerymsg.width() + 20 + "px",
				"margin": "-" + ((jQuerymsg.height() + 10) / 2) + "px 0 0 -" + ((jQuerymsg.width() + 20) / 2) + "px"
			});
		}
		if (obj.line) {
			jQuerymsg.css("line-height", obj.line)
		}
		msg_timer = window.setTimeout(function () {
				msg_timer = null;
				clearTimeout(msg_timer);
				jQuery(".msy-alert").removeClass('showAlert').addClass("hideAlert").remove();
			}, obj.time)
	}
};
</pre></body></html>