add pages and menu to web frontend
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9e8f14846a
commit
c049c04e8e
1 changed files with 10 additions and 0 deletions
|
@ -12,6 +12,11 @@
|
||||||
<span>fiatlux v0.2</span>
|
<span>fiatlux v0.2</span>
|
||||||
<span class="label warning" id="status_box">Loading...</span>
|
<span class="label warning" id="status_box">Loading...</span>
|
||||||
</a>
|
</a>
|
||||||
|
<input id="bmenub" type="checkbox" class="show">
|
||||||
|
<label for="bmenub" class="burger pseudo button">☰</label>
|
||||||
|
<div class="menu">
|
||||||
|
<a href="/" class="button icon-picture" onclick="use_page('dashboard'); return false">Dashboard</a>
|
||||||
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<main data-page="dashboard" id="page">
|
<main data-page="dashboard" id="page">
|
||||||
<section id="dashboard">
|
<section id="dashboard">
|
||||||
|
@ -128,6 +133,7 @@
|
||||||
<div id="unused_values" style="display:none;"></div>
|
<div id="unused_values" style="display:none;"></div>
|
||||||
<script type="text/javascript" src="js/smoothie_min.js"></script>
|
<script type="text/javascript" src="js/smoothie_min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
var section = document.getElementById("page");
|
||||||
var menu = document.getElementById("bmenub");
|
var menu = document.getElementById("bmenub");
|
||||||
var voltage = document.getElementById("out_voltage");
|
var voltage = document.getElementById("out_voltage");
|
||||||
|
|
||||||
|
@ -146,6 +152,10 @@
|
||||||
return pos;
|
return pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function use_page(name) {
|
||||||
|
section.dataset.page = name;
|
||||||
|
}
|
||||||
|
|
||||||
var ws;
|
var ws;
|
||||||
var retries;
|
var retries;
|
||||||
var series = new TimeSeries();
|
var series = new TimeSeries();
|
||||||
|
|
Loading…
Reference in a new issue