function getCookie(t){let e=document.cookie.split(";");for(let o=0;o Siparişiniz Oluşturuluyor...',buttons:!1,showCancelButton:!1,showConfirmButton:!1,allowOutsideClick:!1,timer:5e3,timerProgressBar:!0}).then((t=>{t.dismiss===Swal.DismissReason.timer&&console.log("Süre doldu, uyarı kapandı")})):(e.preventDefault(),e.stopPropagation()),t.classList.add("was-validated")}),!1)}))}(); $("#sehir").on("change",function(){var i=$(this).val();$("#ilce").attr("disabled",!1).html(''),$.getJSON("json/il-ilce.json",function(e){$("#ilce").append(''),$.each(e,function(e,n){var o="";n.il==i&&(o+='",$("#ilce").append(o))})})}); $(".tel-mask").inputmask({ mask: "0(*99) 999-9999", greedy: false, definitions: { '*': { validator: "[1-8]" } }, "clearIncomplete": true }); kargofirma_(); $("body").on('change', 'input[name="adet"],input[name="odeme"]', function() { kargofirma_(); }); $("body").on('click', '.kargofirmakampanyaustbuton', function() { $('html').animate({scrollTop: $('#contact_form').offset().top}, 300); }); function kargofirma_(){ } $("label.block").click(function(){$("html").animate({scrollTop:$(".scroolposition1").offset().top},300);var i=$(this);$(".block").each(function(){$(i).data("image")!=$(this).data("image")?($(this).children("img.showz").show(),$(this).children("img.none").hide()):($(this).children("img.showz").hide(),$(this).children("img.none").show())})}); $(".siparisbuton").click(function(){var i=$("#contact_form");$(".contentimg"),i.find(":input").on("invalid",function(n){var t=$(this),f=i.find(":invalid").first();if(t[0]===f[0]){var o=t.offset().top-0,c=window.pageYOffset-0;if(o>c&&o