/*! bakes-and-cakes 1.0.0 2020-05-07 1:26:56 PM */ function initTabs(){jQuery("ul.tabset").contentTabs({tabLinks:"a",autoRotate:!1,effect:"fade"})}jQuery(document).ready(function(t){var e,a="1"==bakes_and_cakes_data.auto,n="1"==bakes_and_cakes_data.loop,i="1"==bakes_and_cakes_data.pager,s="1"==bakes_and_cakes_data.rtl;"slide"==bakes_and_cakes_data.animation?e="":"fade"==bakes_and_cakes_data.animation&&(e="fadeOut"),t("#slider").owlCarousel({items:1,margin:0,animateOut:e,autoplaySpeed:bakes_and_cakes_data.a_speed,autoplay:a,loop:n,autoplayTimeout:bakes_and_cakes_data.speed,dots:i,rtl:s,mouseDrag:!1,nav:!1}),t("#site-navigation ul li a").focus(function(){t(this).parents("li").addClass("hover")}).blur(function(){t(this).parents("li").removeClass("hover")}),t(".btn-top").click(function(){return t("html, body").animate({scrollTop:0},600),!1}),t(".map").click(function(){t(".map iframe").css("pointer-events","auto")}),t(".map").mouseleave(function(){t(".map iframe").css("pointer-events","none")}),t("#carousel").owlCarousel({margin:15,nav:!0,dots:!1,rtl:s,mouseDrag:!1,responsive:{0:{items:1},768:{items:4},1200:{items:5}}}),t(".featured-slider").owlCarousel({items:4,margin:0,autoplaySpeed:600,autoplayTimeout:6e3,dots:!1,rtl:s,mouseDrag:!1,nav:!0,responsive:{0:{items:1},767:{items:3},992:{items:4}}}),t(".tabset").owlCarousel({items:5,margin:20,autoplaySpeed:600,autoplayTimeout:6e3,rtl:s,dots:!1,nav:!0,responsive:{0:{items:3},769:{items:5}}}),t(".img-btn").click(function(e){id=t(this).attr("id"),console.log(id),t(".img-btn").removeClass("current"),t(this).addClass("current"),t.ajax({type:"post",url:bakes_and_cakes_data.url,data:{action:"bakes_and_cakes_team_ajax",id:id},beforeSend:function(){t("#loader").fadeIn(500)},success:function(e){t(".our-staff .holder").html(e)},complete:function(){t("#loader").fadeOut(500)}})}),t(window).scroll(function(){100'),t(".main-navigation").prepend('
'),t(".main-navigation ul li .angle-down").click(function(){t(this).prev().slideToggle(),t(this).toggleClass("active")}))}),jQuery(function(){initTabs()}),function(f){f.fn.contentTabs=function(e){var h=f.extend({activeClass:"active",addToParent:!1,autoHeight:!1,autoRotate:!1,checkHash:!1,animSpeed:400,switchTime:1e4,effect:"none",tabLinks:"a",attrib:"href",event:"click"},e);return this.each(function(){var o,d,c,e,t=f(this),l=f(),i=t.find(h.tabLinks),s=i.parent(),r=i.eq(0);function u(e,t){d=!0;var a=e.data("ctab"),n=t.data("ctab");r=t,o=n,(h.addToParent?s:i).removeClass(h.activeClass),(h.addToParent?t.data("cparent"):t).addClass(h.activeClass),p(a,!0),v[h.effect].hide({speed:h.animSpeed,tab:a,complete:function(){p(n.removeClass(b).width("")),v[h.effect].show({speed:h.animSpeed,tab:n,complete:function(){a.is(n)||a.width(a.width()).addClass(b),p(n,d=!1),m()}})}})}function p(e,t){var a,n,i=e&&e.length?e:o;h.autoHeight&&i&&(c.stop(),!1===t?c.css({height:""}):(a=i.attr("style"),i.show().css({width:i.width()}),n=i.outerHeight(!0),a?i.attr("style",a):i.removeAttr("style"),!0===t?c.css({height:n}):c.animate({height:n},{duration:h.animSpeed})))}function m(){h.autoRotate&&1')[0],t="."+b;t+="{position:absolute !important;left:-9999px !important;top:-9999px !important;display:block !important}",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),f("head").append(e)});var v={none:{show:function(e){e.tab.css({display:"block"}),e.complete&&e.complete()},hide:function(e){e.tab.css({display:"none"}),e.complete&&e.complete()}},fade:{show:function(e){e.fast&&(e.speed=1),e.tab.fadeIn(e.speed),e.complete&&setTimeout(e.complete,e.speed)},hide:function(e){e.fast&&(e.speed=1),e.tab.fadeOut(e.speed),e.complete&&setTimeout(e.complete,e.speed)}},slide:{show:function(e){var t=e.tab.show().css({width:e.tab.width()}).outerHeight(!0),a=f('
').insertBefore(e.tab).append(e.tab);a.css({width:"100%",overflow:"hidden",position:"relative"}),e.tab.css({marginTop:-t,display:"block"}),e.fast&&(e.speed=1),e.tab.animate({marginTop:0},{duration:e.speed,complete:function(){e.tab.css({marginTop:"",width:""}).insertBefore(a),a.remove(),e.complete&&e.complete()}})},hide:function(e){var t=e.tab.show().css({width:e.tab.width()}).outerHeight(!0),a=f('
').insertBefore(e.tab).append(e.tab);a.css({width:"100%",overflow:"hidden",position:"relative"}),e.fast&&(e.speed=1),e.tab.animate({marginTop:-t},{duration:e.speed,complete:function(){e.tab.css({display:"none",marginTop:"",width:""}).insertBefore(a),a.remove(),e.complete&&e.complete()}})}}};1024