403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.197
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/thread-self/root/var/www/rhodeworks/wp-content/themes/twentytwentyone/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/var/www/rhodeworks/wp-content/themes/twentytwentyone/assets/js/editor.js
/* global setTimeout */
wp.domReady( function() {
	// Unregister "Wide" Separator Style.
	wp.blocks.unregisterBlockStyle( 'core/separator', 'wide' );

	// Add to ".block-editor__typewriter" the "is-dark-theme" class if needed.
	function twentytwentyoneCopyDarkThemeClass() {
		var editor,
			attemptDelay = 25,
			attempt = 0,
			maxAttempts = 10;

		if ( ! document.body.classList.contains( 'is-dark-theme' ) ) {
			return;
		}

		editor = document.querySelector( '.block-editor__typewriter' );
		if ( null === editor ) {
			// Try again.
			if ( attempt < maxAttempts ) {
				setTimeout( function() {
					twentytwentyoneCopyDarkThemeClass();
				}, attemptDelay );

				// Increment the attempts counter.
				attempt++;

				// Double the delay, give the server some time to breathe.
				attemptDelay *= 2;
			}
			return;
		}

		editor.classList.add( 'is-dark-theme' );
	}

	twentytwentyoneCopyDarkThemeClass();
} );

Youez - 2016 - github.com/yon3zu
LinuXploit