I would like to change the value on the third column depending on the time. By the way, I created this table on app script.
For example:
- When the time hits 1:00 PM the status must be "Lunch" (1 hr)
- When the time hits 6:00 PM the status must be "Shift Ended".
I'm new to coding and on the process of learning javascript.
Is there a way to do it?
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<h2>Employee Status</h2>
<table>
<tr>
<th>Employee</th>
<th>Shift</th>
<th>Status</th>
</tr>
<tr>
<td>Juan Dela Cruz</td>
<td>9:00 AM - 6:00 PM</td>
<td>Working</td>
</tr>
</table>
