laipower/wp-content/upgrade-temp-backup/plugins/gp-premium/copyright/functions/js/customizer.js

19 lines
485 B
JavaScript
Raw Normal View History

2024-02-08 12:31:51 +00:00
/**
* Theme Customizer enhancements for a better user experience.
*
* Contains handlers to make Theme Customizer preview reload changes asynchronously.
*/
( function( $ ) {
// Update the site title in real time...
wp.customize( 'generate_copyright', function( value ) {
value.bind( function( newval ) {
if ( $( '.copyright-bar' ).length ) {
$( '.copyright-bar' ).html( newval );
} else {
$( '.inside-site-info' ).html( newval );
}
} );
} );
}( jQuery ) );