PageSourceSearch

https://ufe.org/wp-content/cache/ufe.org/wpfc-minified/eh4z9hv9/a809z.js

js ufe.org collected 2026-10-02 05:12:56 UTC 2,409 bytes, 77 lines download raw bytes

1// source --> https://ufe.org/wp-content/plugins/to-top/public/js/to-top-public.js?ver=3.2 
2(function($) {
3    "use strict";
4    $(function() {
5        var container = $("#to_top_scrollup").css({
6            'opacity': 0
7        });
8        var data = to_top_options;
9
10        var mouse_over = false;
11        var hideEventID = 0;
12
13        var fnHide = function() {
14            clearTimeout(hideEventID);
15            if (container.is(":visible")) {
16                container.stop().fadeTo(200, 0, function() {
17                    container.hide();
18                    mouse_over = false;
19                });
20            }
21        };
22
23        var fnHideEvent = function() {
24            if (!mouse_over && data.enable_autohide == 1 ) {
25                clearTimeout(hideEventID);
26                hideEventID = setTimeout(function() {
27                    fnHide();
28                }, data.autohide_time * 1000);
29            }
30        };
31
32        var scrollHandled = false;
33        var fnScroll = function() {
34            if (scrollHandled)
35                return;
36
37            scrollHandled = true;
38
39            if ($(window).scrollTop() > data.scroll_offset) {
40                container.stop().css("opacity", mouse_over ? 1 : parseFloat(data.icon_opacity/100)).show();
41
42                    fnHideEvent();
43
44            } else {
45                fnHide();
46            }
47
48            scrollHandled = false;
49        };
50
51        if ("undefined" != typeof to_top_options.enable_hide_small_device && "1" == to_top_options.enable_hide_small_device) {
52            if ($(window).width() > to_top_options.small_device_max_width) {
53                $(window).on( "scroll", fnScroll);
54                $(document).on( "scroll", fnScroll);
55            }
56        }else{
57            $(window).on( "scroll", fnScroll);
58            $(document).on( "scroll", fnScroll);
59        }
60
61        container.on( "hover", function() {
62                clearTimeout(hideEventID);
63                mouse_over = true;
64                $(this).css("opacity", 1);
65            }, function() {
66                $(this).css("opacity", parseFloat(data.icon_opacity/100));
67                mouse_over = false;
68                fnHideEvent();
69            })
70            .on( "click", function() {
71                $("html, body").animate({
72                    scrollTop: 0
73                }, 400);
74                return false;
75            });
76    });
77})(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.