var scrool_t=$(window).scrollTop();
console.log(scrool_t);
if(scrool_t>0){
var body=$("html, body");
body.stop().animate({scrollTop:scrool_t+1}, 100, 'swing', function(){ });
}
$(document).on('submit','.arsol-site-form',function(e){
$(this).find('.site-form-submit').attr('data-text',$(this).find('.site-form-submit').val());
$(this).find('.site-form-submit').val('Lütfen Bekleyin');
$(this).find('.site-form-submit').prop('disabled',true);
var redirect_page=$(this).find('input[name="redirect_page"]').val();
var hata=0;
var items_array={};
items_array['Form Başlık']=$(this).find('input[name="subject_form"]').val()+''+$(this).find('.add_title_val').val();
$(this).find('.form-control').each(function(index){
var data_type=$(this).attr('data-type');
var elem_id=$(this).attr('id');
var data_filter=$(this).attr('data-filter');
var data_placeholder=$('label[for="'+elem_id+'"]').html();
var required=$(this).prop('required');
var this_value=$(this).val();
if(required==true){
if(form_element_control(this_value,data_filter)){
$('#'+elem_id+'_result').html('');
$('#'+elem_id+'').parent().removeClass('hata');
items_array[data_placeholder]=this_value;
}else{
$('#'+elem_id+'_result').html('Girdiğiniz Veri Hatalıdır');
$('#'+elem_id+'').parent().addClass('hata');
hata++;
}}else{
$('#'+elem_id+'_result').html('');
items_array[data_placeholder]=this_value;
}});
if(hata>0){
$(this).find('.site-form-submit').val($(this).find('.site-form-submit').attr('data-text'));
$(this).find('.site-form-submit').prop('disabled',false);
}else{
$.ajax({
type: "POST",
url: 'https://www.doktorkorkutarslan.com/wp-admin/admin-ajax.php',
dataType: 'json',
data:{
'action': 'bsGetAjax',
'arsol-site-form':"true",
'items_array':items_array,
},
success: function(json){
if(json.status=='success'){
window.location.href=redirect_page;
}else{
alert('Hata Oluştu');
$(this).find('.site-form-submit').val($(this).find('.site-form-submit').attr('data-text'));
$(this).find('.site-form-submit').prop('disabled',false);
}}
});
}
e.preventDefault();
});
$(document).on('submit','#offer_form',function(e){
e.preventDefault();
var fullname=$('#fullname').val();
var mobile_number=$('#mobile_number').val();
if(fullname.length<2||mobile_number.length!=11){
alert('Telefon Numarası 05XXXXXXX formatında olmalı. İsim ve soyisim alanı minimum 3 karakter olmalı');
}else{
$('#send_button').css('opacity', 1).attr('disabled', false).text('Lütfen Bekleyin...');
$.ajax({
type:'POST',
url:'https://www.doktorkorkutarslan.com/wp-admin/admin-ajax.php',
dataType: 'json',
data: 'action=bsGetAjax&offer_form=true&'+$('#offer_form').serialize(),
success: function(response){
console.log(response);
var div_id='#offerForm';
var form_id='#offer_form';
if(response.status=='success'){
$(div_id + ' ' + form_id).remove();
$(div_id + ' .success-form').show();
$('#offerFormWrapper p').text('Başvurunuz alınmıştır doktorlarımız sizinle en kısa sürede iletişime geçeceklerdir.');
window.location.href='https://www.doktorkorkutarslan.com/tesekkurler';
}else{
$('#send_button').css('opacity', 1).attr('disabled', false).text('HEMEN BAŞVURUN');
}}
});
}});
function form_element_control(this_value,data_filter){
var state=true;
if(data_filter==="phone_number"){
this_value=this_value.replace(" ","");
this_value=this_value.replace(")","");
this_value=this_value.replace("(","");
this_value=this_value.replace("+","");
if(this_value.length==10||this_value.length==11){}else{state=false;}}
return state;
}
$.fn.isOnScreen=function(){
var win=$(window);
var viewport={
top:win.scrollTop(),
left:win.scrollLeft()
};
viewport.right=viewport.left + win.width();
viewport.bottom=viewport.top + win.height();
var bounds=this.offset();
bounds.right=bounds.left + this.outerWidth();
bounds.bottom=bounds.top + this.outerHeight();
return (!(viewport.right < bounds.left||viewport.left > bounds.right||viewport.bottom < bounds.top||viewport.top > bounds.bottom));
};
$(document).on('click','.read-continue',function(){
var target_div=$(this).attr('data-id');
var body=$("html, body");
body.stop().animate({scrollTop:$(target_div).offset().top-50}, 1000, 'swing', function(){ });
});
$(document).on('click','.to-faq-btn',function(){
var target_div='#accordion';
var body=$("html, body");
body.stop().animate({scrollTop:$(target_div).offset().top-100}, 1000, 'swing', function(){ });
});
$(document).on('click','ul.site-tabs li',function(){
var target_id=$(this).parent().attr('data-id');
$(this).parent().find('li').removeClass('active');
$(this).addClass('active');
var target_pane=$(this).attr('data-id');
$('#'+target_id+' .site-tab-pane').removeClass('active');
$('#'+target_pane+'').addClass('active');
$('#'+target_id+' .site-tab-pane').find('.lazyimage').Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$('#'+target_id+' .site-tab-pane').find('.lazyimage').removeClass('lazyyukle');
});
$(document).on('click','.get_comment',function(){
var siradaki_id=$(this).attr('data-id');
var son_id=$(this).attr('data-end');
if($(window).width()<768){
$('.comment-images-area').find('img').remove();
}
for(var i=siradaki_id;i<son_id;i++){
var image_url=$('input[name="comments_'+i+'"]').val();
if($(window).width()<768){
$('.comment-images-area').append('<div class="item"><img src="'+image_url+'" class="site-img image-comment"></div>');
}else{
$('.comment-images-area').append('<img src="'+image_url+'" class="site-img image-comment">');
}}
$('.comment-images-area').parent().append('<i class="fa fa-angle-right slick-video-next visible-xs" style=""></i>');
$('.comment-images-area').parent().append('<i class="fa fa-angle-left slick-video-prev visible-xs" style=""></i>');
$(this).remove();
if($(window).width()<768){
$('.comment-images-area').slick({
slidesToShow: 1,
infinite:false,
prevArrow: $('.comment-images-area').parent().find('.slick-video-prev'),
nextArrow: $('.comment-images-area').parent().find('.slick-video-next'),
variableWidth: false,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
slidesToShow: 1
}},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: false,
slidesToShow: 1
}}
]
});
}});
$(document).on('click','.teklifAlClass',function(){
$('#doctors-popup').find('.lazyimage').Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$('#doctors-popup').find('.lazyimage').removeClass('lazyyukle');
});
$(window).scroll(function (event){
$(".lazyimage").each(function(index){
if($(this).isOnScreen()==true){
$(this).Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$(this).removeClass('lazyyukle');
}else{
}});
if($('.slick-video').length>0){
$(".slick-video").each(function(index){
var class_name=$(this).attr('class');
if(class_name!=='slick-video slick-initialized slick-slider'){
$(this).slick({
slidesToShow: 1,
infinite:false,
prevArrow: $(this).parent().find('.slick-video-prev'),
nextArrow: $(this).parent().find('.slick-video-next'),
variableWidth: true,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
slidesToShow: 1
}},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
slidesToShow: 1
}}
]
});
}else{
}});
}
if($('.slick-qua').length>0){
$(".slick-qua").each(function(index){
var class_name=$(this).attr('class');
if(class_name!=='slick-qua question-slider slick-initialized slick-slider slick-dotted'){
$(this).slick({
slidesToShow: 1,
infinite:false,
prevArrow: false,
nextArrow: false,
variableWidth: false,
dots:true,
});
}else{
}});
}});
$(".icon-button").hover(function(){
$(this).find('.lazyimage').Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$(this).find('.lazyimage').removeClass('lazyyukle');
});
$(document).on('click','.slick-video-next',function(){
$(this).parent().find('.lazyimage').each(function(index){
$(this).Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$(this).removeClass('lazyyukle');
});
});
$(document).on('click','.slick-video-prev',function(){
$(this).parent().find('.lazyimage').each(function(index){
$(this).Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$(this).removeClass('lazyyukle');
});
});
$(".slick-video").on("beforeChange", function (){
$(this).find('.lazyimage').each(function(index){
$(this).Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
}});
$(this).removeClass('lazyyukle');
});
});
if($("#manset-grsl").length>0){
$("#manset-grsl").Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
},
beforeLoad: function(element){
$(this).css('height',444);
},
});
$("#manset-grsl").removeClass('lazyyukle');
}
if($("#manset-logo").length>0){
$("#manset-logo").Lazy({
scrollDirection: 'vertical',
effect: 'fadeIn',
visibleOnly: true,
placeholder:"img/grey.gif",
onError: function(element){
console.log('error loading ' + element.data('src'));
},
beforeLoad: function(element){
$(this).css('height',444);
},
});
$("#manset-logo").removeClass('lazyyukle');
}
$('#form_ask_question').submit(function(e){
e.preventDefault();
$ths=$(this);
if($('input[name="phone"]').val()){
if(form_element_control($('input[name="phone"]').val(),'phone_number')){
$ths.prepend('<div class="alert alert-info"><div>Lütfen bekleyin...</div></div>');
$ths.find('input[name="submit"]').attr('disabled', 'disabled');
if(1){
$.ajax({
type: "POST",
url: 'https://www.doktorkorkutarslan.com/wp-admin/admin-ajax.php',
dataType: 'json',
data: 'action=bsGetAjax&ask_question=true&'+$('#form_ask_question').serialize(),
success: function(json){
$ths.find('.alert.alert-info').remove();
if(json.status=='success'){
$ths.prepend('<div class="alert alert-success"><i class="fa fa-check"></i> Talebiniz gönderilmiştir.</div>');
window.location.href='https://www.doktorkorkutarslan.com/tesekkurler/';
}else{
alert(json.message);
$ths.find('button').removeAttr('disabled');
}}
});
}}else{
alert('Hatalı Telefon Numarası Girildi');
}}else{
$ths.prepend('<div class="alert alert-info"><div>Lütfen bekleyin...</div></div>');
$ths.find('input[name="submit"]').attr('disabled', 'disabled');
if(1){
$.ajax({
type: "POST",
url: 'https://www.doktorkorkutarslan.com/wp-admin/admin-ajax.php',
dataType: 'json',
data: 'action=bsGetAjax&ask_question=true&'+$('#form_ask_question').serialize(),
success: function(json){
$ths.find('.alert.alert-info').remove();
if(json.status=='success'){
$ths.prepend('<div class="alert alert-success"><i class="fa fa-check"></i> Talebiniz gönderilmiştir.</div>');
window.location.href='https://www.doktorkorkutarslan.com/tesekkurler/';
}else{
alert(json.message);
$ths.find('button').removeAttr('disabled');
}}
});
}}
return false;
});
function b(){
$(".digital-item.tile2").height("auto"), $(".digital-item.tile2:nth-child(2n-1)").each(function(){
var a=$(this),
b=$(this).index(),
c=b + 2,
d=$(this).height(),
e=$(".digital-item.tile2:nth-child(" + c + ")").height(),
f=$(".digital-item.tile2:nth-child(" + c + ")");
console.log(e), console.log(d), d >=e ? (a.height(d), f.height(d)):(a.height(e), f.height(e))
})
}
function i(){
for (var a=3, b=0, c=1; c < a; c++){
var d=h[c];
h[c]=h[b], h[b]=d, b++
}}
function k(){
if($("body").hasClass("home")){
var a=$(".section2.col4-section .container-wrapper .wow"),
b=0;
a.children(".center").height("auto"), a.each(function(){
b < a.children(".center").height()&&(b=a.children(".center").height())
}), a.children(".center").height(b)
}}
function p(){
0!=$(".sub-nav.sub-nav-blog>.container").length&&(m=$(".sub-nav.sub-nav-blog>.container>ul li").height(), n=$(window).width(), o=$(".sub-nav.sub-nav-blog>.container").offset().top, $(window).width() < 1024 ? (m > 56&&(m=56), $(".sub-nav.sub-nav-blog>.container").height(m)):$(".sub-nav.sub-nav-blog>.container").height("auto"))
}
function q(){
if(m > 56&&(m=56), $(window).width() < 1024){
var a=parseInt($(".sub-nav.sub-nav-blog>.container>ul li a.active").parent().attr("data-index") - 1);
$(".sub-nav.sub-nav-blog>.container>ul").css({
top: -m * a
})
}}
function r(){
var a=0,
b=["white", "gray"],
d=$(".tile2"),
g=(d.parent(), d.length, 0);
d.each(function(){
1==a ? (a=0, g++, g > 2&&(g=0)):a++, $(this).addClass(b[g])
})
}
if($(window).width()<767&&0){
if($('.readmore.content-wrapper').length){
var readmore_Height;
if($(window).width() > 600){
readmore_Height=366;
}else{
readmore_Height=213;
}
$('.readmore.content-wrapper').each(function(index, el){
var current_Readmore_Height=$(el).height();
if($(window).width() > 600){
readmore_Height=366;
}else{
}
if(current_Readmore_Height > readmore_Height){
$(el).height(readmore_Height).after('<div class="btns"><a href="#" class="morelink btn-readmore-more" data-id="'+readmore_Height+'">Devamını Oku »</a><a href="#" data-id="'+readmore_Height+'" class="morelink btn-readmore-less" style="display: none;">Kısalt »</a></div>');
}
$('.btn-readmore-more').on('click', function(event){
event.preventDefault();
$(this).parent('.btns').prev(el).css('height', '');
$(this).hide().siblings('.morelink').show();
});
$('.btn-readmore-less').on('click', function(event){
event.preventDefault();
$(this).parent('.btns').prev(el).height($(this).attr('data-id'));
$(this).hide().siblings('.morelink').show();
});
});
}}
/*
if($(".treatments.about-treatments div.col3 .list-content").length>0){
var c=0;
$(".treatments.about-treatments div.col3 .list-content").each(function(){
var a=$(this);
a.height("auto"), a.height() > c&&(c=a.height())
}), $(".treatments.about-treatments div.col3 .list-content").height(c), $(".treatments.about-treatments div.col3").height(c + 300), $(window).resize(function(){
c=0, $(".treatments.about-treatments div.col3 .list-content").each(function(){
var a=$(this);
a.height("auto"), a.height() > c&&(c=a.height())
}), $(".treatments.about-treatments div.col3 .list-content").height(c), $(".treatments.about-treatments div.col3").height(c + 300)
});
}
if($(".col2-section .input.btn").length>0){
$(window).width() < 1024 ? $(".col2-section .input.btn").attr("value", "Send"):$(".col2-section .input.btn").attr("value", ""), $(window).resize(function(){
$(window).width() < 1024 ? $(".col2-section .input.btn").attr("value", "Send"):$(".col2-section .input.btn").attr("value", "")
});
}
$(".mobile-menu-icon").click(function(){
$(this).toggleClass("white-bg"), $(".nav-list").slideToggle();
var old_href=$('.mobil-bottom-menu-action a').attr('href');
if(old_href!=="javascript:void(0);"){
var onclick_text="gtag_report_conversion('"+$('.mobil-bottom-menu-action a').attr('href')+"')";
var href_text="javascript:void(0);";
$('.mobil-bottom-menu-action a').attr('href',href_text);
$('.mobil-bottom-menu-action a').attr('onclick',onclick_text);
}});
*/
$(window).width() < 1024&&($(" .nav-dropdown >ul>.menu-item > a").each(function(){
$(this).append("<div class='square'><span class='plus'><i class='fa fa-chevron-down'></i></span><span class='minus'><i class='fa fa-chevron-up'></i></span></div>")
}), $(".nav .square").click(function(a){
a.preventDefault(), $(this).toggleClass("square1"), $(this).parent("a").toggleClass("menu-item-click"), $(this).parent("a").siblings(".nav-column-links").slideToggle()
})), $(".mobile-menu-icon").click(function(){
$(this).toggleClass("white-bg"), $(".nav-list").slideToggle();
var old_href=$('.mobil-bottom-menu-action a').attr('href');
if(old_href!=="javascript:void(0);"){
var onclick_text="gtag_report_conversion('"+$('.mobil-bottom-menu-action a').attr('href')+"')";
var href_text="javascript:void(0);";
$('.mobil-bottom-menu-action a').attr('href',href_text);
$('.mobil-bottom-menu-action a').attr('onclick',onclick_text);
}});$(".nav-item.search-icon").click(function(){
$(".search-section").slideDown()
}), $(".search-section .close").click(function(){
$(".search-section").slideUp()
}), $(".checker-board .tile").click(function(){
$(this).children(".front").toggleClass("front1"), $(this).children(".back").toggleClass("back1")
}), $(".nav-list .menu-item-has-children").click(function(){});
var h=($(".tile").length, ["white", "gray"]),
j=0;
if($(".tile").each(function(){
$(this).addClass(h[j]), j++, 3==j&&(j=0, i())
}), $(".popup-trigger").bind("click", function(a){
a.preventDefault(), $(".popup-container").bPopup({
modalColor: "#282536",
onClose: function(){
var a=$("#player").prop("src");
a=a.replace("&autoplay=1", ""), $("#player").prop("src", ""), $("#player").prop("src", a)
}})
}), k(), $(window).resize(function(){
k()
}), $("ul.nav-list-mobile-view li.menu-item-has-children>a").each(function(){
$(this).append("<div class='square'><span class='plus'><i class='fa fa-chevron-down'></i></span><span class='minus'><i class='fa fa-chevron-up'></i></span></div>")
}), $("li.menu-item-has-children>a>.square").bind("click", function(a){
a.preventDefault(), $(this).toggleClass("square1"), $(this).parent("a").toggleClass("menu-item-click"), $(this).parent("a").siblings(".sub-menu").slideToggle()
}), $(".sub-nav.sub-nav-blog>.container").prepend('<span class="filter-toggle"></span>'), $(".sub-nav.sub-nav-blog>.container>ul li").each(function(a){
$(this).attr("data-index", a + 1)
}), 0!=$(".sub-nav.sub-nav-blog>.container").length) var l=$(".sub-nav.sub-nav-blog>.container>ul li").length,
m=$(".sub-nav.sub-nav-blog>.container>ul li").height(),
n=$(window).width(),
o=$(".sub-nav.sub-nav-blog>.container").offset().top;
if($(".sub-nav.sub-nav-blog>.container").height($(window).width() < 1024 ? m:"auto"), $(window).resize(function(){
p()
}), q(), $(window).resize(function(){
q()
}), $(".filter-toggle").click(function(){
if(n < 1024&&$(this).hasClass("active"))
if($("html,body").animate({
scrollTop: o - 44
}), p(), $(this).hasClass("active")){
if($(this).removeClass("active"), !$(".sub-nav.sub-nav-blog>.container>ul li:first-child a").hasClass("active")){
var a=parseInt($(".sub-nav.sub-nav-blog>.container>ul li a.active").parent().attr("data-index") - 1);
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: -m * a
})
}
$(".sub-nav.sub-nav-blog>.container").animate({
height: m
}, function(){
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: -m * a
})
})
} else $(".sub-nav.sub-nav-blog>.container").animate({
height: m * l
}, function(){
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: 0
})
}), $(this).addClass("active")
}), $(".sub-nav.sub-nav-blog>.container>ul li a.active").click(function(){
if(n < 1024&&$(this).hasClass("active"))
if(p(), $("html,body").animate({
scrollTop: o - 44
}), $(".filter-toggle").hasClass("active")){
if($(".filter-toggle").removeClass("active"), !$(".sub-nav.sub-nav-blog>.container>ul li:first-child a").hasClass("active")){
var a=parseInt($(".sub-nav.sub-nav-blog>.container>ul li a.active").parent().attr("data-index") - 1);
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: -m * a
})
}
$(".sub-nav.sub-nav-blog>.container").animate({
height: m
}, function(){
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: -m * a
})
})
} else $(".sub-nav.sub-nav-blog>.container").animate({
height: m * l
}, function(){
$(".sub-nav.sub-nav-blog>.container>ul").animate({
top: 0
})
}), $(".filter-toggle").addClass("active")
}), $(".btn-freeConsultation").bind("click", function(a){
a.preventDefault(), $(this).hasClass("active") ? ($(this).removeClass("active"), $(".free-consultation").slideUp()):($(this).addClass("active"), $("body, html").animate({
scrollTop: 0
}, function(){
$(".free-consultation").slideDown()
}))
}), $(".other-treatments").bind("click", function(a){
a.preventDefault(), $(".other-treatments").hasClass("active") ? ($(".other-treatments").removeClass("active"), $("#single-treatments").slideUp()):($(".other-treatments").addClass("active"), $("#single-treatments").slideDown())
}), $(".btn-freeConsultation-close").on("click", function(a){
a.preventDefault(), $(".free-consultation").slideUp(), $(".btn-freeConsultation").removeClass("active")
}), 0!=$(".tile2").length&&r(), $(".digital-item .video").bind("click", function(){
var a=$(this).data("popup");
$("." + a).bPopup({
modalColor: "#282536"
})
}), $(".testimonial-content .video").bind("click", function(){
var a=$(this).data("popup");
$("." + a).bPopup({
modalColor: "#282536"
})
}), 0!=$(".reviewTile-details").length&&$(window).width() > 1023){
var s=0;
$(".reviewTile-details").each(function(){
s=0, $(this).height() > s&&(s=$(this).height())
}), $(".reviewTile-details").height(s)
}
$(window).resize(function(){
0!=$(".reviewTile-details").length&&$(window).width() > 1023&&($(".reviewTile-details").height("auto"), $(".reviewTile-details").each(function(){
s=0, $(this).height() > s&&(s=$(this).height())
}), $(".reviewTile-details").height(s))
}), $(".page-template-template-about .treatments.inverse-color a .color-overlay").bind("click", function(){
$(this).parent().children(".list-content").hasClass("active") ? ($(this).parent().children(".list-content").stop().animate({
opacity: "0"
}, function(){
$(this).css({
"z-index": "0"
})
}), $(this).parent().children(".list-content").removeClass("active")):($(this).parent().children(".list-content").stop().animate({
opacity: "1"
}, function(){
$(this).css({
"z-index": "1"
})
}), $(this).parent().children(".list-content").addClass("active"))
});
$("form.wpcf7-form select[name='time']").attr("disabled", "disabled"), $("form.wpcf7-form select[name='day']").attr("disabled", "disabled"), $("form.wpcf7-form select[name='when']").change(function(){
var a=$(this).val();
"Sonra Ara"==a ? ($("select[name='time']").removeAttr("disabled"), $("select[name='day']").removeAttr("disabled")):($("select[name='time']").attr("disabled", "disabled"), $("select[name='day']").attr("disabled", "disabled"))
}), $(window).width() > 600&&$("#accordion div").first().css("display", "block"), $(window).width() < 600&&$("#accordion a").first().find("i").removeClass("fa-chevron-up").addClass("fa-plus"), $("#accordion a").on("click", function(a){
a.preventDefault();
var b=$(this).attr("href");
$(b).slideDown("fast"), $("#accordion a i").removeClass("fa-minus").addClass("fa-plus"), $(this).find("i").removeClass("fa-plus").addClass("fa-minus"), $("#accordion div").not(b).slideUp("fast")
}), $("a.uk-modal-open").on("click", function(a){
a.preventDefault(), $($(this).attr("href")).fadeIn(), $(".bg-overlay").fadeIn()
}), $("a.uk-modal-close, .bg-overlay").on("click", function(a){
a.preventDefault(), $(".uk-modal, .bg-overlay, .mobile-whatsapp-modal").fadeOut()
})
jQuery(function(){
var a=2
, b="on";
$("a#load-more-comment").click(function(){
var text=$(this).data('text');
var cat_id=$(this).data('cat-id');
return "on"==b ? (b="off",
jQuery("a#load-more-comment").html('<i class="fa fa-spin fa-cog"></i> Yükleniyor...'),
jQuery("#all-testimonials").append(jQuery('<div class="all-testimonials" id="p-' + a + '">').load("?kat=" + cat_id + "&c=" + a + " .all-testimonials > *", function(){
a++,
b="on",
jQuery("a#load-more-comment").html("Daha Fazla " + text + " Yükle")
}))):jQuery("a#load-more-comment").html("Daha Fazla " + text + " Bulunamadı").css({ background: '#b83937', color: '#fff' }),
!1
}),
jQuery(document).ajaxComplete(function(a, c){
if($('.all-testimonials').last().text()==''){
b='off';
}})
});
$(document).ready(function(){
});