1$(document).ready(function ($) { 2 3 4 $('#loginForm').on('submit', function (e) { 5 e.preventDefault(); 6 var $form = $(this); 7 var $submitButton = $form.find('button[type="submit"]'); 8 var formData = $(this).serialize(); 9 $.ajax({ 10 type: 'POST', 11 url: '/hesabim/kontrol.php', 12 data: formData, 13 dataType: 'json', 14 beforeSend: function (response) { 15 $submitButton.prop('disabled', true); 16 $('#message').html('<div style="font-size:14px;" class="pt-3 pb-3 alert alert-info">Lütfen bekleyin..</div>'); 17 }, 18 success: function (response) { 19 20 if (response.status === 'success') { 21 window.location.href = '/hesabim/'; 22 } 23 $('#message').html(response.message); 24 $('#message').focus(); 25 }, 26 complete: function (response) { 27 $submitButton.prop('disabled', false); 28 $('.tf-button').html('GİRİŠYAP <i class="icon-enter"></i>'); 29 } 30 }); 31 }); 32 33 $("#sehir_id").bind('change', ilcegetir); 34 35 function ilcegetir() { 36 $.post('ilcegetir.php', { yId: $("#sehir_id").val() }, function (output) { 37 $("#ilce_id option").remove(); 38 $("#ilce_id").append(output); 39 40 }); 41 } 42 43 44 $('#ustaKayit').on('submit', function (e) { 45 e.preventDefault(); 46 var $form = $(this); 47 var $submitButton = $form.find('button[type="submit"]'); 48 var formData = $(this).serialize(); 49 $.ajax({ 50 type: 'POST', 51 url: '/hesabim/kayit.php', 52 data: formData, 53 dataType: 'json', 54 beforeSend: function (response) { 55 $submitButton.prop('disabled', true); 56 }, 57 success: function (response) { 58 if (response.status == 'success') { 59 swal({ 60 title: "BAÅARILI !", 61 text: response.message, 62 type: "success", 63 confirmButtonColor: "#1cd254", 64 confirmButtonText: "Kapat", 65 }); 66 67 } else if (response.status == 'error') { 68 swal({ 69 title: "HATA !", 70 text: response.message, 71 type: "error", 72 confirmButtonColor: "#DD6B55", 73 confirmButtonText: "Kapat", 74 }); 75 } 76 77 }, 78 complete: function (response) { 79 $submitButton.prop('disabled', false); 80 $('.tf-button').html('Kaydet <i class="icon-enter"></i>'); 81 $form[0].reset(); 82 } 83 }); 84 }); 85 86 /* 87 88 $(document).on('click', '.formBtn', function() { 89 //$('.formBtn').on('click touchstart', function() { 90 //$(document).on('click touch', '.formBtn', function(event) { 91 //$('.formBtn').click(function() { 92 93 var root = "https://account.servisjet.com/"; 94 95 $.ajax({ 96 type: "POST", 97 url: root + "login.php", 98 //url: "/index.html", 99 data: $(".formlar").serialize(), 100 cache: false, 101 dataType: "html", 102 103 beforeSend: function(data) { 104 // göndermeden önce yapılacak iÅlemler 105 }, 106 success: function(data) { 107 if (data == 'basarili') { 108 109 swal({ 110 title: "BAÅARILI !", 111 text: "Mesajınız Tarafımıza İletildi !", 112 type: "success", 113 //showCancelButton: true, 114 confirmButtonColor: "#1cd254", 115 confirmButtonText: "Kapat", 116 //cancelButtonText: "Hayır", 117 //closeOnConfirm: true, 118 //closeOnCancel: true 119 }); 120 121 } else if (data == 'hata') { 122 123 swal({ 124 title: "HATA !", 125 text: "Lütfen Gerekli Alanları Doldurunuz !", 126 type: "error", 127 //showCancelButton: true, 128 confirmButtonColor: "#DD6B55", 129 confirmButtonText: "Kapat", 130 //cancelButtonText: "Hayır", 131 //closeOnConfirm: true, 132 //closeOnCancel: true 133 }); 134 135 } 136 }, 137 error: function(ajax_sonuc) { 138 139 140 swal({ 141 title: "HATA !", 142 text: "Bir Sorun OluÅtu, Lütfen Tekrar Deneyiniz !", 143 type: "error", 144 //showCancelButton: true, 145 confirmButtonColor: "#DD6B55", 146 confirmButtonText: "Kapat", 147 //cancelButtonText: "Hayır", 148 //closeOnConfirm: true, 149 //closeOnCancel: true 150 }); 151 152 153 swal({ 154 title: "BAÅARILI !", 155 text: "Mesajınız Tarafımıza İletildi !", 156 type: "success", 157 //showCancelButton: true, 158 confirmButtonColor: "#1cd254", 159 confirmButtonText: "Kapat", 160 //cancelButtonText: "Hayır", 161 //closeOnConfirm: true, 162 //closeOnCancel: true 163 }); 164 165 }, 166 complete: function(ajax_sonuc) { 167 //$('.formBtn').prop('disabled', false).val(form_btn_old_msg); 168 } 169 170 }); 171 172 return false;
173 }); 174 175 */ 176 177 178 179 $('#yorumyap').on('submit', function (e) { 180 e.preventDefault(); 181 var $form = $(this); 182 var $submitButton = $form.find('button[type="submit"]'); 183 var formData = $(this).serialize(); 184 185 console.log(formData); 186 187 $.ajax({ 188 type: 'POST', 189 url: '/musteri/index.php', 190 data: formData, 191 dataType: 'json', 192 beforeSend: function (response) { 193 $submitButton.prop('disabled', true); 194 $('#message2').html('<div style="font-size:14px;" class="pt-3 pb-3 alert alert-info">Lütfen bekleyin..</div>'); 195 196 }, 197 success: function (response) { 198 199 console.log(response.message); 200 201 $("#modalPuanVer").modal("hide"); 202 $("#puanSonuc").html(response.message); 203 $("#modalPuanSonuc").modal("show"); 204 } 205 }); 206 }); 207 208 209 210 211 212 213});
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.