1function updatePageNumbers(){ 2 var currentPage = 1; 3 var totalPages = $(".adigiPage:not(.noShow)").length-1; 4 $(".adigiPage:not(.noShow) .adigiNextPage").each(function(){ 5 $(this).html("Weiter zu Schritt "+(currentPage+1)+" von "+totalPages); 6 if(currentPage == totalPages-1){ 7 $(this).html("Weiter zum letzten Schritt"); 8 } 9 currentPage++; 10 }) 11} 12 13$(function () { 14 $(".imgSelectContainer").on("click", function () { 15 $(".imgSelectContainer").removeClass("active"); 16 $(this).addClass("active"); 17 18 if ($(this).hasClass("isPackage")) { 19 $(".packageOnly").removeClass("noShow"); 20 } else { 21 $(".packageOnly").addClass("noShow"); 22 } 23updatePageNumbers(); 24 25 }); 26 updatePageNumbers(); 27 28 $(".increaseButton").on("click", function () { 29 let target = $(this).parent().find(".incDecTarget"); 30 if (target.val() < 4) { 31 target.val(parseInt(target.val()) + 1) 32 } 33 handleChildren(target); 34 }); 35 $(".decreaseButton").on("click", function () { 36 let target = $(this).parent().find(".incDecTarget"); 37 if (target.val() > 0) { 38 if (!target.hasClass("adultsAdigi") || (target.hasClass("adultsAdigi") && target.val() > 1)) { 39 target.val(parseInt(target.val()) - 1) 40 } 41 } 42 handleChildren(target); 43 }); 44 $(".adigiMail").on("change", function () { 45 $("b.mailaddress").html($(this).val()); 46 }); 47 $(".submitAdigi").on("click", function () { 48 let success = true; 49 if (!checkEmailAdigi($(".adigiMail").val())) { 50 success = false; 51 $(".mailError").removeClass("d-none"); 52 $(".adigiMail").on("keyup", function () { 53 if (checkEmailAdigi($(this).val())) { 54 $(".mailError").addClass("d-none"); 55 } 56 }) 57 } 58 if ($(".adigiTel").val() == "") { 59 success = false; 60 $(".telError").removeClass("d-none"); 61 $(".adigiTel").on("keyup", function () { 62 if ($(".adigiTel").val() == "") { 63 $(".telError").addClass("d-none"); 64 } 65 }) 66 } 67 if (!$(".dsgvoAdigi").is(':checked')) { 68 success = false; 69 $(".dsgvoAdigiLabel").addClass("error"); 70 $(".dsgvoAdigi").on("change", function () { 71 if ($(".dsgvoAdigi").is(':checked')) { 72 $(".dsgvoAdigiLabel").removeClass("error"); 73 } 74 }); 75 76 } 77 if (success) { 78 grecaptcha.execute(); 79 80 81 } 82 83 }); 84 $(".adigiNextPage").on("click", function () { 85 if ($(this).hasClass("inactive")) { 86 return; 87 } 88 let nextPage = $(this).data("nextpage"); 89 if ($(".adigiPage[data-page=" + nextPage + "]").hasClass("noShow")) { 90 nextPage++; 91 } 92 $(".adigiPage").addClass("d-none"); 93 $(".adigiPage[data-page=" + nextPage + "]").removeClass("d-none"); 94 }); 95 $(".adigiPrevPage").on("click", function () { 96 let nextPage = $(this).data("nextpage"); 97 if ($(".adigiPage[data-page=" + nextPage + "]").hasClass("noShow")) { 98 nextPage--; 99 } 100 $(".adigiPage").addClass("d-none"); 101 $(".adigiPage[data-page=" + nextPage + "]").removeClass("d-none"); 102 }); 103 $(".adigiPage .destinationAdigi, .adigiPage .airportAdigi").on("keyup", function () { 104 if ($(this).val().length > 0) { 105 $(this).closest(".adigiPage").find(".adigiNextPage").removeClass("inactive"); 106 } else { 107 $(this).closest(".adigiPage").find(".adigiNextPage").addClass("inactive"); 108 109 } 110 }); 111 $('.adigiDate').daterangepicker({ 112 "locale": { 113 "format": "DD.MM.YYYY", 114 singleDatePicker: true, 115 "applyLabel": "Wählen", 116 "cancelLabel": "Abbrechen", 117 "customRangeLabel": "Custom", 118 "weekLabel": "W", 119 "daysOfWeek": [ 120 "So", 121 "Mo", 122 "Di", 123 "Mi", 124 "Do", 125 "Fr",
126 "Sa" 127 ], 128 "monthNames": [ 129 "Jänner", 130 "Februar", 131 "März", 132 "April", 133 "Mai", 134 "Juni", 135 "Juli", 136 "August", 137 "September", 138 "Oktober", 139 "November", 140 "Dezember" 141 ], 142 "firstDay": 1 143 }, 144 "startDate": adigiStartDate, 145 "endDate": adigiEndDate, 146 "minDate": adigiMinDate, 147 "autoApply": true, 148 "opens": "center" 149 }, function (start, end, label) { 150 $(this).parent().parent().find($("input[name=vonTermin]").val(start.format('YYYY-MM-DD'))) 151 $(this).parent().parent().find($("input[name=bisTermin]").val(end.format('YYYY-MM-DD'))) 152 }); 153 154 $("#furtherWhishesAdigi").change(function () { 155 if ($(this).is(':checked')) { 156 $(".wishDetails").removeClass("d-none"); 157 } else { 158 $(".wishDetails").addClass("d-none"); 159 160 } 161 }) 162 163 $("#exactDestination").change(function () { 164 if ($(this).is(':checked')) { 165 $(".destinationAdigi").val(""); 166 } else { 167 $(".destinationAdigi").val("Ãberrascht mich!"); 168 } 169 $(".destinationAdigi").trigger("keyup"); 170 }) 171 172 173 initAdigiPrice(); 174}); 175 176function onSubmitAdigi(token){ 177 $(".adigiPage").addClass("d-none"); 178 $(".adigiPage[data-page=final]").removeClass("d-none"); 179 let type = $(".imgSelectContainer.active").hasClass("isPackage") ? "Pauschal" : "Hotel Only" 180 let data = {}; 181 data.Reiseart = type; 182 data.Reiseziel = $(".destinationAdigi").val(); 183 data.Erwachsene = $(".adultsAdigi").val(); 184 data.Kinder = $(".childrenAdigi").val(); 185 if ($(".childrenAdigi").val() == 0) { 186 if ($("#adultsOnly").is(':checked')) { 187 data.Erwachsenenhotel = "ja"; 188 } 189 }else{ 190 for(let i= 1; i<=$(".childrenAdigi").val(); i++){ 191 let varName = "Kind"+i; 192 data[varName] = $(".adigiChild"+i+" .child"+i+" option:selected").val(); 193 } 194 } 195 if($(".imgSelectContainer.active").hasClass("isPackage")){ 196 data.Flughafen = $(".airportAdigi").val(); 197 if ($("#directFlight").is(':checked')) { 198 data.Direktflug = "ja"; 199 } 200 } 201 data.Reisezeitraum = $(".adigiDate").val(); 202 data.Reisedauer = $(".adigiDuration option:selected").val(); 203 data.Mindestpreis = $(".adigiPage .minPriceValue").html(); 204 data.Maximalpreis = $(".adigiPage .maxPriceValue").html(); 205 data.Wuensche = $(".adigiFurtherWhishes").val(); 206 data.Verpflegung = $(".adigiBoard option:selected").val(); 207 data.Zimmer = $(".adigiRoom option:selected").val(); 208 data.Sterne = $(".adigiStars option:selected").val(); 209 $(".wishDetails .custom-control-input").each(function(){ 210 let varName = $(this).attr("id"); 211 if ($("#"+varName).is(':checked')) { 212 data[varName] = "ja"; 213 }else{ 214 data[varName] = "nein"; 215 } 216 }); 217 data.Vorname = $(".adigFirstname").val(); 218 data.Nachname = $(".adigiLastname").val(); 219 data.Mail = $(".adigiMail").val(); 220 data.Telefon = $(".adigiTel").val(); 221 data.Recipient = $(".adigiRecipient").val(); 222 data.Token = token; 223 224 $.ajax({
225 type: "POST", 226 url: "/ajax/adigi.php", 227 data: data 228 }); 229} 230function initAdigiPrice() { 231 if(typeof noUiSlider === "undefined"){ 232 setTimeout(function(){initAdigiPrice()}, 500) 233 } 234 noUiSlider.create($("#adigiSlider")[0], { 235 start: [0, 10000], 236 connect: true, 237 step: 50, 238 range: { 239 "min": 0, 240 "max": 10000 241 }, 242 }); 243 244 245 $("#adigiSlider")[0].noUiSlider.on("update", function (values, handle) { 246 var target = $(this)[0].target; 247 $(target).parent().find(".minPriceValue").html(values[0].replace(".00", "") + " €"); 248 if (values[1] == 10000) { 249 values[1] = "ohne Limit"; 250 } else { 251 values[1] += " €" 252 } 253 $(target).parent().find(".maxPriceValue").html(values[1].replace(".00", "")); 254 }); 255 256 $("#adigiSlider")[0].noUiSlider.on("end", function (values, handle) { 257 var target = $(this)[0].target; 258 $(target).parent().find("input[name=adigiMin]").val(values[0].replace(".00", "")); 259 if (values[1] == 10000) { 260 values[1] = ""; 261 } 262 $(target).parent().find("input[name=adigiMax]").val(values[1].replace(".00", "")); 263 }); 264} 265 266function handleChildren(target) { 267 if (target.hasClass("childrenAdigi")) { 268 $("div[class*=adigiChild]").addClass("d-none"); 269 if (parseInt(target.val()) == 0) { 270 $(".adigiAdultOnly").removeClass("d-none"); 271 } else { 272 $(".adigiAdultOnly").addClass("d-none"); 273 } 274 for (let i = 1; i <= parseInt(target.val()); i++) { 275 $(".adigiChild" + i).removeClass("d-none"); 276 } 277 } 278} 279 280function checkEmailAdigi(email) { 281 var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 282 if (!filter.test(email)) { 283 284 return false; 285 } else { 286 return true; 287 } 288} 289
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.