1$(document).ready(function () { 2 3 $("#changeSecurtyImageContact").click(function () { 4 5 $("#captchaContact").attr('src', '/tr/prosses/captcha.html?nocache=' + new Date().getTime()); 6 }); 7 $("#changeSecurtyImage").click(function () { 8 $("#captcha").attr('src', '/tr/prosses/captcha.html?nocache=' + new Date().getTime()); 9 }); 10 jQuery.validator.addMethod("phone", function (phone, element) { 11 if (phone == null) { 12 return false; 13 } 14 var stripped = phone.replace(/[\s()+-]|ext\.?/gi, ""); 15 // 10 is the minimum number of numbers required 16 return this.optional(element) || ((/^\d{10}$/).test(stripped)); 17 }, ""); 18 $('.lang-google-button').on('click touch', function () { 19 20 $('.lang-bar-google-model').addClass('in'); 21 return false; 22 }); 23 24 $('.ask-bar-button').on('click touch', function () { 25 26 $('.ask-bar').addClass('in'); 27 return false; 28 }); 29 30 31 $('.nivo-lightbox-close').on('click touch', function () { 32 $('.lang-bar-google-model').removeClass('in'); 33 $('.ask-bar').removeClass('in'); 34 return false; 35 }); 36 37 38 if ($("#DrForm").length > 0) { 39 var uploader = new plupload.Uploader({ 40 runtimes: 'gears,html5,flash,silverlight,browserplus', 41 browse_button: 'pickfiles', 42 unique_names: false, 43 container: 'container', 44 max_file_size: '10mb', 45 url: '/uploader.html', 46 flash_swf_url: '/plupload/js/plupload.flash.swf', 47 silverlight_xap_url: '/plupload/js/plupload.silverlight.xap', 48 filters: [{ 49 title: "Files", 50 extensions: "jpg,gif,png,doc,docx,xls,xlsx,pdf" 51 }, 52 { 53 title: "Zip files", 54 extensions: "zip" 55 } 56 ], 57 resize: { 58 width: 320, 59 height: 240, 60 quality: 90 61 } 62 }); 63 uploader.bind('Init', function (up, params) { 64 $('#filelist').html(""); 65 }); 66 $('#uploadfiles').click(function (e) { 67 uploader.start(); 68 e.preventDefault(); 69 }); 70 71 uploader.init(); 72 73 uploader.bind('FilesAdded', function (up, files) { 74 $.each(files, function (i, file) { 75 $('#filelist').append( 76 '<div id="' + file.id + '">' 77 + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' 78 + '</div>'); 79 }); 80 up.refresh();
80 // Reposition Flash/Silverlight 81 }); 82 uploader.bind('UploadProgress', function (up, file) { 83 $('#' + file.id + " b").html(file.percent + "%"); 84 }); 85 86 uploader.bind('Error', function (up, err) { 87 $('#filelist').append("<div>Error: " + err.code 88 + ", Message: " + err.message 89 + (err.file ? ", File: " + err.file.name : "") 90 + "</div>" 91 ); 92 up.refresh(); // Reposition Flash/Silverlight 93 }); 94 uploader.bind('FileUploaded', function (up, file, response) { 95 jsonArray = $.parseJSON(response.response); 96 var html = '<input type="hidden" id="hidden" name="html5_uploader_name[]" value="' + jsonArray.filename + '">'; 97 html += '100%'; 98 $('#' + file.id + " b").html(html); 99 }); 100 101 102 103 var container = $('div.error'); 104 var forms = $('#DrForm'); 105 $(forms).validate({ 106 ignore: "hidden", 107 onkeyup: false, 108 errorClass: 'error', 109 validClass: 'valid', 110 errorContainer: container, 111 errorLabelContainer: "#error-container", 112 wrapper: 'div', 113 meta: "validate", 114 115 highlight: function(element) { 116 $(element).closest('div').addClass("f_error"); 117 }, 118 unhighlight: function(element) { 119 $(element).closest('div').removeClass("f_error"); 120 }, 121 submitHandler: function (element) { 122 $('#drsor').attr('disabled','disabled'); 123 124 $.post("/tr/prosses/ask.html", forms.serialize(), 125 function (data) { 126 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 127 alert('Mesajınız GönderilmiÅtir.'); 128 } 129 $("#drsor").hide(); 130 $("#SorSonuc").html('<div class="Ok" style="margin-top:10px; background-color:#f1f1f1; border-color:#ccc; border-style: solid; border-width: 1px;"><div style="padding:4px;">Mesajınız GönderilmiÅtir..</div></div>'); 131 132 }); 133 return false; 134 }, 135 errorPlacement: function (error, element) { 136 error.insertAfter(element); 137 }, 138 rules: { 139 'Name': { 140 required: true 141 }, 142 'Email': { 143 required: true, 144 email: true 145 }, 146 'Phone': { 147 required: true, 148 phone: true 149 }, 150 'kvkk' : {required : true}, 151 'Message': { 152 required: true 153 }, 154 'SecurityCode': { 155 required: true, 156 remote: { 157 url: '/tr/prosses/drsecuritycodecheck.html?SecurityCode=' + $('#SecurityCode').val() + '' 158 } 159 } 160 }, 161 messages: { 162 'Name': { 163 required: 'Adı Alanının Doldurunu' 164 }, 165 'Email': { 166 required: 'Eposta Adresiniz', 167 email: 'Geçerli E-posta Adresi Giriniz' 168 }, 169 'Phone': { 170 required: 'Telefon Numarası Giriniz', 171 phone: '10 Haneli Telefon Numaranız' 172 }, 173 'kvkk' : {required : 'Lütfen Kabul Ediniz.'}, 174 'Message': { 175 required: 'Mesajınızı Giriniz' 176 }, 177 'SecurityCode': { 178 required: 'Güvenlik Numarası Hatalı', 179 remote: 'Güvenlik Numarası Hatalı' 180 } 181 } 182 }); 183 } 184 185 186 187 188 if ($("#vote").length > 0) { 189 $(".voteSend").click(function () { 190 var veri = $('#vote').serialize(); 191 $.ajax({ 192 type: 'POST', 193 url: '/tr/vote/vote_return.html', 194 data: veri, 195 success: function (ajaxCevap) { 196 $('#anket_div').html(ajaxCevap); 197 } 198 }); 199 }); 200 } 201}); 202(function ($) { 203 function equalizeHeights(selector) { 204 var heights = new Array(); 205 // Loop to get all element heights 206 $(selector).each(function () { 207 // Need to let sizes be whatever they want so no overflow on resize 208 $(this).css('min-height', '0'); 209 $(this).css('max-height', 'none'); 210 $(this).css('height', 'auto'); 211 // Then add size (no units) to array 212 heights.push($(this).height()); 213 }); 214 // Find max height of all elements 215 var max = Math.max.apply(Math, heights); 216 // Set all heights to max height 217 $(selector).each(function () { 218 $(this).css('height', max + 'px'); 219 }); 220 } 221 $(window).resize(function () { 222 if ($('.titlediv ').length) { 223 equalizeHeights(".titlediv"); 224 } 225 }); 226 $(window).load(function () { 227 // Fix heights on page load 228 if ($('.our_s_inner .col-md-4 h5').length) { 229 equalizeHeights(".our_s_inner .col-md-4 h5"); 230 equalizeHeights(".our_s_inner .simple-article"); 231 } 232 if ($('.titlediv ').length) { 233 equalizeHeights(".titlediv"); 234 } 235 if ($('.contacts .text_white').length) { 236 equalizeHeights(".contacts .text_white"); 237 } 238 if ($('.f_image_item img').length) { 239 equalizeHeights(".f_image_item img"); 240 } 241 if ($('.f_image_item img').length) { 242 equalizeHeights(".f_image_item img"); 243 } 244 }); 245})(jQuery);
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.