PageSourceSearch

https://www.superfreehits.com/wp-content/plugins/simple-scroll-to-top-button/inc/js/frontend.js?ver=4.46

js superfreehits.com collected 2026-09-24 14:53:51 UTC 875 bytes, 35 lines download raw bytes

1/*
2 * WordPress plugin Simple Scroll to Top Button by Space X-Chimp ( https://www.spacexchimp.com ).
3 *
4 * @package     Simple Scroll to Top Button
5 * @author      Arthur Gareginyan
6 * @link        https://www.spacexchimp.com
7 * @copyright   Copyright (c) 2016-2021 Space X-Chimp. All Rights Reserved.
8 */
9
10
11jQuery(document).ready(function($) {
12
13    "use strict";
14
15    // Set variables
16    var duration = parseInt( spacexchimp_p008_scriptParams["scroll_duration"] );
17
18    // Hide button by default
19    $('#ssttbutton').hide();
20
21    $(window).scroll(function() {
22        if ($(this).scrollTop() < 200) {
23            $('#ssttbutton') .fadeOut();
24        } else {
25    		$('#ssttbutton') .fadeIn();
26        }
27    });
28
29    // Click on button
30  	$('#ssttbutton').on('click', function() {
31        $('html, body').animate({scrollTop:0}, duration);
32        return false;
33    });
34
35});

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.