PageSourceSearch

https://taltv.de/wp-content/themes/newsportal/js/basis.js?ver=7.1.2

js taltv.de collected 2026-10-01 23:42:55 UTC 2,865 bytes, 114 lines download raw bytes

1(function($) {
2
3    $(document).ready(function() {
4
5        // Suche-Toggle
6        $('#search-toggle').click(function() {
7            toggleSearch();
8            return false;
9        });
10
11        // Navi-Toggle
12        $('#navi-toggle').click(function() {
13            toggleNavi();
14            return false;
15        });
16
17        $('.flexslider').flexslider({
18            selector: ".slides > li",
19            slideshow: true,
20            slideshowSpeed: 3000,
21            direction: "horizontal",
22            animation: "slide",
23            pauseOnHover: true,
24        });
25
26        // Initialisieren des Beackgroundify
27        initBackgroundify();
28
29        scrollTop();
30    });
31
32
33    /**
34     * Toogle Suche
35     */
36    function toggleSearch() {
37        let searchForm = $('#searchform');
38        if (searchForm.length === 0) {
39            return false;
40        }
41
42        if (searchForm.is(':visible')) {
43            searchForm.slideUp('slow');
44        } else {
45            searchForm.slideDown('slow');
46        }
47        return false;
48    }
49
50    /**
51     * Toggle Navigation
52     */
53    function toggleNavi(obj) {
54        let suchfeld = $('#searchform');
55        let hauptnavigation = $('#main-navigation');
56        if (hauptnavigation.length === 0) {
57            return false;
58        }
59
60        if (hauptnavigation.is(':visible')) {
61            hauptnavigation.slideUp('slow');
62            hauptnavigation.removeClass('slidemobile');
63        } else {
64            suchfeld.hide();
65            hauptnavigation.slideDown('slow');
66            hauptnavigation.addClass('slidemobile');
67        }
68        return false;
69    }
70
71    function scrollTop() {
72        var header = $( '.top-fixed' );
73        if (header.length === 0) {
74            return;
75        }
76
77        var dis = header.offset().top, $window = $(window);
78        $window.scroll(function() {
79            if ( $window.scrollTop() >= dis ) {
80                header.addClass( 'scrolled' );
81            } else {
82                header.removeClass( 'scrolled' );
83            }
84        });
85    }
86
87    /**
88     * Aktivieren der Backgroundify-Funktion
89     */
90    function initBackgroundify() {
91
92        var $newsContainerImages = $('.backgroundify-image');
93
94        // Image Größe der Bilder
95        $newsContainerImages.each(function(){
96            var $this = $(this);
97            if ($this.width() > $this.height()) {
98                $this.addClass("landscape");
99            } else if ($this.height() > $this.width()) {
100                $this.addClass("portrait");
101            }
102        });
103
104        // Background Blur für News Bilder
105        $newsContainerImages.backgroundify({
106            type: 'blur',
107            radius: 10,
108            saturation: 0.5
109        });
110
111
112    }
113
114})(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.