2 * Live-update changed settings in real time in the Customizer preview.
6 var style = $( '#twentysixteen-color-scheme-css' ),
9 if ( ! style.length ) {
10 style = $( 'head' ).append( '<style type="text/css" id="twentysixteen-color-scheme-css" />' )
11 .find( '#twentysixteen-color-scheme-css' );
15 api( 'blogname', function( value ) {
16 value.bind( function( to ) {
17 $( '.site-title a' ).text( to );
22 api( 'blogdescription', function( value ) {
23 value.bind( function( to ) {
24 $( '.site-description' ).text( to );
28 // Add custom-background-image body class when background image is added.
29 api( 'background_image', function( value ) {
30 value.bind( function( to ) {
31 $( 'body' ).toggleClass( 'custom-background-image', '' !== to );
36 api.bind( 'preview-ready', function() {
37 api.preview.bind( 'update-color-scheme-css', function( css ) {