!function(e){wp.customize("blogname",function(o){o.bind(function(o){e(".site-title a").text(o)})}),wp.customize("blogdescription",function(o){o.bind(function(o){e(".site-description").text(o)})}),["slider","posts-carousel","trending","recent-posts","advertisement-area","latest-posts","subscription","primary-slider"].forEach(function o(t,i){wp.customize.bind("preview-ready",function(){e(".panel-placeholder").hide(),t=t.replace(/-/g,"_"),wp.customize.preview.bind(t,function(o){e("body").hasClass("home")&&!0===o.expanded&&e("html, body").animate({scrollTop:e("#adore_blog_"+t+"_section").position().top})})})}),wp.customize("adore_blog_site_layout",function(o){o.bind(function(o){"boxed"===o?(e("body").addClass("boxed-layout"),e("body").removeClass("frame-layout"),e("body").removeClass("wide-layout")):"wide"===o?(e("body").addClass("wide-layout"),e("body").removeClass("boxed-layout"),e("body").removeClass("frame-layout")):"frame"===o&&(e("body").addClass("frame-layout"),e("body").removeClass("boxed-layout"),e("body").removeClass("wide-layout"))})}),wp.customize("header_textcolor",function(o){o.bind(function(o){"blank"===o?e(".site-title").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):e(".site-title a").css({color:o})})}),wp.customize("adore_blog_header_tagline",function(o){o.bind(function(o){"blank"===o?e(".site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):e(".site-description").css({color:o})})}),wp.customize("adore_blog_header_text_display",function(o){o.bind(function(o){o?e("#site-identity").css({display:"block"}):e("#site-identity").css({display:"none"})})})}(jQuery);