PageSourceSearch

https://www.stravon.gr/wp-content/plugins/to-top/public/js/to-top-public.js?ver=2.5.2

js stravon.gr collected 2026-09-26 13:54:09 UTC 2,318 bytes, 76 lines download raw bytes

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