Changeset 30275
- Timestamp:
- 11/07/2014 09:10:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/js/customize-preview.js
r30271 r30275 4 4 5 5 ( function( $ ) { 6 var $style = $( '#twentyfifteen-color-scheme-css' ); 7 8 if ( ! $style.length ) { 9 $style = $( 'head' ).append( '<style type="text/css" id="twentyfifteen-color-scheme-css" />' ) 10 .find( '#twentyfifteen-color-scheme-css' ); 11 } 12 6 13 // Site title and description. 7 14 wp.customize( 'blogname', function( value ) { … … 10 17 } ); 11 18 } ); 19 12 20 wp.customize( 'blogdescription', function( value ) { 13 21 value.bind( function( to ) { … … 15 23 } ); 16 24 } ); 25 26 wp.customize( 'color_scheme_css', function( value ) { 27 value.bind( function( to ) { 28 $style.html( to ); 29 } ); 30 } ); 31 17 32 } )( jQuery );
Note: See TracChangeset
for help on using the changeset viewer.