PHP 8.2.31
Preview: twitter-timeline-admin.js Size: 2.20 KB
/home/nshryvcy/himaltourism.com/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
	);
} );

Directory Contents

Dirs: 18 × Files: 28

Name Size Perms Modified Actions
authors DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
flickr DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
gallery DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
goodreads DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
instagram DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
milestone DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
top-posts DIR
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
- drwxr-xr-x 2023-04-04 05:35:20
Edit Download
9.10 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
5.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
10.51 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
24.20 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
17.95 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
165 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.07 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
15.30 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
7.31 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
16.19 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
8.25 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
6.45 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
1.23 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
15.41 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
12.32 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
8.39 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
4.29 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
346 B lrw-r--r-- 2023-04-04 05:35:20
Edit Download
11.08 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
10.50 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
21.88 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
20.85 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
10.78 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
26.71 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
2.20 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
19.90 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
6.47 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download
3.71 KB lrw-r--r-- 2023-04-04 05:35:20
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).