PageSourceSearch

https://cloudcx.ai/wp-content/themes/zenfy/assets/js/sidebar.js?ver=1722601462

js cloudcx.ai collected 2026-10-05 11:55:46 UTC 1,842 bytes, 63 lines download raw bytes

1/* ---------------------------------------------
2     mobile-menu
3--------------------------------------------- */
4const navSlide = () => {
5  const burger = document.querySelector(".mobile-menu-btn");
6  const nav = document.querySelector(".main-nav2");
7  const navLinks = document.querySelectorAll(".main-nav2 .menu-list .menu-item");
8
9  const menuClose = document.querySelector(".menu-close-btn");
10
11  if (burger) {
12    burger.addEventListener("click", () => {
13      nav.classList.add("show-menu");
14
15      navLinks.forEach((link, index) => {
16        if (link.style.animation) {
17          link.style.animation = "";
18        } else {
19          link.style.animation = `navLinkFade 0.4s ease forwards ${index / 10 + 0.5
20            }s `;
21        }
22      });
23      // burger.classList.toggle("toggle");
24    });
25  }
26
27  if (menuClose) {
28    menuClose.addEventListener("click", () => {
29      nav.classList.remove("show-menu");
30
31      navLinks.forEach((link, index) => {
32        if (link.style.animation) {
33          link.style.animation = "";
34        } else {
35          link.style.animation = `navLinkFade 0.4s ease forwards ${index / 10 + 0.5
36            }s `;
37        }
38      });
39
40      // burger.classList.toggle("toggle");
41    });
42  }
43
44
45};
46
47navSlide();
48
49/* ---------------------------------------------
50   mobile-drop-down
51--------------------------------------------- */
52
53jQuery(".main-nav2 .bi").on('click', function (event) {
54  var $fl = $(this);
55  $(this).parent().siblings().find('.sub-menu').slideUp();
56  $(this).parent().siblings().find('.bi').addClass('bi-plus-lg');
57  if ($fl.hasClass('bi-plus-lg')) {
58    $fl.removeClass('bi-plus-lg').addClass('bi-dash-lg');
59  } else {
60    $fl.removeClass('bi-dash-lg').addClass('bi-plus-lg');
61  }
62  $fl.next(".sub-menu").slideToggle();
63});

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.