PageSourceSearch

https://direktvertrieb.de/assets/scripts/search.js?v=2412031737

js direktvertrieb.de collected 2026-09-24 18:34:42 UTC 1,688 bytes, 54 lines download raw bytes

1;(function ($) {
2    var $iframe = $("<iframe class='iframe-layer' src='/search' allowtransparency='true'></iframe>")
3    var $buttonClose = $("<div id='button_close_iframe'></div>")
4    var $body = $("body")
5    var $searchToggle = $("#search_toggle")
6    var iframeWindow = null
7
8    function hideLayer() {
9        $iframe.fadeOut()
10        $buttonClose.fadeOut()
11    }
12
13    function showLayer() {
14        if (!iframeWindow) {
15            $body.append($iframe)
16            $body.append($buttonClose)
17            $iframe.hide()
18            $buttonClose.hide()
19            iframeWindow = $iframe[0].contentWindow
20            iframeWindow.onload = function () {
21                // $closeButton = iframeWindow.$("#icon_close")
22                setCloseButtonPosition()
23                $iframe.fadeIn()
24                $buttonClose.fadeIn()
25                $buttonClose.click(function () {
26                    hideLayer()
27                })
28                $(window).resize(function () {
29                    clearTimeout(this.debounce)
30                    this.debounce = setTimeout(function () {
31                        setCloseButtonPosition()
32                    }, 100)
33                })
34            }
35        } else {
36            setCloseButtonPosition()
37            $iframe.fadeIn()
38            $buttonClose.fadeIn()
39        }
40    }
41
42    function setCloseButtonPosition() {
43        $buttonClose.css("top", $searchToggle.css("top"))
44        $buttonClose.css("right", $searchToggle.css("right"))
45        // $buttonClose.show()
46    }
47
48    $(document).ready(function () {
49        $searchToggle.click(function () {
50            showLayer()
51        })
52        // showLayer()
53    })
54})(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.