<commit_before>document.head.parentElement.className = "js";

var elements = document.querySelectorAll('a');

var panelElements = document.querySelectorAll('h3');

_.forEach(elements, function(element, index, elements){
  element.addEventListener('click', function(){
    element.parentElement.classList.toggle('tab-current');
  });
});

_.forEach(panelElements, function(element, index, panelElements){
  element.addEventListener('visibilitychange', function(){
    element.parentElement.classList.toggle('.content-current');
  });
});<commit_msg>got tabs to show all content but not just the specific content they're suppose to with @sjoyal<commit_after>document.head.parentElement.className = "js";


//NOT needed when a querySelectorAll already returns an array
//var tabs = ['.icon-shop', '.icon-cup', '.icon-food', '.icon-lab', 'icon-truck'];

var elements = document.querySelectorAll('a');

var panelElements = document.querySelectorAll('.mediabox');

_.forEach(elements, function(element, index, elements) {
  element.addEventListener('click', function() {
    element.parentElement.classList.toggle('tab-current');
    _.forEach(panelElements, function(element, index, panelElements) {
      //  element.addEventListener('visibilitychange', function() {

      element.parentElement.classList.toggle('content-current');



      //  });
    });
  });
});

// _.forEach(panelElements, function(element, index, panelElements){
//   element.addEventListener('visibilitychange', function(){
//     element.parentElement.classList('.mediabox');
//   });
// });

//document.getElementById('tabs').style.display = ''   //shows an element


//TESTING....No success yet
// var tabs = document.getElementsByClassName('.content');
// document.getElementsByClassName('mediabox').onclick = function() {
//     document.getElementById('section-1').style.display = "none";
//     for(var i = 0; i < tabs.length; i++) {
//         tabs[i].style.display = "inline";
//     }
// }
{'fraction_non_alphanumeric': 0.16996448503297817, 'fraction_numerical': 0.0015220700152207, 'mean_word_length': 4.53932584269663, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5489992', 'n_tokens_mistral': 542, 'n_tokens_neox': 534, 'n_words': 105}