function ucwords(t){return(t+"").replace(/^([a-z])|\s+([a-z])/g,function(t){return t.toUpperCase()})}jQuery(document).ready(function(){var t=jQuery,s=wp.customize.settings.url.allowed[0];wp.customize("athlonx_color_palette",function(n){n.bind(function(n){t("link#athlonx-style-css").attr("href",s+"/wp-content/themes/athlonx/assets/css/style-"+n+".css?ver=5.5")})}),wp.customize("athlonx_font_family",function(s){s.bind(function(s){s=ucwords(s),t("link#google-font-style-css").attr("href","https://fonts.googleapis.com/css?family="+s+":300,400,700,900&display=swap&ver=5.5"),t("html").css({"font-family":s+", sans-seirf"})})}),wp.customize("athlonx_container_width",function(s){s.bind(function(s){t(".container").css({"max-width":s+"px"}),t("div.post .post-meta, div.post .post-related, .alignfull, .post-comments").css({"margin-left":"calc(("+s+"px - 4rem - 100vw) / 2)"}),t(".alignwide").css({"margin-left":"calc(("+s+"px - 4rem - 1440px) / 2)"}),t(".footer-gallery .container .widgets").css({width:s-64+"px"})})}),wp.customize("athlonx_blog_sidebar",function(s){s.bind(function(s){"show"===s?t(".sidebar").css({display:"block"}):t(".sidebar").css({display:"none"})})})});