PageSourceSearch

https://theviifoundation.org/app/plugins/vii-menu/inc/vii-menu.js?ver=1790911239

js theviifoundation.org collected 2026-10-02 03:22:10 UTC 1,126 bytes, 41 lines download raw bytes

1(function($) {
2  function initMenu() {
3    const toggleIcons = document.querySelectorAll('.vii-menu .toggle-icon');
4
5    toggleIcons.forEach((icon) => {
6      icon.addEventListener('click', (event) => {
7        event.preventDefault();
8        const menuItem = icon.closest('li');
9        const submenu = menuItem.querySelector('.submenu');
10
11        if (submenu) {
12          if (submenu.style.display === 'block') {
13            closeSubmenu(submenu, icon);
14          } else {
15            openSubmenu(submenu, icon);
16          }
17        }
18      });
19    });
20  }
21
22  function openSubmenu(submenu, icon) {
23    submenu.style.display = 'block';
24    icon.classList.add('open');
25    icon.innerHTML = '<em class="eicon-caret-up"></em>';
26  }
27
28  function closeSubmenu(submenu, icon) {
29    submenu.style.display = 'none';
30    icon.classList.remove('open');
31    icon.innerHTML = '<em class="eicon-caret-down"></em>';
32  }
33
34  // Run initMenu on document ready
35  $(document).ready(initMenu);
36
37  // Run initMenu when Elementor popup is opened
38  $(document).on('elementor/popup/show', (event, id, instance) => {
39    initMenu();
40  });
41})(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.