reformatted file structure and reformatted for phones, as well as fixed web sockets for remote devices
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/luxon@2.3.1/build/global/luxon.min.js"></script>
|
||||
<div class="row mt-2">
|
||||
<div class="col">
|
||||
<h2 class="ms-4">{{miner}}</h2>
|
||||
<h2 class="ms-3 mt-1">{{miner}}</h2>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="d-flex flex-row-reverse">
|
||||
@@ -53,7 +53,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div class="d-flex align-items-center mt-4 ms-4 alert alert-secondary">
|
||||
<div class="d-flex align-items-center mt-4 alert alert-secondary">
|
||||
<div class="mx-auto">Model:</div>
|
||||
<div class="mx-auto fw-bolder" id="minerModel">?</div>
|
||||
<div class="mx-auto" style="border-left: 1px solid grey; height: 50px;"></div>
|
||||
@@ -61,13 +61,13 @@
|
||||
<div class="mx-auto fw-bolder" id="minerHashrate">?</div>
|
||||
</div>
|
||||
|
||||
<div id="errorContainer" class="d-flex align-items-center mt-4 ms-4 alert alert-danger invisible">
|
||||
<div id="errorContainer" class="d-flex align-items-center mt-4 alert alert-danger invisible">
|
||||
<strong id="errorCode"></strong>
|
||||
<div class="spinner-border ms-auto"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var ws = new WebSocket("ws://localhost:80/miner/{{miner}}/ws");
|
||||
var ws = new WebSocket("ws://{{request.url.hostname}}:80/miner/{{miner}}/ws");
|
||||
let all_data = []
|
||||
let all_labels = []
|
||||
ws.onmessage = function(event) {
|
||||
|
||||
Reference in New Issue
Block a user