PageSourceSearch

https://www.cablecompare.com/js/homepage.js

js cablecompare.com collected 2026-10-03 23:33:53 UTC 474 bytes, 15 lines download raw bytes

1(function () {
2    var tabs = document.querySelectorAll(".cc-homepage .hero-tab");
3
4    tabs.forEach(function (tab) {
5        tab.addEventListener("click", function () {
6            tabs.forEach(function (otherTab) {
7                otherTab.classList.remove("active");
8                otherTab.setAttribute("aria-selected", "false");
9            });
10
11            tab.classList.add("active");
12            tab.setAttribute("aria-selected", "true");
13        });
14    });
15}());

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.