Server : LiteSpeed System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : rahcos ( 1533) PHP Version : 8.4.24 Disable Function : NONE Directory : /home4/rahcos/.trash/wp-content/themes/hara/js/ |
/**
* Live-update changed settings in real time in the Customizer preview.
*/
( function( $ ) {
var $style = $( '#hara-color-scheme-css' ),
api = wp.customize;
api( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to );
} );
} );
api( 'blogdescription', function( value ) {
value.bind( function( to ) {
$( '.site-description' ).text( to );
} );
} );
// Header text color.
api( 'header_textcolor', function( value ) {
value.bind( function( to ) {
if ( 'blank' === to ) {
$( '.site-title, .site-description' ).css( {
'clip': 'rect(1px, 1px, 1px, 1px)',
'position': 'absolute'
} );
} else {
$( '.site-title, .site-description' ).css( {
'clip': 'auto',
'position': 'static'
} );
$( '.site-title a' ).css( {
'color': to
} );
}
} );
} );
//Update site link color in real time...
api( 'page_bg', function( value ) {
value.bind( function( newval ) {
$('#page').css('background-color', newval );
} );
} );
//Update site link color in real time...
api( 'body_text_color', function( value ) {
value.bind( function( newval ) {
$('body').css('color', newval );
} );
} );
//Update site link color in real time...
api( 'topbar_bg', function( value ) {
value.bind( function( newval ) {
$('#tbay-topbar').css('background-color', newval );
} );
} );
//Update site link color in real time...
api( 'topbar_color', function( value ) {
value.bind( function( newval ) {
$('#tbay-topbar, #tbay-topbar a, #tbay-topbar span').css('color', newval );
} );
} );
//Update site link color in real time...
api( 'footer_bg', function( value ) {
value.bind( function( newval ) {
$('#tbay-footer').css('background-color', newval );
} );
} );
//Update site link color in real time...
api( 'footer_color', function( value ) {
value.bind( function( newval ) {
$('#tbay-footer, #tbay-footer a').css('color', newval );
} );
} );
//Update site link color in real time...
api( 'footer_heading_color', function( value ) {
value.bind( function( newval ) {
$('#tbay-footer h2, #tbay-footer h3, #tbay-footer h4').css('color', newval );
} );
} );
} )( jQuery );