PageSourceSearch

https://internationalcopper.org/wp-content/plugins/custom-copper-alliance//js/tabs.js?ver=7.1.2

js internationalcopper.org collected 2026-10-03 21:18:38 UTC 1,105 bytes, 39 lines download raw bytes

1jQuery(document).ready(function($) {
2
3$(".tab-content").removeClass('active');
4  
5  $("div.tab_container").each(function() {
6    $(this).find('div:first').addClass("active");
7    $(this).nextAll('div.tabs:first').find('div.tablink:first').addClass('active');
8  });
9  
10  $("div.tab-accordion .tablink a").click(function(e) {
11    e.preventDefault();
12    if ($(this).parents('div.tab-content').hasClass('active')) {
13      $(this).parents('div.tab-content').removeClass('active');
14    }
15    else {
16      $(this).parents('div.tab-content').addClass('active').siblings('div.tab-content').removeClass("active"); 
17    }
18      
19  });
20
21  $("div.tabs div.tablink a").click(function() {
22      var cTab = $(this).closest('div');
23      cTab.siblings('div').removeClass("active");
24      cTab.addClass("active");
25      cTab.closest('div.tabs').prevAll('.tab_container:first').find('.tab-content').removeClass('active'); 
26
27      var activeTab = $(this).attr("href"); //Find the href attribute value to identify the active tab + content
28      $(activeTab).addClass('active');
29    
30      return false;
31  });
32  
33
34 
35  
36});
37
38
39

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.