PageSourceSearch

https://youm.netlify.app/js/plugins/tabs.js

js youm.netlify.app collected 2026-10-03 11:38:37 UTC 847 bytes, 29 lines download raw bytes

1function setTabs() {
2  let tabs = document.querySelectorAll(".tabs .nav-tabs");
3  if (!tabs) return;
4
5  tabs.forEach((tab) => {
6    tab.querySelectorAll("a").forEach((link) => {
7      link.addEventListener("click", (e) => {
8        e.preventDefault();
9        e.stopPropagation();
10
11        const parentTab = e.target.parentElement.parentElement.parentElement;
12        parentTab.querySelector(".nav-tabs .active").classList.remove("active");
13        e.target.parentElement.classList.add("active");
14        parentTab
15          .querySelector(".tab-content .active")
16          .classList.remove("active");
17        parentTab.querySelector(e.target.className).classList.add("active");
18
19        return false;
20      });
21    });
22  });
23}
24
25try {
26  swup.hooks.on("page:view", setTabs);
27} catch (e) {}
28
29document.addEventListener("DOMContentLoaded", setTabs);

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.