floating menu
This commit is contained in:
parent
806c141d9f
commit
9c5c4b8c3a
9
index
9
index
@ -84,6 +84,7 @@ then
|
||||
if (( ! show_graphs ))
|
||||
then
|
||||
cat <<-EOHTML
|
||||
<div style="position:fixed; background:white">
|
||||
<table style="width:$(( graph_width + 97 ))px; text-align:center; border:1px solid black; border-collapse:collapse">
|
||||
<tr>
|
||||
<td style="background:black; color:white">Overview</td>
|
||||
@ -105,6 +106,8 @@ then
|
||||
<td style="border:1px solid black"><a href="add.html?start=$start&end=$end"><b>Add data</b></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="position:absolute; top:3em">
|
||||
EOHTML
|
||||
readarray -t lastupdatelines < <(
|
||||
rrdtool lastupdate $rrdfile
|
||||
@ -390,6 +393,7 @@ then
|
||||
EOHTML
|
||||
else
|
||||
cat <<-EOHTML
|
||||
<div style="position:fixed; z-index:100; background:white">
|
||||
<table style="width:$(( graph_width + 97 ))px; text-align:center; border:1px solid black; border-collapse:collapse">
|
||||
<tr>
|
||||
<td><a href="?start=$start&end=$end">Overview</a></td>
|
||||
@ -443,6 +447,8 @@ then
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div style="position:absolute; top:4.5em">
|
||||
EOHTML
|
||||
|
||||
if (( show_all ))
|
||||
@ -522,12 +528,13 @@ then
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
<a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html">
|
||||
<img src="/AGPL.png" height="31" width="88" />
|
||||
<img src="/AGPL.png" alt="AGPLv3" height="31" width="88" />
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</body></html>
|
||||
EOHTML
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user