Merhaba
` <script>
$(document).ready(function () {
//$("#mesgallery").unitegallery({ slider_enable_zoom_panel: false, slider_control_zoom: false, thumb_width:160, thumb_height:106});
if($("#mesgallery").length>0){
$("#mesgallery").unitegallery({ slider_enable_zoom_panel: false, slider_control_zoom: false, gallery_width:750,gallery_height:620, gallery_images_preload_type:"visible"});
}
$("#ctl00_ContentPlaceHolder1_txtCheckOut2").datepicker({
dateFormat : "dd.mm.yy",
rangeSelect:true,
minDate:+7,
onSelect: function(selectedDate){
var start = $('#ctl00_ContentPlaceHolder1_txtCheckIn2').datepicker('getDate');
var end = $('#ctl00_ContentPlaceHolder1_txtCheckOut2').datepicker('getDate');
var total = start && end ? (end.getTime() - start.getTime()) / 1000 / 60 / 60 / 24 : '';
Musaitlik1($('#ctl00_ContentPlaceHolder1_txtCheckIn2').val(),$('#ctl00_ContentPlaceHolder1_txtCheckOut2').val(),323);
},
beforeShowDay: function(selectedDate){
var string = jQuery.datepicker.formatDate('dd.mm.yy', selectedDate);
if ($.inArray(string, array) < 0 && $.inArray(string, array1) < 0 && $.inArray(string, array2) < 0 && $.inArray(string, array3) < 0 ) {
return [true,"acikgun","Kiralamaya Müsait"];
} else {
if($.inArray(string, array1) > -1){
return [false,"reserved","Opsiyonda"];
}else{
if($.inArray(string, array2) > -1){
return [true,"ilkgun","Kiralamaya Müsait"];
}else if($.inArray(string, array3) > -1){
return [true,"songun","Kiralamaya Müsait"];
} else {
return [false,"kapaligun","Kiralamaya Müsait Değil"];
}
}
}
}
});
});
if ($('#ctl00_ContentPlaceHolder1_txtQueryVilla').length){
var input = document.getElementById("ctl00_ContentPlaceHolder1_txtQueryVilla");
input.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode === 13) {
document.location.href = '/villa-bul?villa='+input.value;
// document.getElementById("ctl00_ContentPlaceHolder1_btnVillaAramaci").click();
}
});
}
</script>`
Kod bu arkadaşlar ben
$(document).ready(function () {
//$("#mesgallery").unitegallery({ slider_enable_zoom_panel: false, slider_control_zoom: false, thumb_width:160, thumb_height:106});
if($("#mesgallery").length>0){
$("#mesgallery").unitegallery({ slider_enable_zoom_panel: false, slider_control_zoom: false, gallery_width:750,gallery_height:620, gallery_images_preload_type:"visible"});
}
sadece bu kısmın olmasını istiyorum bunun aşağısını komple siliyorum lakin bu sefer calişmiyor. sanırım ince bir ayarı var silerken parantezleri karıştırıyorum. silebilir misiniz?