PageSourceSearch

https://lacerretaterme.it/wp-content/themes/zaki/resources/js/components/navmain.js

js lacerretaterme.it collected 2026-10-08 22:56:08 UTC 1,616 bytes, 53 lines download raw bytes

1; (function (window, document, $, namespaceName, componentJsName, componentCssClassName, undefined) {
2
3    'use strict';
4
5    var _ns = window[namespaceName] = window[namespaceName] || {};
6
7    function init(jqElement) {
8
9        var jqNavUl = jqElement.find('ul:first');
10
11        jqNavUl.superfish({
12            delay: 800,
13            hoverClass: 'hover',
14            popUpSelector: '.sub-menu',
15            cssArrows: false,
16            disableHI: false
17        });
18
19        var jqClonedNavForMobile = jqNavUl.clone();
20
21        jqClonedNavForMobile.find('[style]').removeAttr('style');
22
23        $()
24            .add(jqClonedNavForMobile )
25            .add(jqClonedNavForMobile.find('*') )
26            .removeClass('sf-js-enabled sf-with-ul')
27        ;
28        
29        $('#navmain-mobile-placeholder').replaceWith(
30            jqClonedNavForMobile
31        );
32
33    }
34
35    function boot() {
36    }
37
38    // Initialize the component
39    $(document).on('init-ui-components', function () {
40        var _components = $('[data-js-component="' + componentJsName + '"]');
41        _components.filter(':not(.js-component-loaded)').each(function () {
42            if (_components.filter('.js-component-loaded').length < 1) {
43                console.log('Initializing "' + componentJsName + '" ...');
44                // Boot the common logic of this kind of components
45                boot();
46            }
47            // Init the single DOM component of this kind
48            init($(this));
49            $(this).addClass('js-component-loaded');
50        });
51    });
52
53})(window, document, jQuery, 'zaki', 'navmain', 'zui-navmain');

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.