X7ROOT File Manager
Current Path:
/home/notabjze/crypfinite.com/wp-content/themes/twentytwentyone/assets/js
home
/
notabjze
/
crypfinite.com
/
wp-content
/
themes
/
twentytwentyone
/
assets
/
js
/
ðŸ“
..
📄
customize-helpers.js
(1.07 KB)
📄
customize-preview.js
(2.47 KB)
📄
customize.js
(1 KB)
📄
dark-mode-toggler.js
(2.19 KB)
📄
editor-dark-mode-support.js
(1.21 KB)
📄
editor.js
(921 B)
📄
palette-colorpicker.js
(1.56 KB)
📄
polyfills.js
(1.1 KB)
📄
primary-navigation.js
(6.37 KB)
📄
responsive-embeds.js
(1.1 KB)
📄
skip-link-focus-fix.js
(832 B)
Editing: customize.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(); } } ); } ); } ); }() );
Upload File
Create Folder