Skip to content

Commit

Permalink
Update test.html
Browse files Browse the repository at this point in the history
  • Loading branch information
martinius96 authored Dec 24, 2023
1 parent e891684 commit 54eafb1
Showing 1 changed file with 102 additions and 17 deletions.
119 changes: 102 additions & 17 deletions docs/AR/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,123 @@
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<style>

.aa_h2{
font:100 5rem/1 Roboto;
text-transform: uppercase;
}
table{
background: #fff;
}
table,thead,tbody,tfoot,tr, td,th{
text-align: center;
margin: auto;
border:1px solid #dedede;
padding: 1rem;
width: 50%;
}
.table { display: table; width: 50%; }
.tr { display: table-row; }
.thead { display: table-header-group }
.tbody { display: table-row-group }
.tfoot { display: table-footer-group }
.col { display: table-column }
.colgroup { display: table-column-group }
.td, .th { display: table-cell; width: 50%; }
.caption { display: table-caption }

.table,
.thead,
.tbody,
.tfoot,
.tr,
.td,
.th{
text-align: center;
margin: auto;
padding: 1rem;
}
.table{
background: #fff;
margin: auto;
border:none;
padding: 0;
}

.th{
font-weight: 700;
border:1px solid #dedede;
&:nth-child(odd){
border-right:none;
}
}
.td{
font-weight: 300;
border:1px solid #dedede;
border-top:none;
&:nth-child(odd){
border-right:none;
}
}

.aa_htmlTable{
background: tomato;
padding: 5rem;
display: table;
width: 100%;
height: 100vh;
vertical-align: middle;
}
.aa_css{
background: skyblue;
padding: 5rem;
display: table;
width: 100%;
height: 100vh;
vertical-align: middle;
}

.aa_ahmadawais{
display: table;
width: 100%;
font: 100 1.2rem/2 Roboto;
margin: 5rem auto;
}

</style>
</head>
<body style="margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh;">
<video id="qr-video" style="width: 100%; height: auto;" autoplay></video>
<canvas id="qr-canvas" style="display: none;"></canvas>
<div id="qr-result" style="margin-top: 20px;"></div>
<!-- New div to show the table -->
<div id="table-overlay" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.7); z-index: 999;">
<table id="table-data" style="color: white; font-size: 24px; border: 2px solid white; border-collapse: collapse; width: 80%; height: 80%;"><!-- Adjusted width and height properties -->
<th colspan="2" style="border: 2px solid white; padding: 10px; text-align: center; font-size: 2rem;">
Data from waterwell received:
</th>
<tr>
<th style="border: 2px solid white; padding: 10px; font-size: 1.8rem;">Attribute</th>
<th style="border: 2px solid white; padding: 10px; font-size: 1.8rem;">Value</th>


<table style="width: 100%;" border="1" class="table table-striped flat-table flat-table-3">
<tr>
<td> Data from waterwell received: </td>
</tr>
<tr>
<td>Attribute</th>
<td>Value</th>
</tr>
<tr>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;">Height:</td>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;" id="height-value"></td>
<td>Height:</td>
<td id="height-value"></td>
</tr>
<tr>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;">Volume:</td>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;" id="volume-value"></td>
<td>Volume:</td>
<td id="volume-value"></td>
</tr>
<tr>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;">Time:</td>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;" id="time-value"></td>
<td>Time:</td>
<td id="time-value"></td>
</tr>
<tr>
<td colspan="2" style="border: 2px solid white; padding: 10px; text-align: center;">
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;"><button type="button" class="btn btn-primary" onclick="resumeScanning()">New Scan</button></td>
<td style="border: 2px solid white; padding: 10px; font-size: 1.8rem;"><button type="button" class="btn btn-success" onclick="refreshData()">Refresh Data</button></td>
</td>
<td><button type="button" class="btn btn-primary" onclick="resumeScanning()">New Scan</button></td>
<td><button type="button" class="btn btn-success" onclick="refreshData()">Refresh Data</button></td>
</tr>
</table>
</div>
Expand Down

0 comments on commit 54eafb1

Please sign in to comment.