PageSourceSearch

https://www.au-pida.org/wp-content/plugins/pearl-header-builder/assets/frontend/assets/js/app.js?ver=1.3.8

js au-pida.org collected 2026-10-03 17:45:21 UTC 3,219 bytes, 90 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3        stm_switcher();
4        js_active_trigger();
5        js_active_switch();
6        close_mobile_header();
7    });
8
9    function js_active_switch() {
10        $('.js_active_switcher .js_active_switcher__a').on('click', function (e) {
11            e.preventDefault();
12            $(this).closest('.js_active_switcher').find('.js_active_switcher__a').removeClass('active');
13            $(this).addClass('active');
14        })
15    }
16
17    function js_active_trigger() {
18        var opened = false;
19        var dataToggle = '';
20        var $element = '';
21        var $this = '';
22        $('.js_trigger__click').on('click', function (e) {
23            e.preventDefault();
24            e.stopPropagation();
25
26            $this = $(this);
27
28            dataToggle = $(this).attr('data-toggle');
29            if (typeof dataToggle == 'undefined') dataToggle = true;
30
31            $element = $(this).closest('.js_trigger').find('.js_trigger__unit');
32            var element = $(this).attr('data-element');
33            if (typeof element !== 'undefined') $element = $(element);
34
35            if (dataToggle && dataToggle !== 'false') {
36                $element.slideToggle('fast');
37            } else {
38                $element.toggleClass('active');
39            }
40
41            $(this).toggleClass('active');
42            opened = $(this).hasClass('active') ? true : false;
43        });
44    }
45
46    function stm_switcher() {
47        $('.stm-switcher__trigger').on("click", function () {
48            $(this).closest('.stm-switcher').find('.stm-switcher__list').toggleClass('active');
49            $(this).toggleClass('active');
50        });
51
52        $('.stm-switcher__option').on("click", function () {
53            var stm_switch = $(this).data('switch');
54
55            /*Change in list*/
56            $(this).closest('.stm-switcher').parent().find('.js-switcher').addClass('js-switcher__hidden');
57            $(this).closest('.stm-switcher').parent().find('.js-switcher_' + stm_switch).removeClass('js-switcher__hidden');
58
59            /*Change trigger text*/
60            $(this).closest('.stm-switcher').find('.stm-switcher__text').text($(this).text());
61
62            /*Close dropdown*/
63            $(this).closest('.stm-switcher__list').removeClass('active');
64            $(this).closest('.stm-switcher').find('.stm-switcher__trigger').removeClass('active');
65        });
66    }
67
68    function close_mobile_header() {
69        $('.stm-header__overlay').on('click', function(e){
70            $('.stm-header__overlay, .stm-header, .stm_mobile__switcher').removeClass('active');
71        });
72
73        $('.stm-navigation li.menu-item-has-children > a').each(function () {
74            var href = $(this).attr("href");
75            if (href == "#") {
76                $(this).parent().addClass('href_empty');
77            }
78
79            $(this).append('<span class="stm_mobile__dropdown"></span>');
80        });
81
82        $('body').find('.stm_mobile__dropdown').on('click', function (e) {
83            e.preventDefault();
84            e.stopPropagation();
85            $(this).closest('li').toggleClass('active');
86            $(this).closest('li').children('.sub-menu').toggle();
87        });
88    }
89
90})(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.