1$(".advanceStepButton").attr("disabled", !1); 2var t = $(".activeFormStep").first(), 3 e = 100 / $(".form-steps__step").length * (t.data("step") - 1), 4 nextButtonText = $("#nextBtnText").html(), 5 submitButtonText = $("#submitBtnText").html(); 6switch ($(".form-progress-bar-width").css("width", Math.ceil(e) + "%"), 7 $(".form-progress-value-value").html(Math.ceil(e)), 8 $("form").hasClass("formSubmitted") && (t.removeClass("activeFormStep"), 9 $(".form-steps__step").last().addClass("activeFormStep"), 10 t = $(".activeFormStep").first()), t.data("step")) { 11 case 1: 12 $(".advanceStepButton").html(nextButtonText).css("display", "none"), 13 $(".lastStepOnly").css("display", "none"), 14 $(".backStepButton").css("display", "none") 15 break; 16 case 2: 17 case 3: 18 case 4: 19 $('.advanceStepButton').html(nextButtonText + ' <i class="fa-solid fa-circle-chevron-right" style="margin-left: 10px;"></i>').css("display", "none") 20 break 21 case 5: 22 case 6: 23 $('.advanceStepButton').html(nextButtonText + ' <i class="fa-solid fa-circle-chevron-right" style="margin-left: 10px;"></i>').css("display", "block") 24 break; 25 case 7: 26 $(".advanceStepButton").css("display", "none"), 27 $(".lastStepOnly").css("display", "block"), 28 $(".lastStepOnly").html(submitButtonText + ' <i class="fa-solid fa-circle-check fa-beat" style="margin-left:10px; --fa-animation-duration: 1.5s;"></i>'), 29 $(".backStepButton").css("display", "none"), 30 $(".disclaimer").css("display", "block"), 31 $(window).width() < 1100 && ($(".form-progress-bar")[0].scrollIntoView(!0), window.scrollBy(0, -30)) 32 } 33 if (function() { 34 switch ($(".activeFormStep").first().data("step")) { 35 case 1: 36 var t; 37 t = function() { 38 $("input[name='firstStep']:checked").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0) 39 }; 40 t(), $(".firstStep").on("change", function() { 41 t(); 42 $(".advanceStepButton").click(); 43 }); 44 break; 45 case 2: 46 $("html, body").animate({ scrollTop: 0 }, "fast"); 47 $(".back-overlay").css("display", "block"); 48 $(".form-wrapper").css({ 49 "display":"flex", 50 "justify-content":"center", 51 "align-items":"center", 52 "position":"absolute", 53 "top":"0" , "left":"0", 54 "width":"100%", 55 "height":"100%", 56 }); 57 $("#theForm").css({ 58 "max-width":"1200px" 59 }); 60 $("#starthere").css("display", "none"); 61 var t; 62 t = function() { 63 $("input[name='NumberOfFloors']:checked").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0); 64 }; 65 t(), $(".numberOfFloors").on("change", function() { 66 t(); 67 $(".advanceStepButton").click(); 68 }); 69 break; 70 case 3: 71 var t; 72 t = function() { 73 $("input[name='TypeOfStaircase']:checked").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0); 74 }; 75 t(), $(".typeOfStaircase").on("change", function() { 76 t(); 77 $(".advanceStepButton").click(); 78 }); 79 break; 80 case 4: 81 var t; 82 t = function() { 83 $("input[name='ResidentialStatus']:checked").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0); 84 }; 85 t(), $(".residentialStatus").on("change", function() { 86 t(); 87 $(".advanceStepButton").click(); 88 }); 89 break; 90 case 5: 91 var a = function() { 92 var postRegex = /[0-9]{5,15}/; 93 $("#postcode").val() && postRegex.test($("#postcode").val()) && $("#AddressLine1").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0); 94 }; 95 a(), $("#postcode, #AddressLine1").on("keyup", function() { 96 a(); 97 }); 98 break; 99 case 6: 100 var e = function() { 101 $("#title").val() && $("#firstname").val() && $("#lastname").val() ? $(".advanceStepButton").attr("disabled", !1) : $(".advanceStepButton").attr("disabled", !0); 102 }; 103 e(), $("#firstname, #lastname").on("keyup", function() { 104 e(); 105 }), 106 $("#title").on("change", function() { 107 e(); 108 }) 109 ; 110 break; 111 case 7: 112 var n = function() { 113 //var phoneRegex = ""; 114 var emailRegex = /.+\@.+\..+/; 115 116 $("#LandlinePhone").val() && $("#email").val() && emailRegex.test($("#email").val()) ? $(".submitFormButton").attr("disabled", !1) : $(".submitFormButton").attr("disabled", !0); 117 }; 118 n(); 119 $("#LandlinePhone, #email").on("keyup", function() { 120 n(); 121 }); 122 } 123 }(), $("form").hasClass("formSubmitted")) {
124 e = Math.ceil(100 / $(".form-steps__step").length * ($(".form-steps__step").last().data("step") - 1)); 125 $(".form-progress-bar-width").css("width", Math.ceil(e) + "%"), $(".form-progress-value-value").html(Math.ceil(e)), $(".advanceStepButton").css("display", "none"), $(".lastStepOnly").css("display", "block"); 126} 127 128
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.