PageSourceSearch

https://www.enter.ba/wp-content/plugins/menufication/js/menufication-setup.js?ver=7.1.2

js enter.ba collected 2026-10-02 23:51:17 UTC 3,588 bytes, 72 lines download raw bytes

1
2var MENUFICATION_INSTANCE;
3// Initalize the menu with correct options
4(function(root, $) {
5
6    $(document).ready(function() {
7
8        // Set up correct element to use
9
10        if(wp_menufication.customMenuElement && wp_menufication.customMenuElement.length > 0) {
11            MENUFICATION_INSTANCE = $(wp_menufication.customMenuElement);
12        }
13        else {
14            $(wp_menufication.element).parent().addClass( wp_menufication.element.substr(1) );
15            $(wp_menufication.element).children().first().unwrap();
16
17            MENUFICATION_INSTANCE = $("." + wp_menufication.element.substr(1) );
18
19            if(MENUFICATION_INSTANCE.length > 1) {
20                MENUFICATION_INSTANCE.last().remove();
21            }
22        }
23
24        // Hide first h3 and "skip to content" for default wp page menu
25        if(wp_menufication.is_page_menu) {
26            MENUFICATION_INSTANCE.children('h3').first().hide();
27            MENUFICATION_INSTANCE.children('a').first().hide();
28        }
29
30        if(wp_menufication.is_user_logged_in == 1 && $('#wpadminbar').length ) {
31            $('body').addClass('menufication-is-logged-in');
32            wp_menufication.addToFixedHolder += ',#wpadminbar';
33        }
34
35        MENUFICATION_INSTANCE.menufication({
36
37            // Basic settings
38            toggleElement:          wp_menufication.toggleElement || null,
39            hideDefaultMenu:        wp_menufication.hideDefaultMenu == "on" ? true : false,
40            childMenuSupport:       wp_menufication.childMenuSupport == "on" ? true : false,
41            childMenuSelector:      wp_menufication.childMenuSelector || 'sub-menu',
42            activeClassSelector:    wp_menufication.activeClassSelector || 'current-menu-item',
43            onlyMobile:             wp_menufication.onlyMobile == 'on' ? true : false,
44            menuText:               wp_menufication.menuText,
45            addHomeLink:            wp_menufication.addHomeLink == "on" ? true : false,
46            addHomeText:            wp_menufication.addHomeText || null,
47            addSearchField:         wp_menufication.addSearchField == "on" ? true : false,
48            headerLogo:             wp_menufication.headerLogo || '',
49            headerLogoLink:         wp_menufication.headerLogoLink || '',
50            theme:                  wp_menufication.theme || 'dark',
51            menuLogo:               wp_menufication.menuLogo || '',
52            direction:              wp_menufication.direction || 'left',
53            enableMultiple:         wp_menufication.enableMultiple == '1' ? true : false,
54            multipleContentElement: '#wp_menufication-multiple-content',
55            multipleToggleElement:  '#wp_menufication-multiple-toggle',
56
57            // Advanced settings
58            triggerWidth:           wp_menufication.triggerWidth || null,
59            scrollSpeed:            wp_menufication.scrollSpeed || 0.6,
60            supportAndroidAbove:    wp_menufication.supportAndroidAbove || 3.5,
61            customFixedHeader:      wp_menufication.customFixedHeader || null,
62            addToFixedHolder:       wp_menufication.addToFixedHolder,
63            enableSwipe:            wp_menufication.enableSwipe != 'on' ? false : true,
64            disableSlideScaling:    wp_menufication.disableSlideScaling == 'on' ? true : false,
65            wrapTagsInList:         wp_menufication.wrapTagsInList || '',
66            allowedTags:            wp_menufication.allowedTags,
67            doCapitalization:       wp_menufication.doCapitalization == 'on' ? true : false
68        });
69
70    });
71
72})(window, 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.