PageSourceSearch

https://lafitness.com/javaScripts/g2ModalDialog.min.js

js lafitness.com collected 2026-10-02 05:06:28 UTC 6,277 bytes, 1 lines download raw bytes

1var g2ModalDialog = { popupVisible: 0, MsgBoxWidth: "200px", MsgBoxHeight: "", MsgBoxDialogClass: "", MsgBoxDialogStyle: "border:solid 3px gray; background-color:#ffffff;", MsgBoxTitleClass: "SubMainHeader", MsgBoxTitleStyle: "", MsgBoxCloseImage: "/javaScripts/LAF/Images/popup_closebutton.png", Buttons: { Ok: "Ok", OkCancel: "OkCancel", None: "None", Type: this.Ok }, ButtonOkClass: "yellow", ButtonCancelClass: "gray", ButtonLabelOk: "OK", ButtonLabelCancel: "Cancel", _ButtonLabelOk: "OK", _ButtonLabelCancel: "Cancel", ButtonPressed: { Value: "", Ok: function () { return this.Value == this.ButtonOk ? !0 : !1 }, Cancel: function () { return this.Value == this.ButtonCancel ? !0 : !1 }, Esc: function () { return this.Value == this.ButtonEsc ? !0 : !1 }, ButtonOk: "Ok", ButtonCancel: "Cancel", ButtonEsc: "Esc" }, SetFocusTo: null, _DivToShow: "", _divHeight: 0, _divWidth: 0, Show: function (n, t, i) { if (n != null) { var r = document.getElementById(n); r != null && (_DivToShow = n, this.Generate(t, i), this.Display(), this.Center()) } }, ScrollTop: function () { var n = document.getElementById(_DivToShow); n.scrollTop = 0 }, ScrollBottom: function () { var n = document.getElementById(_DivToShow); n.scrollTop = n.scrollHeight }, Generate: function (n, t) { var r, i; this.ButtonPressed.Value = this.ButtonPressed.ButtonCancel; document.getElementById("g2ModalDialog") == null && (r = document.createElement("div"), r.id = "g2ModalDialog", r.style.position = "fixed", r.style.width = "100%", r.style.height = "100%", r.style.zIndex = 1000, document.getElementsByTagName("body")[0].appendChild(r)); $("#g2ModalDialog")[0].innerHTML = ""; $("#g2ModalDialog").css({ position: "fixed", top: 0, left: 0, width: "100%", height: "100%" }); i = ""; i += '<div id="g2ModalDialog_cover" style="width:100%; height:100%; background-color:#FFFFFF; opacity:0.5; filter:alpha(opacity=50); z-index:1001;"><\/div>'; i += '<div id="g2ModalDialog_inner" class="' + this.MsgBoxDialogClass + '" style="width:' + this.MsgBoxWidth + "; z-index:1002; position:fixed; " + this.MsgBoxDialogStyle + ' ">'; n != null && n != "" && (i += '    <div id="g2ModalDialogTitle" class="' + this.MsgBoxTitleClass + '" style="' + this.MsgBoxTitleStyle + '">', i += "        <center>" + n + "<\/center>", i += "    <\/div>"); i += '    <div style="float:right; position:absolute; top:0; right:0">'; i += '        <img id="g2ModalDialogClose" src="' + this.MsgBoxCloseImage + '" alt="Close" />'; i += "    <\/div><br />"; i += '    <div id="g2ModalDialogPlaceHolder" style="margin:15px 15px 15px 15px;">'; i += "        <br/><br/>"; i += "    <\/div>"; this.Buttons.Type != this.Buttons.None && (i += '    <div id="g2ModalDialogButtons">', i += this.Buttons.Type == this.Buttons.OkCancel ? '        <table style="width:100%;border:none;" role="presentation"><tr><td style="width:100%;text-align:center;"><input type="button" id="btnG2ModalDialogOk" class="' + this.ButtonOkClass + '" value="' + this.ButtonLabelOk + '" />&nbsp;&nbsp;&nbsp;<input type="button" class="' + this.ButtonCancelClass + '" id="btnG2ModalDialogCancel" value="' + this.ButtonLabelCancel + '" /><\/td><\/tr><\/table>' : '        <table style="width:100%;border:none;" role="presentation"><tr><td style="width:100%;text-align:center;"><input type="button" id="btnG2ModalDialogOk" class="' + this.ButtonOkClass + '" value="' + this.ButtonLabelOk + '" /><\/td><\/tr><\/table>', i += "   <\/div>"); i += "<\/div>"; i += "<\/div>"; $("#g2ModalDialog")[0].innerHTML = i; $("#g2ModalDialogClose").click(function () { (g2ModalDialog.ButtonPressed.Value = g2ModalDialog.ButtonPressed.ButtonCancel, typeof t == "undefined" || t(!0)) && g2ModalDialog.Disable() }); $("body").bind("keyup.popup", function (n) { if (n.keyCode == 27 && g2ModalDialog.popupVisible == 1) { if (g2ModalDialog.ButtonPressed.Value = g2ModalDialog.ButtonPressed.ButtonEsc, typeof t != "undefined" && !t(!0)) return; g2ModalDialog.Disable() } if (n.keyCode == 13 && g2ModalDialog.popupVisible == 1) { if (g2ModalDialog.ButtonPressed.Value = g2ModalDialog.ButtonPressed.ButtonOk, typeof t != "undefined" && !t(!1)) return; g2ModalDialog.Disable() } }); this.Buttons.Type != this.Buttons.None && (this.Buttons.Type == this.Buttons.OkCancel && $("#btnG2ModalDialogCancel").click(function () { (g2ModalDialog.ButtonPressed.Value = g2ModalDialog.ButtonPressed.ButtonCancel, typeof t == "undefined" || t(!0)) && g2ModalDialog.Disable() }), $("#btnG2ModalDialogOk").click(function () { (g2ModalDialog.ButtonPressed.Value = g2ModalDialog.ButtonPressed.ButtonOk, typeof t == "undefined" || t(!1)) && g2ModalDialog.Disable() })) }, Display: function () { this.popupVisible == 0 && ($("#g2ModalDialog").fadeIn("fast"), this.popupVisible = 1) }, Disable: function () { if (this.popupVisible == 1) { if ($("#g2ModalDialog").fadeOut("fast"), this.popupVisible = 0, $("body").unbind("
1keyup.popup"), this.SetFocusTo != null) { try { this.SetFocusTo.focus() } catch (n) { } this.SetFocusTo = null } this.ButtonLabelCancel = this._ButtonLabelCancel; this.ButtonLabelOk = this._ButtonLabelOk; $("#" + _DivToShow).css({ overflow: "auto", height: _divHeight, width: _divWidth }); $("#" + _DivToShow).hide() } }, Center: function () { var r = document.documentElement.clientWidth, u = document.documentElement.clientHeight, c, l; $("#" + _DivToShow).show(); var i = _divHeight = $("#" + _DivToShow).height(), f = _divWidth = $("#" + _DivToShow).width(), s = $("#g2ModalDialog_inner").height(), h = $("#g2ModalDialog_inner").width(), e = $("#g2ModalDialogPlaceHolder").height(), o = $("#g2ModalDialogPlaceHolder").width(), n = s, t = h; i > e && (n += i - e + 20); f > o && (t += f - o); n > u && (n = u - 20); i = n - (s - e); t > r && (t = r - 20); f = t - (h - o); $("#" + _DivToShow).css({ "overflow-y": "auto", height: i }); $("#" + _DivToShow).css({ "overflow-x": "auto", width: f }); $("#g2ModalDialogPlaceHolder").css({ height: i }); $("#g2ModalDialog_inner").css({ height: n, width: t, top: u / 2 - n / 2, left: r / 2 - t / 2 }); c = u / 2 - n / 2 + $("#g2ModalDialogPlaceHolder").position().top; l = r / 2 - t / 2 + $("#g2ModalDialogPlaceHolder").position().left; $("#" + _DivToShow).css({ top: c + 15, left: l + 15, "z-index": 1003, position: "fixed" }) } }, $md = g2ModalDialog;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.