salesCalc.js
// renders a header for our location data table that hour labels above each column.

renders a header for our location data table that hour labels above each column.
renders a header for our location data table that hour labels above each column .
function renderHeader() {
    var elTableHeader = makeBaby('thead', '', elTable);
    var elTableHeadRow = makeBaby('tr', '', elTableHeader);
    makeBaby('th', 'Location', elTableHeadRow);
    for (var i = 0; i < openHours.length; i++) {
        makeBaby('th', openHours[i], elTableHeadRow, 'hour');
    }
    makeBaby('th', 'Day\'s total', elTableHeadRow);
}
function renderHeader ( ) { var elTableHeader = makeBaby ( 'thead' , '' , elTable ) ; var elTableHeadRow = makeBaby ( 'tr' , '' , elTableHeader ) ; makeBaby ( 'th' , 'Location' , elTableHeadRow ) ; for ( var i = 0 ; i < openHours . length ; i ++ ) { makeBaby ( 'th' , openHours [ i ] , elTableHeadRow , 'hour' ) ; } makeBaby ( 'th' , 'Day\'s total' , elTableHeadRow ) ; }
renders a header for our location data table that hour labels above each column.
renders a header for our location data table that hour labels above each column .