PageSourceSearch

https://www.fruehemveedel.de/_assets/5e8164b0943fd1057074afdf1ed6c…/content_elements/share.js?1729609698

js fruehemveedel.de collected 2026-10-07 23:02:25 UTC 2,597 bytes, 70 lines download raw bytes

1function initShare() {
2
3    if ($('.share-ce').length <= 0) {
4        return;
5    }
6	
7
8    moveShare();
9
10    $(window).scroll(function(){
11        moveShare();
12    });	
13	
14    $(window).resize(function(){
15        moveShare();
16    });	
17	
18    function moveShare() {
19
20        var topFooter = $('#footer').position().top;
21	    var heightHeader = document.getElementById('header').offsetHeight;
22	    var heightShare = $('.share-ce').height();
23	    var heightFooter = $('#footer').height();
24	    
25	    var heightHeaderWithHero = heightHeader;
26        if ($('.hero-full-width-ce').length > 0) {
27        	heightHeaderWithHero += $('.hero-full-width-ce').height();
28
29			if ($('.hero-full-width-ce').parent().next().find('.Tx-Formhandler').length > 0) {
30				heightHeaderWithHero += $('.Tx-Formhandler').height();
31			}
32        }  
33
34        if ($('.hero-full-screen-ce').length > 0) {
35        	heightHeaderWithHero += $('.hero-full-screen-ce').height();
36
37			if ($('.hero-full-screen-ce').parent().next().find('.Tx-Formhandler').length > 0) {
38				heightHeaderWithHero += $('.Tx-Formhandler').height();
39			}
40        }
41
42        if ($('.share-ce .lbl').css('display') == 'none') {
43            if ($(window).scrollTop() > heightHeaderWithHero - heightHeader && $(window).scrollTop() < topFooter - heightShare - heightHeader) {
44                $('.share-ce').css('position','fixed');
45                $('.share-ce').css('top', (heightHeader - 2) + 'px');
46            } else if ($(window).scrollTop() < heightHeaderWithHero) {
47                $('.share-ce').css('position','absolute');
48                $('.share-ce').css('top', heightHeaderWithHero);
49            } else if ($(window).scrollTop() > topFooter - heightShare - heightHeader) {
50                $('.share-ce').css('top', topFooter - heightShare);
51                $('.share-ce').css('position','absolute');
52            }
53         } else {
54            $('.share-ce').css('position', 'static');
55         }
56
57    }
58}
59
60function share_click(width, height, obj) {
61    var leftPosition, topPosition;
62    //Allow for borders.
63    leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
64    //Allow for title and status bars.
65    topPosition = (window.screen.height / 2) - ((height / 2) + 50);
66    var windowFeatures = "status=no,height=" + height + ",width=" + width + ",resizable=yes,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";
67    href= obj.getAttribute('href');
68    window.open(href, 'sharer', windowFeatures);
69    return false;
70}

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.