// Start Cronto Aktivierung Gerätename obligatorisch Button weiter disabled var otanActivationNextTimeout = null; function otanActivationFieldsChanged() { if (otanActivationNextTimeout) { clearTimeout(otanActivationNextTimeout); } otanActivationNextTimeout = setTimeout(function() { var otanDeviceName = $("#otan-deviceName-input").val() || ""; var otanChallengeResponse = $("#otan-challengeResponse-input").val() || ""; if (otanDeviceName.trim().length > 0 && otanChallengeResponse.trim().length > 0) { $(".uap-button.submit").prop("disabled", false); } else { $(".uap-button.submit").prop("disabled", true); } }, 50); } $(document).ready(function () { if (typeof jsf !== "undefined") { jsf.ajax.addOnEvent(function(event) { var ajaxstatus = event.status; switch (ajaxstatus) { case "begin": break; case "complete": break; case "success": if ($("body").attr("data-uap-view") == "ACTIVATION_OTAN_CRYPTOGRAM_SCREEN") { $(".uap-button.submit").prop("disabled", true); $("#otan-challengeResponse-input").on("keydown", function(e) { otanActivationFieldsChanged(); }); $("#otan-deviceName-input").on("keydown", function(e) { otanActivationFieldsChanged(); }); } break; } }); } }); // Ende Cronto Aktivierung // Start styling function moveIntoMainPanel() { $("[data-moveto=\"main-panel\"]").each(function(i, panelToMove) { var panelToMove = $(panelToMove); if (panelToMove.parents("#main-panel").length > 0) { // the panel is already inside the main panel, nothing to move return; } var panelId = panelToMove.attr("data-moveid"); var moveSide = panelToMove.attr("data-position"); $("#main-panel [data-moveid=\""+panelId+"\"]").remove(); if (moveSide === "left") { panelToMove.clone().prependTo($("#main-panel")); } else { panelToMove.clone().appendTo($("#main-panel")); } }); } function moveStepsToHeader() { var stepsIndicator = $("#uap-steps").clone(); // we remove the dot character from the step index since it is not in the design stepsIndicator.find(".wrap-step > .index").each(function(i, stepIndex) { var stepIndex = $(stepIndex); stepIndex.text(stepIndex.text().replace(".", "")); }); $("#uap-steps-moved").remove(); stepsIndicator.attr("id", "uap-steps-moved"); stepsIndicator.detach().appendTo("#header-bar"); // add last "E-Banking" entry found in the design var lastStep = +(stepsIndicator.children().last().find(".index").text().replace(/[^0-9]/g, "")); stepsIndicator.append("
Warten auf Cronto App...