File: /home/newsnnno/public_html/khaodeedee/blog/wp-content/themes/newspaperss/js/customizer.min.js
!function($){var api=wp.customize;api("blogname",(function(value){value.bind((function(to){$(".site-title a").text(to)}))})),api("blogdescription",(function(value){value.bind((function(to){$(".site-description").text(to)}))})),api("footerwid_row_control",(function(value){value.bind((function(to){$("#footer").find(".sidebar-footer").removeClass("large-12 large-6 large-4 large-3").addClass(to)}))})),wp.customize("header_textcolor",(function(value){value.bind((function(to){"blank"===to?($(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}),$("body").addClass("title-tagline-hidden")):(to.length||$("#newspaperss-custom-header-styles").remove(),$(".site-title, .site-description").css({clip:"auto",position:"relative"}),$("#site-title .site-title a, .site-description, .site-description a").css({color:to}),$("body").removeClass("title-tagline-hidden"))}))})),wp.customize.bind("preview-ready",(function(){wp.customize.preview.bind("section-highlight-header_options",(function(data){!0===data.expanded&&Foundation.SmoothScroll.scrollToLoc("#header-top",{threshold:50,duration:400,offset:100},(function(){console.log("scrolled")}))})),wp.customize.preview.bind("section-highlight-homepage_featuredsettings",(function(data){!0===data.expanded&&Foundation.SmoothScroll.scrollToLoc(".featured-section",{threshold:50,duration:400,offset:100},(function(){console.log("scrolled")}))})),wp.customize.preview.bind("section-highlight-footer_options",(function(data){!0===data.expanded&&Foundation.SmoothScroll.scrollToLoc("#footer",{threshold:50,duration:400,offset:100},(function(){console.log("scrolled")}))})),wp.customize.preview.bind("section-highlight-homepage_latestpostsettings",(function(data){!0===data.expanded&&Foundation.SmoothScroll.scrollToLoc("#blog-content",{threshold:50,duration:400,offset:100},(function(){console.log("scrolled")}))}))}))}(jQuery),jQuery(window).ready((function(){jQuery(".add_widget_home").on("click",(function(e){e.preventDefault(),wp.customize.preview.send("focus-frontsidebar")})),jQuery(".add_widget_homeside").on("click",(function(e){e.preventDefault(),wp.customize.preview.send("focus-homesidebar")}))}));