Permalink
Browse files

Min JS update

  • Loading branch information...
1 parent a4d9fbb commit f8f571624766460b8054d3f64042a7a16a297690 @fjarrett fjarrett committed Jan 9, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/js/admin/customizer.min.js
@@ -1 +1 @@
-!function(a,b){function c(a,b,c){b=.01*b,-1===a.indexOf("a")&&(a=a.replace(")",",)").replace("rgb","rgba")),c.css("color",a.replace(/^(.*,).*(\).*)$/,"$1"+b+"$2"))}function d(a){a=a.replace("#","");var b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16);return b+", "+c+", "+d}var e=a("#primer-colors-css"),f=a("#primer-colors-css-rgba"),g=a("body");e.length||(e=a("head").append('<style type="text/css" id="primer-colors-css" />').find("#primer-colors-css")),f.length||(f=a("head").append('<style type="text/css" id="primer-colors-css-rgba" />').find("#primer-colors-css-rgba")),b("blogname",function(b){b.bind(function(b){a(".site-title a").text(b)})}),b("blogdescription",function(b){b.bind(function(b){a(".site-description").text(b)})}),b("background_image",function(a){a.bind(function(a){g.toggleClass("custom-background-image",""!==a)})}),b.bind("preview-ready",function(){b.preview.bind("primer-update-colors-css",function(a){e.html(a)}),b.preview.bind("primer-update-colors-css-rgba",function(a){f.html(a)})}),b("layout",function(b){b.bind(function(b){var c=g.prop("class").replace(/layout-[a-zA-Z0-9_-]*/g,"");g.prop("class",a.trim(c)).addClass("layout-"+b)})}),b("page_width",function(b){b.bind(function(b){switch(b){case"fixed":a("body").removeClass("no-max-width");break;case"fluid":a("body").addClass("no-max-width")}})}),b("header_textcolor",function(b){b.bind(function(b){"blank"===b?a(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):a(".site-title, .site-description").css({clip:"auto",position:"relative"})})}),b("hero_background_color",function(e){e.bind(function(e){var f=a(colorsSettings.hero_background_selector),g="rgb("+d(e)+")",h=b("hero_image_color_overlay")();c(g,h,f)})}),b("hero_image_color_overlay",function(e){e.bind(function(e){var f=a(colorsSettings.hero_background_selector),g="rgb("+d(b("hero_background_color")())+")";c(g,e,f)})})}(jQuery,wp.customize);
+!function(a,b){function c(a,b,c){b*=.01,-1===a.indexOf("a")&&(a=a.replace(")",",)").replace("rgb","rgba")),c.css("color",a.replace(/^(.*,).*(\).*)$/,"$1"+b+"$2"))}function d(a){a=a.replace("#","");var b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16);return b+", "+c+", "+d}var e=a("#primer-colors-css"),f=a("#primer-colors-css-rgba"),g=a("body");e.length||(e=a("head").append('<style type="text/css" id="primer-colors-css" />').find("#primer-colors-css")),f.length||(f=a("head").append('<style type="text/css" id="primer-colors-css-rgba" />').find("#primer-colors-css-rgba")),b("blogname",function(b){b.bind(function(b){a(".site-title a").text(b)})}),b("blogdescription",function(b){b.bind(function(b){a(".site-description").text(b)})}),b("background_image",function(a){a.bind(function(a){g.toggleClass("custom-background-image",""!==a)})}),b.bind("preview-ready",function(){b.preview.bind("primer-update-colors-css",function(a){e.html(a)}),b.preview.bind("primer-update-colors-css-rgba",function(a){f.html(a)})}),b("layout",function(b){b.bind(function(b){var c=g.prop("class").replace(/layout-[a-zA-Z0-9_-]*/g,"");g.prop("class",a.trim(c)).addClass("layout-"+b)})}),b("page_width",function(b){b.bind(function(b){switch(b){case"fixed":a("body").removeClass("no-max-width");break;case"fluid":a("body").addClass("no-max-width")}})}),b("header_textcolor",function(b){b.bind(function(b){"blank"===b?a(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):a(".site-title, .site-description").css({clip:"auto",position:"relative"})})}),b("hero_background_color",function(e){e.bind(function(e){var f=a(colorsSettings.hero_background_selector),g="rgb("+d(e)+")",h=b("hero_image_color_overlay")();c(g,h,f)})}),b("hero_image_color_overlay",function(e){e.bind(function(e){var f=a(colorsSettings.hero_background_selector),g="rgb("+d(b("hero_background_color")())+")";c(g,e,f)})})}(jQuery,wp.customize);

0 comments on commit f8f5716

Please sign in to comment.