| Line 438... |
Line 438... |
| 438 |
|
438 |
|
| 439 |
// Check if this is a break log entry
|
439 |
// Check if this is a break log entry
|
| 440 |
if (data[i].breakLog) {
|
440 |
if (data[i].breakLog) {
|
| 441 |
var status = (data[i].breakStatus || '').toLowerCase();
|
441 |
var status = (data[i].breakStatus || '').toLowerCase();
|
| 442 |
if (status.indexOf('available') >= 0) {
|
442 |
if (status.indexOf('available') >= 0) {
|
| 443 |
rowStyle = 'style="background-color: #d4edda; color: #155724;"'; // Light green
|
443 |
rowStyle = 'style="background-color: #f8d7da; color: #721c24;"'; // Light red
|
| 444 |
} else if (status.indexOf('trying') >= 0) {
|
444 |
} else if (status.indexOf('trying') >= 0) {
|
| 445 |
rowStyle = 'style="background-color: #fff3cd; color: #856404;"'; // Light yellow
|
445 |
rowStyle = 'style="background-color: #fff3cd; color: #856404;"'; // Light yellow
|
| 446 |
} else if (status.indexOf('logged out') >= 0 || status.indexOf('logout') >= 0) {
|
446 |
} else if (status.indexOf('logged out') >= 0 || status.indexOf('logout') >= 0) {
|
| 447 |
rowStyle = 'style="background-color: #e2e3e5; color: #383d41;"'; // Light grey
|
447 |
rowStyle = 'style="background-color: #e2e3e5; color: #383d41;"'; // Light grey
|
| 448 |
} else if (status.indexOf('break') >= 0) {
|
448 |
} else if (status.indexOf('break') >= 0) {
|
| Line 607... |
Line 607... |
| 607 |
|
607 |
|
| 608 |
// Check if this is a break log entry
|
608 |
// Check if this is a break log entry
|
| 609 |
if (data[i].breakLog) {
|
609 |
if (data[i].breakLog) {
|
| 610 |
var status = (data[i].breakStatus || '').toLowerCase();
|
610 |
var status = (data[i].breakStatus || '').toLowerCase();
|
| 611 |
if (status.indexOf('available') >= 0) {
|
611 |
if (status.indexOf('available') >= 0) {
|
| 612 |
rowStyle = 'style="background-color: #d4edda; color: #155724;"'; // Light green
|
612 |
rowStyle = 'style="background-color: #f8d7da; color: #721c24;"'; // Light red
|
| 613 |
} else if (status.indexOf('trying') >= 0) {
|
613 |
} else if (status.indexOf('trying') >= 0) {
|
| 614 |
rowStyle = 'style="background-color: #fff3cd; color: #856404;"'; // Light yellow
|
614 |
rowStyle = 'style="background-color: #fff3cd; color: #856404;"'; // Light yellow
|
| 615 |
} else if (status.indexOf('logged out') >= 0 || status.indexOf('logout') >= 0) {
|
615 |
} else if (status.indexOf('logged out') >= 0 || status.indexOf('logout') >= 0) {
|
| 616 |
rowStyle = 'style="background-color: #e2e3e5; color: #383d41;"'; // Light grey
|
616 |
rowStyle = 'style="background-color: #e2e3e5; color: #383d41;"'; // Light grey
|
| 617 |
} else if (status.indexOf('break') >= 0) {
|
617 |
} else if (status.indexOf('break') >= 0) {
|