PageSourceSearch

https://prometheus.org.ua/wp-content/themes/prometheus-new/assets/js/custom-tabs.js?ver=1.0

js prometheus.org.ua collected 2026-10-01 10:28:56 UTC 1,863 bytes, 59 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function () {
2
3    const tabs = document.querySelectorAll('.tab');
4    const tabContents = document.querySelectorAll('.tab-content');
5
6    function setActiveTab(tab) {
7        tabs.forEach(t => {
8            t.classList.remove('active');
9        });
10        tabContents.forEach(content => content.style.display = 'none');
11
12
13        tab.classList.add('active');
14        document.getElementById(tab.getAttribute('href').substring(1)).style.display = 'block';
15    }
16
17    tabs.forEach(tab => {
18        tab.addEventListener('click', function (event) {
19            event.preventDefault();
20            setActiveTab(this);
21        });
22    });
23
24    if (tabs.length > 0) {
25        setActiveTab(tabs[0]);
26    }
27});
28document.addEventListener('DOMContentLoaded', function () {
29
30    function setActiveTab(tab) {
31        document.querySelectorAll('.b2b-tab').forEach(function (t) {
32            t.classList.remove('active-tab-b2b');
33            t.querySelector('.b2b-tab__tag').classList.remove('active-tag-b2b');
34        });
35
36        document.querySelectorAll('.tab-content-b2b').forEach(function (content) {
37            content.style.display = 'none';
38        });
39
40        tab.classList.add('active-tab-b2b');
41        tab.querySelector('.b2b-tab__tag').classList.add('active-tag-b2b');
42
43
44        var targetId = tab.getAttribute('href').substring(1);
45        document.getElementById(targetId).style.display = 'block';
46    }
47
48    document.querySelectorAll('.b2b-tab').forEach(function (tab) {
49        tab.addEventListener('click', function (event) {
50            event.preventDefault();
51            setActiveTab(this);
52        });
53    });
54
55    if (document.querySelectorAll('.b2b-tab').length > 0) {
56        setActiveTab(document.querySelectorAll('.b2b-tab')[0]);
57    }
58});
59

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.