SILENT KILLERPanel

Current Path: > home > codekrsu > > > ameliagraphics.com > wp-content > themes > generatepress > assets > js


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/codekrsu///ameliagraphics.com/wp-content/themes/generatepress/assets/js

NameTypeSizeLast ModifiedActions
a11y.js File 592 bytes May 06 2025 19:28:34.
back-to-top.js File 1853 bytes October 25 2022 20:14:22.
back-to-top.min.js File 737 bytes August 27 2024 20:48:54.
classList.js File 5684 bytes October 14 2020 21:40:56.
classList.min.js File 2399 bytes October 14 2020 21:40:56.
dropdown-click.js File 5919 bytes September 04 2024 18:45:54.
dropdown-click.min.js File 3196 bytes September 04 2024 18:45:54.
menu.js File 14502 bytes August 27 2024 20:48:54.
menu.min.js File 7333 bytes August 27 2024 20:48:54.
navigation-search.js File 3909 bytes October 26 2021 23:13:16.
navigation-search.min.js File 2123 bytes August 27 2024 20:48:54.

Reading File: /home/codekrsu///ameliagraphics.com/wp-content/themes/generatepress/assets/js/back-to-top.js

( function() {
	'use strict';

	// Feature Test
	if ( 'querySelector' in document && 'addEventListener' in window ) {
		var goTopBtn = document.querySelector( '.generate-back-to-top' );

		var trackScroll = function() {
			var scrolled = window.pageYOffset;
			var coords = goTopBtn.getAttribute( 'data-start-scroll' );

			if ( scrolled > coords ) {
				goTopBtn.classList.add( 'generate-back-to-top__show' );
			}

			if ( scrolled < coords ) {
				goTopBtn.classList.remove( 'generate-back-to-top__show' );
			}
		};

		// Function to animate the scroll
		var smoothScroll = function( anchor, duration ) {
			// Calculate how far and how fast to scroll
			var startLocation = window.pageYOffset;
			var endLocation = document.body.offsetTop;
			var distance = endLocation - startLocation;
			var increments = distance / ( duration / 16 );
			var stopAnimation;

			// Scroll the page by an increment, and check if it's time to stop
			var animateScroll = function() {
				window.scrollBy( 0, increments );
				stopAnimation();
			};

			// Stop animation when you reach the anchor OR the top of the page
			stopAnimation = function() {
				var travelled = window.pageYOffset;
				if ( travelled <= ( endLocation || 0 ) ) {
					clearInterval( runAnimation );
					document.activeElement.blur();
				}
			};

			// Loop the animation function
			var runAnimation = setInterval( animateScroll, 16 );
		};

		if ( goTopBtn ) {
			// Show the button when scrolling down.
			window.addEventListener( 'scroll', trackScroll );

			// Scroll back to top when clicked.
			goTopBtn.addEventListener( 'click', function( e ) {
				e.preventDefault();

				if ( generatepressBackToTop.smooth ) {
					smoothScroll( document.body, goTopBtn.getAttribute( 'data-scroll-speed' ) || 400 );
				} else {
					window.scrollTo( 0, 0 );
				}
			}, false );
		}
	}
}() );

SILENT KILLER Tool