PageSourceSearch

https://www.affingroup.com/themes/demo/js/tabs.js

js affingroup.com collected 2026-10-02 17:45:27 UTC 730 bytes, 24 lines download raw bytes

1function affinAlwaysSwitchToTab(tabName) {
2    const tabs = document.querySelectorAll('.block-affin-always-tabs .tab-content');
3    for (let i = 0; i < tabs.length; i++) {
4        tabs[i].style.display = "none";
5    }
6
7    const tab = document.getElementById(tabName);
8    if (tab) {
9        tab.style.display = "block";
10    }
11
12    const headerTab = document.querySelectorAll('.tab-links');
13    if (headerTab) {
14        for (let j = 0; j < headerTab.length; j++) {
15            headerTab[j].classList.remove('active');
16        }
17        const selectedTab = document.getElementById(tabName + '-tab');
18        if (selectedTab) {
19            selectedTab.classList.add('active');
20        }
21    }
22}
23
24affinAlwaysSwitchToTab('services');

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.