Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/core/infiniteScroll.js
var $j 		= jQuery.noConflict(),
	$window = $j( window );

$window.on( 'load', function() {
	"use strict";
	if ( $j.fn.infiniteScroll !== undefined && $j( 'div.infinite-scroll-nav' ).length ) {
		// Infinite scroll
		acmthemesInfiniteScrollInit();
	}
} );

/* ==============================================
INFINITE SCROLL
============================================== */
function acmthemesInfiniteScrollInit() {
	"use strict"

	// Get infinite scroll container
	var $container = $j( '.infinite-scroll-wrap' );

	// Start infinite sccroll
	$container.infiniteScroll( {
		path 	: '.older-posts a',
		append 	: '.item-entry',
		status 	: '.scroller-status',
		hideNav : '.infinite-scroll-nav',
		history : false,
	} );

	$container.on( 'load.infiniteScroll', function( event, response, path, items ) {

		var $items = $j( response ).find( '.item-entry' );

		$items.imagesLoaded( function() {

			// Animate new Items
			$items.animate( {
				opacity : 1
			} );

			// Force the images to be parsed to fix Safari issue
			$items.find( 'img' ).each( function( index, img ) {
				img.outerHTML = img.outerHTML;
			} );

			// Isotope
			if ( $container.hasClass( 'blog-masonry-grid' ) ) {
				$container.isotope( 'appended', $items );
				$items.css( 'opacity', 0 );
			}

			// Re-run functions
			if ( ! $j( 'body' ).hasClass( 'no-carousel' ) ) {
				acmthemesInitCarousel( $items );
			}

			if ( ! $j( 'body' ).hasClass( 'no-lightbox' ) ) {
				acmthemesInitLightbox( $items );
			}

			if ( ! $j( 'body' ).hasClass( 'no-fitvids' ) ) {
				acmthemesInitFitVids( $items );
			}

			// Match heights
			if ( ! $j( 'body' ).hasClass( 'no-matchheight' ) ) {
				$j( '.blog-equal-heights .blog-entry-inner' ).matchHeight({ property: 'min-height' });
			}

		    // Gallery posts
		    if ( $j( '.gallery-format' ).parent( '.thumbnail' ) && $j( '.blog-masonry-grid' ).length ) {
				setTimeout( function() {
					$j( '.blog-masonry-grid' ).isotope( 'layout' );
				}, 600 + 1 );
			}

		} );

	} );

}

Spamworldpro Mini