PageSourceSearch

https://www.gesellschaft-fuer-fusschirurgie.de/files/theme/js/custom.js?v=8facae30

js gesellschaft-fuer-fusschirurgie.de collected 2026-10-06 03:18:35 UTC 3,464 bytes, 96 lines download raw bytes

1(function($) {
2    function smoothScroll() {
3        $('a[href*="#"]')
4            .not('[href="#"]')
5            .not('[href="#0"]')
6            .click(function(event) {
7                if (
8                    location.pathname.replace(/^\//, "") ==
9                        this.pathname.replace(/^\//, "") &&
10                    location.hostname == this.hostname
11                ) {
12                    var target = $(this.hash);
13                    target = target.length
14                        ? target
15                        : $("[name=" + this.hash.slice(1) + "]");
16
17                    if (target.length) {
18                        event.preventDefault();
19                        $("html, body").animate(
20                            {
21                                scrollTop: target.offset().top - $('#header').outerHeight()
22                            },
23                            1000,
24                            function() {
25                                var target = $(target);
26                                target.focus();
27                                if (target.is(":focus")) {
28                                    return false;
29                                } else {
30                                    target.attr("tabindex", "-1");
31                                    target.focus();
32                                }
33                            }
34                        );
35                    }
36                }
37            });
38    }
39
40    /*$(window).load(function() {});*/
41    $(window).resize(function() {});
42
43    $(document).ready(function() {
44        searchBoxHeader();
45        smoothScroll();
46    });
47
48    $(window).scroll(function() {
49        var scrollTop = $(window).scrollTop();
50        var headerheight = $("#header").outerHeight();
51        if (scrollTop > 100) {
52            $("#header").addClass("moving");
53        }
54        if (scrollTop < 50) {
55            $("#header").removeClass("moving");
56        }
57
58        if (scrollTop >= headerheight - 10) {
59            $("#backToTop").css("opacity", "1");
60        } else {
61            $("#backToTop").css("opacity", "0");
62        }
63    });
64
65    function searchBoxHeader() {
66        $(".search-btn-header").click(function() {
67            $(".search-details-header").toggleClass("active");
68            $(".search-defails-background").toggleClass("active");
69            $("html").toggleClass("stop-scroll");
70        });
71        $(".close-search").click(function() {
72            $(".search-details-header").removeClass("active");
73            $(".search-defails-background").removeClass("active");
74            $("html").removeClass("stop-scroll");
75        });
76        $(".search-defails-background").click(function() {
77            $(".search-details-header").removeClass("active");
78            $(".search-defails-background").removeClass("active");
79            $("html").removeClass("stop-scroll");
80        });
81        $(".search-details-header").click(function(e) {
82            e.stopPropagation();
83        });
84    }
85
86    $(document).mouseup(function(e) {
87        /* var container = $(".search-details-header");
88        
89        // if the target of the click isn't the container nor a descendant of the container
90        if (!container.is(e.target) && container.has(e.target).length === 0) {
91        
92            container.removeClass('active');
93        }
94 */
95    });
96})(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.