HEX
Server: Apache
System: Linux b:u:newjapaneti:1 3.10.0-1160.31.1.el7.x86_64 #1 SMP Thu Jun 10 13:32:12 UTC 2021 x86_64
User: newjapaneti (381717)
PHP: 5.6.30
Disabled: apache_get_modules, apache_get_version, apache_reset_timeout, apache_getenv, apache_note, apache_setenv
Upload Files
File: //proc/self/cwd/docs_old/vendor/sortable/js/install.js
(function(){
  var options = INSTALL_OPTIONS;

  Array.prototype.forEach.call(document.querySelectorAll('table'), function(table){
    var firstTBodyRow, tHead;

    try {
      // If there’s no tHead but the first tBody row contains ths, create a tHead and move that row into it.
      if (!table.tHead && (firstTBodyRow = table.tBodies[0].rows[0]).children[0].tagName === 'TH') {
        tHead = document.createElement('thead');
        tHead.appendChild(firstTBodyRow);
        table.insertBefore(tHead, table.firstChild);
      }

      // Sortable requires this
      if (table.tHead.rows.length !== 1) {
        return;
      }
    } catch (err) {
      return;
    }

    table.setAttribute('data-sortable', '');
    table.classList.add('sortable-theme-' + options.theme);
  });
})();