HEX
Server: Apache
System: Linux webm003.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/fourteen-colors/customizer.js
/**
 * Customizer preview scripts.
 *
 * Contains handlers to make Customizer preview reload changes asynchronously.
 */

( function( $ ) {
	// Update accent and contrast colors in the colors CSS.
	// Generated colors are updated with a complete refresh of the CSS in a
	// partial refresh that applies after this initial instant preview.
	wp.customize( 'accent_color', function( value ) {
		value.bind( function( to ) {
			// Update custom color CSS
			var style = $( '#fourteen-colors' ),
			    color = style.data( 'accent-color' ),
			    css = style.html();
			//css = css.replace( color, to );
			css = css.split( color ).join( to ); // css.replaceAll.
			style.html( css )
			     .data( 'accent-color', to );
		} );
	} );
	wp.customize( 'contrast_color', function( value ) {
		value.bind( function( to ) {
			// Update custom color CSS
			var style = $( '#fourteen-colors' ),
			    color = style.data( 'contrast-color' ),
			    css = style.html();
			//css = css.replace( color, to );
			css = css.split( color ).join( to ); // css.replaceAll.
			style.html( css )
			     .data( 'contrast-color', to );
		} );
	} );} )( jQuery );