PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/v1world.us/wp-content/themes/twentytwentyone/assets/js/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/v1world.us/wp-content/themes/twentytwentyone/assets/js/editor-dark-mode-support.js |
/* global twentytwentyoneIsDarkMode, setTimeout */ // Check the color scheme preference and inject the classes if necessary. if ( document.body.classList.contains( 'twentytwentyone-supports-dark-theme' ) ) { twentytwentyoneDarkModeEditorInit(); } /** * Once the editor loads, add the dark mode class. * * Wait for the editor to load by periodically checking for an element, then we add the classes. * * @since Twenty Twenty-One 1.0 * * @param {number} attempt Track the number of tries * @return {void} */ function twentytwentyoneDarkModeEditorInit( attempt ) { var container = document.querySelector( '.block-editor__typewriter' ), maxAttempts = 8; // Set the initial attempt if it's undefined. attempt = attempt || 0; if ( twentytwentyoneIsDarkMode() ) { if ( null === container ) { // Try again. if ( attempt < maxAttempts ) { setTimeout( function() { twentytwentyoneDarkModeEditorInit( attempt + 1 ); }, // Double the delay, give the server some time to breathe. 25 * Math.pow( 2, attempt ) ); } return; } document.body.classList.add( 'is-dark-theme' ); document.documentElement.classList.add( 'is-dark-theme' ); container.classList.add( 'is-dark-theme' ); } }