Skip to content

Commit

Permalink
Updated tables to support light/dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffyactive committed Jan 18, 2024
1 parent d34202d commit 6102188
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 20 deletions.
7 changes: 4 additions & 3 deletions ambient-context/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@
<table id="discreteData">
<!-- Stats -->
<tfoot>
<tr class="bg-ambient bg-gradient text-white">
<td colspan="4">
<tr>
<td class="text-body-secondary bg-body-secondary"
colspan="4">
<ul class="list-inline text-center mb-1">
<li class="list-inline-item">
<span id="deviceCount" class="display-5"> 0 </span>
Expand All @@ -229,7 +230,7 @@
<!-- Continuous -->
<table id="continuousData">
<thead>
<tr class="border border-bottom border-0">
<tr>
<th class="display-1 bg-primary bg-gradient text-white"
colspan="3">
<span class="display-4"> Ambient Context </span>
Expand Down
8 changes: 4 additions & 4 deletions hello-beaver/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -177,25 +177,25 @@
<div class="card-body">
<span id="deviceCount" class="card-text display-4"> 0 </span>
</div>
<div class="card-footer bg-dark text-white"> devices </div>
<div class="card-footer text-body-secondary"> devices </div>
</div>
<div class="card">
<div class="card-body">
<span id="raddecRate" class="card-text display-4"> 0.0 </span>
</div>
<div class="card-footer bg-dark text-white"> raddec/s </div>
<div class="card-footer text-body-secondary"> raddec/s </div>
</div>
<div class="card">
<div class="card-body">
<span id="dynambRate" class="card-text display-4"> 0.0 </span>
</div>
<div class="card-footer bg-dark text-white"> dynamb/s </div>
<div class="card-footer text-body-secondary"> dynamb/s </div>
</div>
<div class="card">
<div class="card-body">
<span id="spatemRate" class="card-text display-4"> 0.0 </span>
</div>
<div class="card-footer bg-dark text-white"> spatem/s </div>
<div class="card-footer text-body-secondary"> spatem/s </div>
</div>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions hello-dynamb/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@
<table id="devicestable">
<!-- Stats -->
<tfoot>
<tr class="bg-ambient bg-gradient text-white">
<td colspan="4">
<tr>
<td class="text-body-secondary bg-body-secondary"
colspan="4">
<ul class="list-inline text-center mb-1">
<li class="list-inline-item">
<span id="deviceCount" class="display-5"> 0 </span>
Expand All @@ -213,7 +214,7 @@
<div class="col-12 col-xxl-5">
<table class="table table-hover text-center">
<thead>
<tr class="border border-bottom border-0">
<tr>
<th class="display-1 bg-primary bg-gradient text-white">
<span class="display-4"> Hello dynamb! </span>
</th>
Expand Down
7 changes: 4 additions & 3 deletions hello-spatem/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,9 @@
<table id="devicestable">
<!-- Stats -->
<tfoot>
<tr class="bg-ambient bg-gradient text-white">
<td colspan="4">
<tr>
<td class="text-body-secondary bg-body-secondary"
colspan="4">
<ul class="list-inline text-center mb-1">
<li class="list-inline-item">
<span id="deviceCount" class="display-5"> 0 </span>
Expand All @@ -213,7 +214,7 @@
<div class="col-12 col-xxl-5">
<table class="table table-hover text-center">
<thead>
<tr class="border border-bottom border-0">
<tr">
<th class="display-1 bg-primary bg-gradient text-white">
<span class="display-4"> Hello spatem! </span>
</th>
Expand Down
6 changes: 3 additions & 3 deletions js/occupancy-observer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright reelyActive 2022-2023
* Copyright reelyActive 2022-2024
* We believe in an open Internet of Things
*/

Expand Down Expand Up @@ -234,7 +234,7 @@ function updateOccupancyRow(status, deviceSignature) {
createElement('td', null, status.title || deviceSignature),
createElement('td', 'animate-breathing',
createOccupancyIcon(status.current)),
createElement('td', 'table-info',
createElement('td', 'bg-body-secondary',
createOccupancyIcon(status.previous[0])),
createElement('td', null, createOccupancyIcon(status.previous[1])),
createElement('td', null, createOccupancyIcon(status.previous[2]))
Expand All @@ -258,7 +258,7 @@ function createOccupancyIcon(isMotionDetected) {
iconClass = 'fas fa-times-circle text-success';
break;
default:
iconClass = 'fas fa-question-circle text-light';
iconClass = 'fas fa-question-circle text-body-tertiary';
}

return createElement('i', iconClass);
Expand Down
5 changes: 3 additions & 2 deletions live-directory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@
<table id="discreteData">
<!-- Stats -->
<tfoot>
<tr class="bg-ambient bg-gradient text-white">
<td colspan="4">
<tr>
<td class="text-body-secondary bg-body-secondary"
colspan="4">
<ul class="list-inline text-center mb-1">
<li class="list-inline-item">
<span id="deviceCount" class="display-5"> 0 </span>
Expand Down
5 changes: 3 additions & 2 deletions occupancy-observer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,14 @@
<table class="table table-hover text-center">
<thead>
<tr>
<td id="time" class="bg-dark bg-gradient text-white display-1"
<td id="time"
class="bg-dark bg-gradient text-white display-1"
colspan="5"> : </td>
</tr>
<tr class="text-muted">
<th> <i class="fas fa-barcode"></i> </th>
<th> <i class="fas fa-clock"></i> </th>
<th class="table-info"> <small>-1m</small> </th>
<th class="bg-body-secondary"> <small>-1m</small> </th>
<th> <small>-2m</small> </th>
<th> <small>-3m</small> </th>
</tr>
Expand Down

0 comments on commit 6102188

Please sign in to comment.