PageSourceSearch

https://www.rechnungswesen-portal.de/bitrix/templates/fm_tpl1_responsive/script.js

js rechnungswesen-portal.de collected 2026-10-02 06:22:51 UTC 5,943 bytes, 191 lines download raw bytes

1"use strict";
2
3function SetPrintCSS(isPrint) {
4    var link;
5
6    if (document.getElementsByTagName) {
7        link = document.getElementsByTagName('link');
8    } else if (document.all) {
9        link = document.all.tags('link');
10    } else {
11        return;
12    }
13
14    for (var index = 0; index < link.length; index++) {
15        if (!link[index].title || link[index].title != 'print') {
16            continue;
17        }
18
19        if (isPrint) {
20            link[index].disabled = false;
21            link[index].rel = "stylesheet";
22        } else {
23            link[index].disabled = true;
24            link[index].rel = "alternate stylesheet";
25        }
26    }
27}
28
29function AddToBookmark() {
30    var title = window.document.title;
31    var url = window.document.location;
32
33    if (window.sidebar) {
34        window.sidebar.addPanel(title, url, "");
35    } else if (document.all) {
36        window.external.AddFavorite(url, title);
37    } else {
38        alert("Press Ctrl+D to bokmark this page");
39    }
40
41    return false;
42}
43
44function BackToDesignMode() {
45    if (document.all) {
46        window.location.href = window.location.href.replace('#print', '');
47    } else {
48        SetPrintCSS(false);
49    }
50
51    return false;
52}
53
54if (document.location.hash == '#print') {
55    SetPrintCSS(true);
56}
57
58if (window.jsAjaxUtil) {
59    // show ajax visuality
60    window.jsAjaxUtil.ShowLocalWaitWindow = function(TID, cont, bShadow) {
61        var obContainerNode;
62        if (typeof cont == 'string' || typeof cont == 'object' && cont.constructor == String) {
63            obContainerNode = document.getElementById(cont);
64        } else {
65            obContainerNode = cont;
66        }
67
68        var arContainerPos;
69        if (obContainerNode.getBoundingClientRect) {
70            var obRect = obContainerNode.getBoundingClientRect();
71            var obWndSize = window.jsAjaxUtil.GetWindowSize();
72
73            arContainerPos = {
74                left: obRect.left + obWndSize.scrollLeft,
75                top: obRect.top + obWndSize.scrollTop,
76                right: obRect.right + obWndSize.scrollLeft,
77                bottom: obRect.bottom + obWndSize.scrollTop
78            };
79        } else {
80            arContainerPos = window.jsAjaxUtil.GetRealPos(obContainerNode);
81        }
82
83        var container_id = obContainerNode.id;
84
85        if (!arContainerPos) {
86            return;
87        }
88
89        var obWaitMessage = document.body.appendChild(document.createElement('DIV'));
90        obWaitMessage.id = 'wait_' + container_id + '_' + TID;
91        obWaitMessage.className = 'waitwindow';
92
93        var div_top = arContainerPos.top + 5;
94        if (div_top < document.body.scrollTop) div_top = document.body.scrollTop + 5;
95
96        obWaitMessage.style.top = div_top + 'px';
97        obWaitMessage.style.left = (arContainerPos.right - 200) + 'px';
98        obWaitMessage.innerHTML = 'Loading...';
99
100        if (window.jsAjaxUtil.IsIE()) {
101            var frame = document.createElement("IFRAME");
102            frame.src = "javascript:''";
103            frame.id = 'waitframe_' + container_id + '_' + TID;
104            frame.className = "waitwindow";
105            frame.style.width = obWaitMessage.offsetWidth + "px";
106            frame.style.height = obWaitMessage.offsetHeight + "px";
107            frame.style.left = obWaitMessage.style.left;
108            frame.style.top = obWaitMessage.style.top;
109            document.body.appendChild(frame);
110        }
111
112        function __Close(e) {
113            if (!e) {
114                e = window.event;
115            }
116            if (!e) {
117                return;
118            }
119            if (e.keyCode == 27) {
120                window.jsAjaxUtil.CloseLocalWaitWindow(TID, cont);
121                window.jsEvent.removeEvent(document, 'keypress', __Close);
122            }
123        }
124
125        window.jsEvent.addEvent(document, 'keypress', __Close);
126    };
127}
128
129// jQuery functions
130/*(function($) {
131    // content width
132    $.fn.adjustWidth = function(smoothly) {
133        var ajustSeparator = 1600,
134            contentWidth = 1210,
135            windowWidth = (document.documentElement && document.documentElement.clientWidth) || (document.body && document.body.clientWidth);
136
137        if(windowWidth > ajustSeparator) {
138            if (smoothly) $(this).animate({"width" : contentWidth+"px"}, 200);
139            else $(this).css("width", contentWidth);
140        } else {
141            if (smoothly) $(this).animate({"width" : "100%"}, 200);
142            else $(this).css("width", "100%");
143        }
144    }
145
146})(jQuery);*/
147
148
149// Icon-Beschreibungen für Bookmarks anzeigen
150$(function() {
151    /*
152    // content width implementation
153    var timeoutID = null;
154    $("#cp_outer").adjustWidth(false);
155    $(window).resize(function() {
156        if(timeoutID) clearTimeout(timeoutID);
157        timeoutID = setTimeout(function() {
158            timeoutID = null;
159            $("#cp_outer").adjustWidth(true);
160        }, 200);
161    });
162    */
163
164    $('a.bookmark').hover(function() {
165        $("span#icons_title").show().text($(this).attr("rel"));
166    }, function() {
167        $("span#icons_title").hide();
168    });
169
170    // Fix for .container_body height: it must be not lower then left column height
171    var leftColumnHeight = $("#container_left").height();
172    var containerBody = $(".container_body");
173    var containerBodyHeight = containerBody.height();
174    if (leftColumnHeight > containerBodyHeight) {
175        containerBody.height(leftColumnHeight);
176    }
177
178    // hide empty banners
179    var rightBanners = $('.gray').has('.content_right');
180    $.each(rightBanners, function(keyBanner, rightBanner) {
181        if ($(rightBanner).find('.content_right').height() < 1) {
182            $(rightBanner).remove();
183        }
184    });
185    var centerBanners = $('.gray').has('.content_ad_center');
186    $.each(centerBanners, function(keyBanner, centerBanner) {
187        if ($(centerBanner).find('.content_ad_center').height() < 1) {
188            $(centerBanner).remove();
189        }
190    });
191});

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.