PATH:
home
/
lab2454c
/
carbonbullion.net
/
wp-content
/
themes
/
twentytwentyone
/
assets
/
js
/* global twentytwentyoneGetHexLum */ ( function() { // Wait until the customizer has finished loading. wp.customize.bind( 'ready', function() { // Hide the "respect_user_color_preference" setting if the background-color is dark. if ( 127 > twentytwentyoneGetHexLum( wp.customize( 'background_color' ).get() ) ) { wp.customize.control( 'respect_user_color_preference' ).deactivate(); wp.customize.control( 'respect_user_color_preference_notice' ).deactivate(); } // Handle changes to the background-color. wp.customize( 'background_color', function( setting ) { setting.bind( function( value ) { if ( 127 > twentytwentyoneGetHexLum( value ) ) { wp.customize.control( 'respect_user_color_preference' ).deactivate(); wp.customize.control( 'respect_user_color_preference_notice' ).activate(); } else { wp.customize.control( 'respect_user_color_preference' ).activate(); wp.customize.control( 'respect_user_color_preference_notice' ).deactivate(); } } ); } ); } ); }() );
[-] palette-colorpicker.js
[edit]
[-] customize-preview.js
[edit]
[-] editor.js
[edit]
[+]
..
[-] responsive-embeds.js
[edit]
[-] editor-dark-mode-support.js
[edit]
[-] skip-link-focus-fix.js
[edit]
[-] polyfills.js
[edit]
[-] customize.js
[edit]
[-] customize-helpers.js
[edit]
[-] dark-mode-toggler.js
[edit]
[-] primary-navigation.js
[edit]