PageSourceSearch

https://obot.ai/wp-content/themes/oboto/blocks/navigation/view-script.js?ver=1.2.32.0

js obot.ai collected 2026-10-05 12:19:18 UTC 1,390 bytes, 39 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2  // Code to be executed when the DOM is ready
3  const navigations = document.querySelectorAll(".navigation");
4  if (navigations) {
5    navigations.forEach((navigation) => {
6      const openBtn = navigation.querySelector(
7        ".navigation__responsive-container-open"
8      );
9
10      openBtn.addEventListener("click", () => {
11        navigation.classList.add("menu-opened");
12        document.querySelector("body").classList.add("menu-active");
13
14        document.querySelector("body").addEventListener("click", (e) => {
15          if (
16            e.target !=
17              navigation.querySelector(".navigation__responsive-container") &&
18            !navigation
19              .querySelector(".navigation__responsive-container")
20              .contains(e.target) &&
21            e.target != openBtn &&
22            !openBtn.contains(e.target)
23          ) {
24            navigation.classList.remove("menu-opened");
25            document.querySelector("body").classList.remove("menu-active");
26          }
27        });
28      });
29
30      const closeBtn = navigation.querySelector(
31        ".navigation__responsive-container-close"
32      );
33      closeBtn.addEventListener("click", () => {
34        navigation.classList.remove("menu-opened");
35        document.querySelector("body").classList.remove("menu-active");
36      });
37    });
38  }
39});

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.