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/scrollTop.js
var $j 		= jQuery.noConflict(),
	$window = $j( window );

$j( document ).on( 'ready', function() {
	"use strict";
	// Scroll top
	acmthemesScrollTop();
} );

/* ==============================================
SCROLL TOP
============================================== */
function acmthemesScrollTop() {
	"use strict"

	var selectors  = {
		scrollTop  		: '#scroll-top',
		topLink    		: 'a[href="#go-top"]',
		slashTopLink 	: 'body.home a[href="/#go-top"]'
	}

	$window.on( 'scroll', function() {
		if ( $j( this ).scrollTop() > 100 ) {
			$j( '#scroll-top' ).fadeIn();
		} else {
			$j( '#scroll-top' ).fadeOut();
		}
	});

	$j.each( selectors, function( key, value ){
		$j( value ).on( 'click', function(e){
			e.preventDefault();
			$j( 'html, body' ).animate( { scrollTop: 0 }, 400 );
			$j( this ).parent().removeClass( 'sfHover' );
		});
	});

}

Spamworldpro Mini