Mercurial > templog
annotate web/views/top.tpl @ 249:c490de0cf17e
scaled zooming works
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 27 May 2015 22:37:43 +0800 |
parents | a19496c95be5 |
children | 141948a400a6 |
rev | line source |
---|---|
69 | 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> | |
224 | 4 <title>Wort Temperature Log</title> |
244 | 5 <meta name="viewport" content="width=device-width"> |
69 | 6 <style type="text/css"><!-- |
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 } | |
202
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
12 |
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
13 span.codelink { |
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
14 font-size: 70%; |
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
15 text-align: right; |
6dd157a12035
Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents:
78
diff
changeset
|
16 } |
249 | 17 |
18 #mainimage { | |
19 width: 100%; | |
20 max-width: {{graphwidth}}px; | |
21 } | |
69 | 22 //--> |
23 </style> | |
73
0a8639039453
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
69
diff
changeset
|
24 <title></title> |
69 | 25 </head> |
249 | 26 <script type="text/javascript"> |
27 function updatewidth() { | |
28 var width_input = document.getElementById("scaledwidth"); | |
29 width_input.value = document.getElementById("mainimage").clientWidth; | |
30 } | |
31 | |
32 </script> | |
27 | 33 <body> |
73
0a8639039453
Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents:
69
diff
changeset
|
34 <form action="" method="get"> |
249 | 35 <span class="no_selection"><input type="image" id="mainimage" src="{{graphdata}}" onclick="updatewidth();"/></span> |
69 | 36 <input type="hidden" name="length" value="{{length}}"/> |
37 <input type="hidden" name="end" value="{{end}}"/> | |
38 <input type="hidden" name="zoom" value="yeah"/> | |
249 | 39 <input type="hidden" name="scaledwidth" id="scaledwidth" value="-1"/> |
69 | 40 </form> |
205 | 41 <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> |
27 | 42 </body> |
43 </html> |