Mercurial > templog
annotate web/views/top.tpl @ 582:cebec9b40ad2
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 30 Nov 2015 21:45:17 +0800 |
parents | b4d6f1ae0b9e |
children | 61269311ed3d |
rev | line source |
---|---|
375 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 <head> | |
523 | 4 <title>Wort Temperature Log</title> |
542 | 5 <meta name="viewport" content="width=device-width"> |
581
b4d6f1ae0b9e
make overshoot_factor floating point
Matt Johnston <matt@ucc.asn.au>
parents:
549
diff
changeset
|
6 <style type="text/css"> |
375 | 7 span.no_selection { |
8 -webkit-user-select: none; // webkit (safari, chrome) browsers | |
9 -moz-user-select: none; // mozilla browsers | |
10 -khtml-user-select: none; // webkit (konqueror) browsers | |
11 } | |
501
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
12 |
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
13 span.codelink { |
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
14 font-size: 70%; |
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
15 text-align: right; |
236e5d131b3e
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
384
diff
changeset
|
16 } |
548 | 17 |
18 #mainimage { | |
19 width: 100%; | |
20 max-width: {{graphwidth}}px; | |
21 } | |
375 | 22 </style> |
379
fed6738be1ab
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
375
diff
changeset
|
23 <title></title> |
375 | 24 </head> |
548 | 25 <script type="text/javascript"> |
26 function updatewidth() { | |
27 var width_input = document.getElementById("scaledwidth"); | |
549 | 28 var main_image = document.getElementById("mainimage"); |
29 width_input.value = main_image.clientWidth; | |
30 return true; | |
548 | 31 } |
32 | |
33 </script> | |
333 | 34 <body> |
549 | 35 <form action="" method="get" onsubmit="return updatewidth();"> |
36 <span class="no_selection"><input type="image" id="mainimage" src="{{graphdata}}"/></span> | |
375 | 37 <input type="hidden" name="length" value="{{length}}"/> |
38 <input type="hidden" name="end" value="{{end}}"/> | |
39 <input type="hidden" name="zoom" value="yeah"/> | |
549 | 40 <input type="hidden" name="scaledwidth" id="scaledwidth" value="{{graphwidth}}"/> |
375 | 41 </form> |
502 | 42 <span class="codelink">Click to zoom in, click the left axis to zoom out. <a href="https://secure.ucc.asn.au/hg/templog/file/tip">Source code</a> for the Raspberry Pi controller and this web interface</a>. <a href="set">Adjustments</a> by phone.</span> |
333 | 43 </body> |
44 </html> |