PageSourceSearch

https://it-profis24.de/wp-content/themes/bizberg/assets/js/prognroll_ver-0.3.js

js it-profis24.de collected 2026-10-07 05:35:30 UTC 3,640 bytes, 85 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10/* PrognRoll | https://mburakerman.github.io/prognroll/ | @mburakerman | License: MIT */
11(function ($) {
12    $.fn.prognroll = function (options) {
13
14        var settings = $.extend({
15            height: 5, // progress bar height
16            color: "#50bcb6", // progress bar background color
17            custom: false // if you make it true, you can add your custom div and see it's scroll progress on the page
18        }, options);
19
20        return this.each(function () {
21            if ($(this).data('prognroll')) {
22                return false;
23            }
24            $(this).data('prognroll', true);
25
26            var progressBar = $("<span>", {
27                class: "prognroll-bar"
28            });
29            $("body").prepend(progressBar);
30
31            progressBar.css({
32                position: "fixed",
33                top: 0,
34                left: 0,
35                width: 0,
36                height: settings.height,
37                backgroundColor: settings.color,
38                zIndex: 2147483647
39            });
40
41            var globals = {
42                "progressBar": $(".prognroll-bar"),
43                "windowScrollTop": $(window).scrollTop(),
44                "windowOuterHeight": $(window).outerHeight(),
45                "bodyHeight": $(document).height()
46            }
47
48            function bindWindowScroll() {
49                $(window).scroll(function (e) {
50                    e.preventDefault();
51                    globals.windowScrollTop = $(window).scrollTop();
52                    globals.windowOuterHeight = $(window).outerHeight();
53                    globals.bodyHeight = $(document).height();
54
55                    var total = (globals.windowScrollTop / (globals.bodyHeight - globals.windowOuterHeight)) * 100;
56                    globals.progressBar.css("width", total + "%");
57                });
58            }
59
60            if (settings.custom === false) {
61                bindWindowScroll();
62            } else {
63                // if el has no max-height set
64                if ($(this).css("max-height") == "none") {
65                    bindWindowScroll();
66                } else {
67                    $(this).scroll(function (e) {
68                        e.preventDefault();
69                        var customScrollTop = $(this).scrollTop();
70                        var customOuterHeight = $(this).outerHeight();
71                        var customScrollHeight = $(this).prop("scrollHeight");
72
73                        var total = (customScrollTop / (customScrollHeight - customOuterHeight)) * 100;
74                        globals.progressBar.css("width", total + "%");
75                    });
76                }
77            }
78
79            // get scroll position on on page load 
80            var total = (globals.windowScrollTop / (globals.bodyHeight - globals.windowOuterHeight)) * 100;
81            globals.progressBar.css("width", total + "%");
82        });
83    };
84})(jQuery);
85}

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.