CoreFiles by mySites.guru
customizer.js38 lines, 968 bytes, from wordpress-3.8-RC1.zip
Raw History Compare with 3.7-RC2
md5
f1d2c53463c05a10cb48843aa24ed348
sha1
1378e67a3f8519aad87eea6b75bbd4ec8ee002e0
sha256
591d55cc9cd6d0cb6ed34fe894bd193b06e7d5bffb423e79f77f0ae0258d6237
/**
 * Twenty Fourteen Theme Customizer enhancements for a better user experience.
 *
 * Contains handlers to make Theme Customizer preview reload changes asynchronously.
 */
( function( $ ) {
	// Site title and description.
	wp.customize( 'blogname', function( value ) {
		value.bind( function( to ) {
			$( '.site-title a' ).text( to );
		} );
	} );
	wp.customize( 'blogdescription', function( value ) {
		value.bind( function( to ) {
			$( '.site-description' ).text( to );
		} );
	} );
	// Header text color.
	wp.customize( 'header_textcolor', function( value ) {
		value.bind( function( to ) {
			if ( 'blank' === to ) {
				$( '.site-title a, .site-description' ).css( {
					'clip': 'rect(1px, 1px, 1px, 1px)',
					'position': 'absolute'
				} );
			} else {
				$( '.site-title a,  .site-description' ).css( {
					'clip': 'auto',
					'position': 'relative'
				} );

				$( '.site-title a' ).css( {
					'color': to
				} );
			}
		} );
	} );
} )( jQuery );

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