PageSourceSearch

https://www.plus.ac.at/wp-content/themes/typo-canvas-child-v2/assets/js/topbar-position.js?ver=20261001000000

js plus.ac.at collected 2026-10-01 10:22:03 UTC 3,594 bytes, 99 lines download raw bytes

1jQuery(function ($) {
2    'use strict';
3
4    var $topbar = $('.topbar');
5    var $slider = $('.content > *:first-child.typo_slider_section');
6
7
8    /**
9     * Simple scrolbars
10     */
11    //Overlay menu lists scrollbars
12    var $scrollbars_ul = $('.menu_wrapper .menu_container.submenu ul.menu');
13    //Overlay menu third column content scrollbar
14    var $scrollbar_content = $('.menu_wrapper .menu_container.submenu div.cta_element .content');
15
16    var $scrollbar_content_new = $('.menu_wrapper .menu_container.submenu div.lok_wrap_second_col .overlay_menu_botttom_menu_text .content_inside');
17
18
19    //Search results scrollbar
20    var $scrollbar_search_result = $('.lok_search_results ul');
21
22    /* lok slider quickmenu */
23    var $lok_slider_quickmenu = $('.topbar .lok_slider_quickmenu');
24
25    /* button quick link */
26    var $lok_btn_quicklink = $('.topbar .lok_btn_quicklink');
27
28    /*************************************************************
29     * Quicklink button functionality
30     *************************************************************/
31    $lok_btn_quicklink.on('click', function () {
32        $lok_slider_quickmenu.removeClass('show_at_top');
33        if ($lok_slider_quickmenu.hasClass('show_at_bottom')) {
34            $lok_slider_quickmenu.removeClass('show_at_bottom');
35            $lok_btn_quicklink.removeClass('is_opened');
36        }
37        else {
38            $lok_slider_quickmenu.addClass('show_at_bottom');
39            $lok_btn_quicklink.addClass('is_opened');
40        }
41    });
42
43
44    if ($('.content > *:first-child').hasClass('typo_slider_section')) {
45        var typo_topbar_position = function () {
46            if (($(window).scrollTop() + $topbar.outerHeight()) >= $slider.innerHeight() + $topbar.outerHeight()) {
47                $topbar.addClass('is_fixed');
48                $lok_slider_quickmenu.removeClass('show_at_top');
49                document.getElementsByClassName('topbar')[0].style.top = '0px';
50            } else {
51                $topbar.removeClass('is_fixed');
52                $lok_slider_quickmenu.addClass('show_at_top');
53                $lok_btn_quicklink.removeClass('is_opened');
54                $lok_slider_quickmenu.removeClass('show_at_bottom');
55                document.getElementsByClassName('topbar')[0].style.top = ($(window).outerHeight() - $topbar.outerHeight()) + 'px';
56            }
57
58        };
59
60
61        var resizeTimer;
62        typo_topbar_position();
63
64        $(window).scroll(function () {
65            clearTimeout(resizeTimer);
66            resizeTimer = setTimeout(typo_topbar_position(), 250);
67        });
68        $(window).resize(function () {
69            clearTimeout(resizeTimer);
70            resizeTimer = setTimeout(typo_topbar_position(), 250);
71            if (window.Foundation.MediaQuery.current.match(/large/)) {
72                $topbar.removeClass('nav_opened');
73            }
74        });
75    }
76
77
78    /**
79     * Simple scrollbar implementaion
80     */
81    $scrollbars_ul.each(function (index) {
82        //var el = $scrollbars[index].id;
83        //new SimpleBar(el, { autoHide: true });
84        new SimpleBar($scrollbars_ul[index], { autoHide: false });
85    });
86
87    $scrollbar_content.each(function (index) {
88        //var el = $scrollbars[index].id;
89        //new SimpleBar(el, { autoHide: true });
90        new SimpleBar($scrollbar_content[index], { autoHide: false });
91    });
92
93    $scrollbar_content_new.each(function (index) {
94        //var el = $scrollbars[index].id;
95        //new SimpleBar(el, { autoHide: true });
96        new SimpleBar($scrollbar_content_new[index], { autoHide: false });
97    });
98    
99});

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.