HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/script.js.tar
uyarreklam.com.tr/httpdocs/wp-content/plugins/so-widgets-bundle/widgets/post-carousel/js/script.js000064400000002636151545230400032501 0ustar00var/www/vhosts/* globals jQuery, sowb */

var sowb = window.sowb || {};

jQuery( function ( $ ) {
	$( sowb ).on( 'carousel_load_new_items', function( e, carousel, $items, refocus ) {
		if ( carousel.data( 'widget' ) !== 'post' ) {
			return;
		}

		if ( carousel.data( 'fetching' ) ) {
			if ( carousel.data( 'preloaded' ) ) {
				// preloaded is set to false, to indicate to the carousel that
				// we're not loading early anymore - don't allow further scrolls.
				carousel.data( 'preloaded', false );
			}

			return;
		}

		// Add loading indicator to the carousel.
		$items.slick( 'slickAdd', '<div class="sow-carousel-item sow-carousel-loading"></div>' );

		// Fetch the next batch of posts.
		carousel.data( 'fetching', true );
		carousel.data( 'preloaded', true );
		const page = carousel.data( 'page' ) + 1;

		$.get(
			carousel.data( 'ajax-url' ),
			{
				action: 'sow_carousel_load',
				paged: page,
				instance_hash: carousel.parent().parent().find( 'input[name="instance_hash"]' ).val()
			},
			function ( data ) {
				$items.find( '.sow-carousel-loading' ).remove();
				$items.slick( 'slickAdd', data.html );
				carousel.data( 'fetching', false );
				carousel.data( 'preloaded', false );
				carousel.data( 'page', page );

				if ( refocus ) {
					$items.find( '.sow-carousel-item[tabindex="0"]' ).trigger( 'focus' );
				}

				$( sowb ).trigger( 'carousel_posts_added', carousel );
			}
		);
	} );
} );

window.sowb = sowb;
uyarreklam.com.tr/httpdocs/wp-content/plugins/so-widgets-bundle/base/inc/installer/js/script.js000064400000005500151557134650031721 0ustar00var/www/vhostsjQuery( function( $ ) {
	var currentSection = '';
	$( '.page-sections a' ).on( 'click', function( e ) {
		e.preventDefault();

		$( '.page-sections li' ).removeClass( 'active-section' );
		var $$ = $( this );

		currentSection = $$.data( 'section' );
		$$.parent( 'li' ).addClass( 'active-section' );

		$( '.siteorigin-installer-item').show();
		if ( currentSection != 'all' ) {
			$( '.siteorigin-installer-item:not(.siteorigin-' + currentSection + ')' ).hide();
		}

		$( window ).trigger( 'resize' );
	} );

	$( 'span.siteorigin-installer' ).on( 'click', function( e ) {
		e.preventDefault();

		var $$ = $( this );
		if ( ! $$.hasClass( 'disabled' ) ) {
			$$.addClass( 'disabled' );
			$.post(
				soInstallerAdmin.manageUrl,
				{
					'type' : $$.data( 'type' ),
					'slug' : $$.data( 'slug' ),
					'task' : $$.data( 'status' ),
					'version' : $$.data( 'version' )
				},
				function( data ) {
					if ( $$.data( 'status' ) == 'activate' ) {
						if ( $$.data( 'type' ) == 'themes' ) {
							var $activeItem = $( '.siteorigin-installer-item-active.siteorigin-themes' )
							$activeItem.addClass( 'siteorigin-installer-item-inactive' ).removeClass( 'siteorigin-installer-item-active' );
							$activeItem.find( '.siteorigin-installer' ).removeClass( 'disabled' );
							$activeItem.removeClass( 'siteorigin-installer-item-active' );
							$( '.siteorigin-themes span.siteorigin-installer' ).show();
							$$.hide();
						}
						$$.parents( '.siteorigin-installer-item-inactive' ).removeClass( 'siteorigin-installer-item-inactive' ).addClass( 'siteorigin-installer-item-active' );
						if ( $$.data( 'type' ) == 'plugins' ) {
							$$.remove();
						}
					} else if ( $$.data( 'status' ) == 'update' ) {
						$$.remove();
					} else {
						$$.removeClass( 'disabled' );
						$$.text( soInstallerAdmin.activateText )
						$$.data( 'status', 'activate' );
					}
					$( window ).trigger( 'resize' );
				}
			);
		}
	} );

	$( '.page-sections li:first-of-type a' ).trigger( 'click' );

	// Make sure product heights are all the same on a row by row basis.
	$( window ).on( 'resize', function() {
		var $products = $( '.siteorigin-installer-item:visible' ).css( 'height', 'auto' );
		var largestHeight = [];
		var column = 0;

		$( '.siteorigin-installer-item-body' ).css( 'height', 'auto' );

		$products.each( function( index ) {
			column = index / 3;
			// Turnicate column number - IE 11 friendly.
			column = column < 0 ? Math.ceil( column ) : Math.floor( column );
			$( this ).data( 'column', column )

			largestHeight[ column ] = Math.max( typeof largestHeight[ column ] == 'undefined' ? 0 : largestHeight[ column ], $( this ).height() );
		} );

		$products.each( function () {
			$( this ).find( '.siteorigin-installer-item-body' ).css( 'height', largestHeight[ $( this ).data( 'column' ) ] + 'px' );
		} );

	} ).trigger( 'resize' );
} );