!function(t){["header_content_section","counter_section","service_section","about_section","testimonial_section","cta_section","project_section","latest_blog_section","instagram_section"].forEach(function(o,i){wp.customize.bind("preview-ready",function(){t(".panel-placeholder").hide(),wp.customize.preview.bind(o,function(i){t("body").hasClass("home")&&!0===i.expanded&&t("html, body").animate({scrollTop:t("#biopexel_"+o).position().top})})})}),wp.customize("blogname",function(o){o.bind(function(o){t(".site-title a").text(o)})}),wp.customize("blogdescription",function(o){o.bind(function(o){t(".site-description").text(o)})}),wp.customize("header_textcolor",function(o){o.bind(function(o){"blank"===o?t(".site-title a, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):t(".site-title a, .site-description").css({clip:"auto",position:"relative"})})}),wp.customize("biopexel_theme_options[header_title_color]",function(o){o.bind(function(o){"blank"===o?t(".site-title a").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):(t(".site-title a").css({clip:"auto",position:"relative"}),t(".site-title a").css({color:o}))})}),wp.customize("biopexel_theme_options[header_tagline_color]",function(o){o.bind(function(o){"blank"===o?t(".site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):(t(".site-description").css({clip:"auto",position:"relative"}),t(".site-description").css({color:o}))})}),wp.customize("biopexel_theme_options[colorscheme]",function(o){o.bind(function(o){t("body").removeClass("colors-light colors-dark colors-custom").addClass("colors-"+o)})}),wp.customize("biopexel_theme_options[colorscheme_hue]",function(o){o.bind(function(o){var i=t("#custom-theme-colors"),e=i.data("color"),s=i.html();s=s.split(e).join(o),i.html(s).data("color",o)})})}(jQuery);