CoreFiles by mySites.guru
customize-preview.js34 lines, 807 bytes, from wordpress-4.1-RC1.zip
Raw History Compare with 4.0-RC2
md5
399c462c6acd87841b087328b0401046
sha1
272dfd586f83a351090fc0a38d89775adf81c8b1
sha256
fb5834a446caddc5707a47131db47918dfa66e57f621cc95d5c0c1fe0343da4f
/**
 * 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.