CoreFiles by mySites.guru
customize-preview.js34 lines, 806 bytes, from wordpress-4.1-beta2.zip
Raw History Compare with 4.1-beta1
md5
0c5933d8e0296cbf6f872a34241dbc43
sha1
07cec5549b650bda4426ccaceda70a6c7530983f
sha256
f61572de8e5950bf14af9681cd5c8a114d0fa1197e5a6468482f3845c9e7e40b
/**
 * Live-update changed settings in real time in the Customizer preview.
 */

( function( $ ) {
	var $style = $( '#twentyfifteen-color-scheme-css' );

	if ( ! $style.length ) {
		$style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' )
		                    .find( '#twentyfifteen-color-scheme-css' );
	}

	// Site title.
	wp.customize( 'blogname', function( value ) {
		value.bind( function( to ) {
			$( '.site-title a' ).text( to );
		} );
	} );

	// Site tagline.
	wp.customize( 'blogdescription', function( value ) {
		value.bind( function( to ) {
			$( '.site-description' ).text( to );
		} );
	} );

	// Color Scheme CSS.
	wp.customize( 'color_scheme_css', function( value ) {
		value.bind( function( to ) {
			$style.html( to );
		} );
	} );

} )( jQuery );

No other release has this exact content. See every version of this file.