js/app.js
/* This function creates the first row of the table.
------------------------------------------------------------------------------------------------------*/
This function creates the first row of the table.
This function creates the first row of the table .
function tableHeader() {
  var trEl = document.createElement('tr');
  var thEl = document.createElement('th');
  thEl.textContent = 'Store Locations';
  trEl.appendChild(thEl);
  for(var i = 0; i < hours.length; i ++) {
    thEl = document.createElement('th');
    thEl.textContent = hours[i];
    trEl.appendChild(thEl);
  }
  thEl = document.createElement('th');
  thEl.textContent = 'Daily Location Totals';
  trEl.appendChild(thEl);
  cookieStands.appendChild(trEl);
}
function tableHeader ( ) { var trEl = document . createElement ( 'tr' ) ; var thEl = document . createElement ( 'th' ) ; thEl . textContent = 'Store Locations' ; trEl . appendChild ( thEl ) ; for ( var i = 0 ; i < hours . length ; i ++ ) { thEl = document . createElement ( 'th' ) ; thEl . textContent = hours [ i ] ; trEl . appendChild ( thEl ) ; } thEl = document . createElement ( 'th' ) ; thEl . textContent = 'Daily Location Totals' ; trEl . appendChild ( thEl ) ; cookieStands . appendChild ( trEl ) ; }
This function creates the first row of the table.
This function creates the first row of the table .
/* This holds the table row in the variable trEl and table data in the variable tdEl.
  ----------------------------------------------------------------------------------------------------*/ /* This will list the hours in a row.
  ----------------------------------------------------------------------------------------------------*/