PageSourceSearch

https://copyrightlately.com/wp-content/plugins/powerkit/modules/sc…/public-powerkit-scroll-to-top.js?ver=3.1.1

js copyrightlately.com collected 2026-09-24 08:49:58 UTC 507 bytes, 29 lines download raw bytes

1/**
2 * Scroll To Top
3 */
4
5( function( $ ) {
6
7	$( document ).ready( function() {
8
9		$( window ).scroll( function() {
10			var offset = $( 'body' ).innerHeight() * 0.1;
11
12			if ( $( this ).scrollTop() > offset ) {
13				$( '.pk-scroll-to-top' ).addClass( 'pk-active' );
14			} else {
15				$( '.pk-scroll-to-top' ).removeClass( 'pk-active' );
16			}
17		} );
18
19		$( '.pk-scroll-to-top' ).on( 'click', function() {
20
21			$( 'body, html' ).animate( {
22				scrollTop: 0
23			}, 400 );
24
25			return false;
26		} );
27	} );
28
29} )( jQuery );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.