PageSourceSearch

https://visithighworth.co.uk/assets/js/w3toggletabs.js

js visithighworth.co.uk collected 2026-10-03 18:15:44 UTC 890 bytes, 23 lines download raw bytes

1function openInfo(evt, typeName) {
2  // Declare all variables
3  var i, tabcontent, tablinks;
4
5  // Get all elements with class="tabcontent" and hide them
6  tabcontent = document.getElementsByClassName("tabcontent");
7  for (i = 0; i < tabcontent.length; i++) {
8    tabcontent[i].style.display = "none";
9  }
10
11  // Get all elements with class="tablinks" and remove the class "active"
12  tablinks = document.getElementsByClassName("tablinks");
13  for (i = 0; i < tablinks.length; i++) {
14    tablinks[i].className = tablinks[i].className.replace(" active", "");
15  }
16
17  // Show the current tab, and add an "active" class to the button that opened the tab
18  document.getElementById(typeName).style.display = "block";
19  evt.currentTarget.className += " active";
20 } 
21 
22  // Get the element with id="defaultOpen" and click on it
23  document.getElementById("defaultOpen").click();

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.