function hoursTable() {
    // obenHour.push('Daily Location Total');
    // var container = document.getElementById('location1');

    // var tableEl = document.createElement('table');
    // container.appendChild(tableEl);

    var row = document.createElement('tr');
    tableEl.appendChild(row);

    var head = document.createElement('th');
    row.appendChild(head);

    head.textContent = 'Work Hours';

    for (var hour = 0; hour <= obenHour.length; hour++) {

        var cell = document.createElement('td');
        row.appendChild(cell);
        cell.textContent = obenHour[hour];
    }
    cell.textContent = 'Daily Location Total';
}
// the following function creats the first row in table which includes the working hour
the following function creats the first row in table which includes the working hour
the following function creats the first row in table which includes the working hour
function hoursTable() {
    var row = document.createElement('tr');
    tableEl.appendChild(row);
    var head = document.createElement('th');
    row.appendChild(head);
    head.textContent = 'Work Hours';
    for (var hour = 0; hour <= obenHour.length; hour++) {
        var cell = document.createElement('td');
        row.appendChild(cell);
        cell.textContent = obenHour[hour];
    }
    cell.textContent = 'Daily Location Total';
}
function hoursTable ( ) { var row = document . createElement ( 'tr' ) ; tableEl . appendChild ( row ) ; var head = document . createElement ( 'th' ) ; row . appendChild ( head ) ; head . textContent = 'Work Hours' ; for ( var hour = 0 ; hour <= obenHour . length ; hour ++ ) { var cell = document . createElement ( 'td' ) ; row . appendChild ( cell ) ; cell . textContent = obenHour [ hour ] ; } cell . textContent = 'Daily Location Total' ; }
the following function creats the first row in table which includes the working hour
the following function creats the first row in table which includes the working hour
// obenHour.push('Daily Location Total'); // var container = document.getElementById('location1'); // var tableEl = document.createElement('table'); // container.appendChild(tableEl);