PageSourceSearch

https://www.gym-tisnov.cz/JavaScript/CronosPlugins/cronoslogin.min.js

js gym-tisnov.cz collected 2026-10-02 20:18:26 UTC 9,946 bytes, 22 lines download raw bytes

1var CRONOSAUTHENTICATION_RESPONSE_OK = "CRONOSAUTHENTICATION_RESPONSE_OK", CRONOSAUTHENTICATION_RESPONSE_LOGIN_OK = "CRONOSAUTHENTICATION_RESPONSE_LOGIN_OK", CRONOSAUTHENTICATION_RESPONSE_LOGIN_FAILED = "CRONOSAUTHENTICATION_RESPONSE_LOGIN_FAILED", CRONOSAUTHENTICATION_RESPONSE_NOT_ACTIVATED = "CRONOSAUTHENTICATION_RESPONSE_NOT_ACTIVATED", CRONOSAUTHENTICATION_RESPONSE_ACTIVATED_RESEND = "CRONOSAUTHENTICATION_RESPONSE_ACTIVATED_RESEND", CRONOSAUTHENTICATION_RESPONSE_LOGOUT_OK = "CRONOSAUTHENTICATION_RESPONSE_LOGOUT_OK",
2    CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_OK = "CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_OK", CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_FAILED = "CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_FAILED", CRONOSAUTHENTICATION_RESPONSE_ERROR = "CRONOSAUTHENTICATION_RESPONSE_ERROR", CRONOSAUTHENTICATION_RESPONSE_CREATED = "CRONOSAUTHENTICATION_RESPONSE_CREATED", CRONOSAUTHENTICATION_RESPONSE_INPROGRESS = "CRONOSAUTHENTICATION_RESPONSE_INPROGRESS";
3function CronosLogin_StoreLoginInfo(a) { deleteCookie("username"); deleteCookie("usermail"); deleteCookie("token"); deleteCookie("langid"); deleteCookie("periodid"); deleteCookie("isguest"); setCookie("username", a.UserName, null); setCookie("usermail", a.UserEmail, null); setCookie("token", a.Token, null); setCookie("langid", a.JazykId, null); setCookie("periodid", a.PeriodId, null); setCookie("isguest", a.IsGuest, null) }
4function CronosLogin_IsGuest() { return isNullOrEmpty(getCookie("isguest")) || "true" == getCookie("isguest") || 1 == getCookie("isguest") } function cronosLogin_Logout(a) { showProgressBar(); cronosLogin_callLogoutHandler(a) } function cronosLogin_callLogoutHandler(a) { data = { Action: "LOGOUT", AlertId: null, IsRedirect: a }; callHandler(cronosAuthenticationHandlerUrl, data, cronosLogin_afterLogoutCall) }
5function cronosLogin_afterLogoutCall(a) { isNull(a) || (a.ResponseState == CRONOSAUTHENTICATION_RESPONSE_LOGOUT_OK ? cronosLogin_resolveLogoutOk(a) : a.ResponseState == CRONOSAUTHENTICATION_RESPONSE_ERROR && (popupError(a.ErrorMessage, a.StackTrace), hideProgressBar())) }
6function cronosLogin_resolveLogoutOk(a) { null != a && (a.IsGuest = !0, CronosLogin_StoreLoginInfo(a)); cronosModule_setModules(null); isSessionStorage() && sessionStorage.clear(); null != a && (a.IsRedirect ? redirectPage(cronosRootRelativeUrl) : a.IsRefresh ? refreshPage() : CronosLogin_ResolveLoginForm()) }
7function CronosLogin_ResolveLoginForm() { $("#webLoginForm").removeClass("invisible"); $("#webLoginUser").addClass("invisible"); $("#webLoginUser .webLoginUserName").html(""); $("#webLoginUser .webLoginUserEmail").html("") }
8function cronosLogin_reLoginUser(a) { $("#CronosAppDialog").html(cronosApp_prepareAppDialogContent("Odhl\u00e1\u0161en\u00ed", a, "P\u0159ej\u00edt na p\u0159ihl\u00e1\u0161en\u00ed", "cronosLogin_doRelogin()")); $("#CronosAppDialog").bPopup({ opacity: .075, closeClass: "CloseCronosAppDialog", modalClose: !1, positionStyle: "fixed" }); $("#CronosAppDialog").draggable({ cursor: "move", drag: function () { cronosForm_ResizeShortFormDialog("CronosAppDialog") } }) }
9function cronosLogin_doRelogin() { cronosLogin_resolveLogoutOk(null); setSessionStorageItem("referer_url", window.location.href); redirectPage(cronosRootRelativeUrl + "cms") }
10function cronosLogin_ShowChangePwdDialog() { $("#CronosAppDialog").html(cronosLogin_prepareChangePwdDialogContent()); $("#CronosAppDialog").bPopup({ opacity: .075, closeClass: "CloseCronosAppDialog", modalClose: !1, positionStyle: "fixed" }); $("#CronosAppDialog").draggable({ cursor: "move", drag: function () { cronosForm_ResizeShortFormDialog("CronosAppDialog") } }) }
11function cronosLogin_prepareChangePwdDialogContent() {
12    return '        <div id="login" class="cronosForm">            <div class="head cronosPageHeadline">                <h1>Zm\u011bna hesla</h1>            </div>            <div class="detail">                <div class="group" style="width: 300px">                    <div class="row clear">                        <label for="chpwd-oldpwd-input" id="chpwd-oldpwd-label">U\u017eivatel</label>                        <div class="value">' + ("                            <p>" +
13        cronosLogin_getUserName() + "</p>") + '                        </div>                    </div>                    <div class="row clear">                        <label for="chpwd-oldpwd-input" id="chpwd-oldpwd-label">P\u016fvodn\u00ed heslo *</label>                        <div class="value">                            <input id="chpwd-oldpwd-input" name="chpwd-oldpwd-input" type="password" placeholder="P\u016fvodn\u00ed heslo, kter\u00e9 pou\u017e\u00edv\u00e1te nyn\u00ed" onblur="cronosLogin_ValidateChPwd(\'old
13pwd\', false)" />                            <div class="clear"></div>                            <p id="empty_oldpwd" class="error invisible">P\u016fvodn\u00ed heslo mus\u00ed b\u00fdt vypln\u011bno.</p>                        </div>                    </div>                    <div class="row clear">                        <label for="chpwd-newpwd1-input" id="chpwd-oldpwd1-label">Nov\u00e9 heslo *</label>                        <div class="value">                            <input id="chpwd-newpwd1-input" name="chpwd-newpwd1-input" type="password" placeholder="Zadejte po\u017eadovan\u00e9 nov\u00e9 heslo" onblur="cronosLogin_ValidateChPwd(\'newpwd1\', true)" />                            <div class="clear"></div>                            <p id="empty_newpwd1" class="error invisible">Nov\u00e9 heslo mus\u00ed b\u00fdt vypln\u011bno a mus\u00ed m\u00edt alespo\u0148 6 znak\u016f.</p>                        </div>                    </div>                    <div class="row clear">                        <label for="chpwd-newpwd2-input" id="chpwd-oldpwd2-label">Nov\u00e9 heslo znovu *</label>                        <div class="value">                            <input id="chpwd-newpwd2-input" name="chpwd-newpwd2-input" type="password" placeholder="Pro kontrolu pros\u00edm zadejte nov\u00e9 heslo znovu" onblur="cronosLogin_ValidateChPwd(\'newpwd2\', true)" />                            <div class="clear"></div>                            <p id="empty_newpwd2" class="error invisible">Nov\u00e9 heslo mus\u00ed b\u00fdt vypln\u011bno a mus\u00ed m\u00edt alespo\u0148 6 znak\u016f.</p>                        </div>                    </div>                    <div class="row clear">                        <p id="chpwd_error" class="error invisible">P\u0159i zm\u011bn\u011b hesla do\u0161lo k chyb\u011b.</p>                    </div>                </div>            </div>            <div class="buttonBar">                <input title="" class="default" onclick="cronosLogin_ChangePwd()" type="submit" value="Zm\u011bnit heslo" />                <input id="" name="" type="button" value="Zru\u0161it" title="" class="other CloseCronosAppDialog" />            </div>        </div>'
14}
15function cronosLogin_ValidateChPwd(a, b) { var c = $("#chpwd-" + a + "-input").val(); $("#empty_" + a).addClass("invisible"); return isNullOrEmpty(c) || b && 6 > c.length ? ($("#empty_" + a).removeClass("invisible"), !1) : !0 }
16function cronosLogin_ValidateChPwdForm() { var a = cronosLogin_ValidateChPwd("oldpwd", !1), b = cronosLogin_ValidateChPwd("newpwd1", !0), c = cronosLogin_ValidateChPwd("newpwd2", !0); if (a && b && c) { a = $("#chpwd-newpwd1-input").val(); b = $("#chpwd-newpwd2-input").val(); if (a == b) return !0; $("#chpwd_error").html('"Nov\u00e9 heslo" a "Nov\u00e9 heslo znovu" se neshoduj\u00ed.'); $("#chpwd_error").removeClass("invisible") } return !1 }
17function cronosLogin_ChangePwd() { showProgressBar(); $("#chpwd_error").addClass("invisible"); if (cronosLogin_ValidateChPwdForm()) { var a = getCookie("usermail"), b = $("#chpwd-oldpwd-input").val(), c = $("#chpwd-newpwd1-input").val(); cronosLogin_callChangePwdHandler(CronosLogin_HashText(a + b), CronosLogin_HashText(a + c)) } else hideProgressBar() }
18function cronosLogin_callChangePwdHandler(a, b) { data = { Action: "CHANGE_PWD", AlertId: null, OldPassword: a, NewPassword: b }; callHandler(cronosAuthenticationHandlerUrl, data, cronosLogin_afterChangePwdCall) }
19function cronosLogin_afterChangePwdCall(a) { isNull(a) || (a.ResponseState == CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_OK ? cronosLogin_resolveChangePwdOk(a) : a.ResponseState == CRONOSAUTHENTICATION_RESPONSE_CHANGE_PWD_FAILED ? cronosLogin_resolveChangePwdFailed(a.ErrorMessage) : a.ResponseState == CRONOSAUTHENTICATION_RESPONSE_ERROR && popupError(a.ErrorMessage, a.StackTrace), hideProgressBar()) }
20function cronosLogin_resolveChangePwdOk() { $("#CronosAppDialog").html(cronosApp_prepareAppDialogContent("Zm\u011bna hesla", "Heslo bylo \u00fasp\u011b\u0161n\u011b zm\u011bn\u011bno.", "Zav\u0159\u00edt", "")) }
20 function cronosLogin_resolveChangePwdFailed(a) { $("#chpwd-oldpwd-input").val(""); $("#chpwd_error").html(a); $("#chpwd_error").removeClass("invisible") } function cronosLogin_getUserName() { return getCookie("username") } function CronosLogin_HashText(a) { return hashText(a) }
21var CRONOSVISITOR_RESPONSE_OK = "CRONOSVISITOR_RESPONSE_OK", CRONOSVISITOR_RESPONSE_ERROR = "CRONOSVISITOR_RESPONSE_ERROR", cronosVisitorIsInProgress = !1; function CronosVisitor_LogVisit() { !cronosVisitorIsInProgress && isNullOrEmpty(getSessionStorageItem("visitLogged")) && (cronosVisitorIsInProgress = !0, cronosVisitor_callVisitHandler()) } function cronosVisitor_callVisitHandler() { data = { Action: "LOG_VISIT", AlertId: null }; callHandler(cronosVisitorHandlerUrl, data, cronosVisitor_afterVisitCall) }
22function cronosVisitor_afterVisitCall(a) { isNull(a) || (a.ResponseState == CRONOSVISITOR_RESPONSE_OK ? cronosVisitor_resolveLogVisitOk(a) : a.ResponseState == CRONOSVISITOR_RESPONSE_ERROR && popupError(a.ErrorMessage, a.StackTrace), cronosVisitorIsInProgress = !1) } function cronosVisitor_resolveLogVisitOk(a) { setSessionStorageItem("visitLogged", "logged") };

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.