PageSourceSearch

https://www.leadsnearby.com/wp-content/themes/hypercore/assets/js/enhanced-blog-menu.js?ver=1.0.0

js leadsnearby.com collected 2026-09-24 13:04:56 UTC 1,505 bytes, 44 lines download raw bytes

1(function () {
2  const menu = document.querySelector('#blogMenu');
3  const button = document.querySelector('#blogMenuButton');
4  const embedMenuClick = document.querySelectorAll('.blog-menu__embed-click');
5  const embedMenu = document.querySelectorAll('.blog-menu__embed-list');
6  const embedMenuIcon = document.querySelectorAll('.blog-menu__icon');
7  const menuContainer = document.querySelector('#blogMenuCont');
8
9  button.addEventListener('click', function () {
10    const dataSwitcher = {
11      false: {
12        state: 'true',
13        icon: 'bars',
14      },
15      true: {
16        state: 'false',
17        icon: 'window-close',
18      },
19    };
20
21    menu.dataset.expanded = dataSwitcher[menu.dataset.expanded].state;
22    menuContainer.dataset.expanded = menu.dataset.expanded.state;
23    button.setAttribute('icon', dataSwitcher[menu.dataset.expanded].icon);
24  });
25
26  embedMenuClick.forEach((element, index) => {
27    element.addEventListener('click', function () {
28      const dataSwitcher = {
29        false: {
30          state: 'true',
31          icon: 'angle-up',
32        },
33        true: {
34          state: 'false',
35          icon: 'angle-down',
36        },
37      };
38
39      embedMenu[index].dataset.expanded = dataSwitcher[embedMenu[index].dataset.expanded].state;
40      element.dataset.expanded = embedMenu[index].dataset.expanded.state;
41      embedMenuIcon[index].setAttribute('icon', dataSwitcher[embedMenu[index].dataset.expanded].icon);
42    });
43  });
44})();

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.