function stargazer_hex_to_rgb(e){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return parseInt(r[1],16)+", "+parseInt(r[2],16)+", "+parseInt(r[3],16)}jQuery(document).ready(function(){wp.customize("blogname",function(e){e.bind(function(e){jQuery("#site-title a").html(e)})}),wp.customize("blogdescription",function(e){e.bind(function(e){jQuery("#site-description").html(e)})}),wp.customize("header_textcolor",function(e){e.bind(function(e){"blank"===e?(jQuery("#branding").css("display","none"),jQuery("body").removeClass("display-header-text")):(jQuery("body").addClass("display-header-text"),jQuery("#branding").css("display","block"),jQuery("#site-title a").css("color",e))})}),wp.customize("header_image",function(e){e.bind(function(e){jQuery(".header-image").attr("src",e)})}),wp.customize("color_primary",function(e){e.bind(function(e){var r=stargazer_hex_to_rgb(e);jQuery("a, .mejs-button button").not("#header a, .menu a, .entry-title a, #footer a, .media-info-toggle").hover(function(){jQuery(this).css("color",e)},function(){jQuery(this).css("color","rgba( "+r+", 0.75 )")}),jQuery("a").not("#header a, .menu a, .entry-title a, #footer a, .media-info-toggle").css("color","rgba( "+r+", 0.75 )"),jQuery("#menu-secondary-items > li > a").css("color","rgba( "+r+", 0.75 )"),jQuery("legend, mark, .comment-respond .required, pre, .form-allowed-tags code, pre code").css("color",e),jQuery("input[type='submit'], input[type='reset'], input[type='button'], button, .page-links a, .comment-reply-link, .comment-reply-login, .wp-calendar td.has-posts a, #menu-sub-terms li a").not(".mejs-button button").css("background-color","rgba( "+r+", 0.8 )"),jQuery("blockquote").css("background-color","rgba( "+r+", 0.85 )"),jQuery("blockquote blockquote").css("background-color","rgba( "+r+", 0.9 )"),jQuery("legend, mark, pre, .form-allowed-tags code").css("background-color","rgba( "+r+", 0.1 )"),jQuery(".widget-title > .wrap, #comments-number > .wrap, #reply-title > .wrap, .attachment-meta-title > .wrap, .widget-search > .search-form, .mejs-time-rail .mejs-time-loaded").css("background-color",e),jQuery("legend").css("border-color","rgba( "+r+", 0.15 )"),jQuery("body").css("border-top-color",e),jQuery(".entry-content a, .entry-summary a").css("border-bottom-color","rgba( "+r+", 0.15 )"),jQuery("body, .widget-title, #comments-number, #reply-title, .attachment-meta-title").css("border-bottom-color",e),jQuery("blockquote").css("outline-color","rgba( "+r+", 0.85 )")})})});