text: document.addEventListener('DOMContentLoaded',function (){
  
      document.querySelectorAll('table').forEach(function (table) {
          let labels = Array.from(table.querySelectorAll('th')).map(function (th) {
              return th.innerText
          })
          table.querySelectorAll('td').forEach(function (td, i) {
              td.setAttribute('data-label', labels[i % labels.length])
          })
      })
  
  })