AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/jetpack/modules/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/wp-content/plugins/jetpack/modules/widgets/twitter-timeline-admin.js
jQuery( function ( $ ) {
	function twitterWidgetTypeChanged( widgetTypeSelector ) {
		var selectedType = $( widgetTypeSelector ).val();
		$( widgetTypeSelector )
			.closest( '.jetpack-twitter-timeline-widget-type-container' )
			.next( '.jetpack-twitter-timeline-widget-id-container' )
			.find( 'label' )
			.css( 'display', function () {
				var labelType = $( this ).data( 'widget-type' );
				if ( selectedType === labelType ) {
					return '';
				} else {
					return 'none';
				}
			} );
	}

	function twitterWidgetTweetDisplayChanged( event ) {
		var $tweetDisplaySelector = $( event.target );
		var selectedTweetDisplay = $tweetDisplaySelector.val();
		var $form = $tweetDisplaySelector.closest( 'form' );
		var $heightContainer = $form.find( '.jetpack-twitter-timeline-widget-height-container' );
		var $tweetLimitContainer = $form.find(
			'.jetpack-twitter-timeline-widget-tweet-limit-container'
		);
		var $scrollbarInput = $form.find( 'input[id*=chrome-noscrollbar]' );
		switch ( selectedTweetDisplay ) {
			case 'fixed':
				$heightContainer.hide();
				$tweetLimitContainer.show();
				$scrollbarInput.prop( 'disabled', true );
				break;
			case 'dynamic':
				$tweetLimitContainer.hide();
				$heightContainer.show();
				$scrollbarInput.prop( 'disabled', false );
				break;
		}
	}

	// We could either be in wp-admin/widgets.php or the Customizer.
	var $container = $( '#customize-controls' );
	if ( ! $container.length ) {
		$container = $( '#wpbody' );
	}

	// Observe widget settings for 'change' events of the 'type' property for
	// current and future Twitter timeline widgets.
	$container.on( 'change', '.jetpack-twitter-timeline-widget-type', function () {
		twitterWidgetTypeChanged( this );
	} );

	// Set the labels for currently existing widgets (including the "template"
	// version that is copied when a new widget is added).
	$container.find( '.jetpack-twitter-timeline-widget-type' ).each( function () {
		twitterWidgetTypeChanged( this );
	} );

	// Observe widget settings for 'change' events of the 'tweet-display' property for
	// current and future Twitter timeline widgets.
	$container.on(
		'change',
		'.jetpack-twitter-timeline-widget-tweet-display-radio',
		twitterWidgetTweetDisplayChanged
	);
} );

Anon7 - 2022
AnonSec Team