annotate web/views/top.tpl @ 564:59cb8449ef97

Limit log
author Matt Johnston <matt@ucc.asn.au>
date Sat, 13 Jun 2015 22:49:14 +0800
parents 0baa57b6d9ca
children 6c14e0573f50
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
3 <head>
523
Matt Johnston <matt@ucc.asn.au>
parents: 502
diff changeset
4 <title>Wort Temperature Log</title>
542
30628aa50a10 use base64 data, faster
Matt Johnston <matt@ucc.asn.au>
parents: 523
diff changeset
5 <meta name="viewport" content="width=device-width">
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
6 <style type="text/css"><!--
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
7 span.no_selection {
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
8 -webkit-user-select: none; // webkit (safari, chrome) browsers
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
9 -moz-user-select: none; // mozilla browsers
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
10 -khtml-user-select: none; // webkit (konqueror) browsers
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
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
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
17
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
18 #mainimage {
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
19 width: 100%;
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
20 max-width: {{graphwidth}}px;
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
21 }
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
22 //-->
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
23 </style>
379
fed6738be1ab Get rid of axes labels, tidy html
Matt Johnston <matt@ucc.asn.au>
parents: 375
diff changeset
24 <title></title>
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
25 </head>
548
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
26 <script type="text/javascript">
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
27 function updatewidth() {
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
28 var width_input = document.getElementById("scaledwidth");
549
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
29 var main_image = document.getElementById("mainimage");
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
30 width_input.value = main_image.clientWidth;
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
31 return true;
548
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
32 }
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
33
b3dc81bee5b3 scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 546
diff changeset
34 </script>
333
298e502fdcd4 Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35 <body>
549
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
36 <form action="" method="get" onsubmit="return updatewidth();">
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
37 <span class="no_selection"><input type="image" id="mainimage" src="{{graphdata}}"/></span>
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
38 <input type="hidden" name="length" value="{{length}}"/>
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
39 <input type="hidden" name="end" value="{{end}}"/>
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
40 <input type="hidden" name="zoom" value="yeah"/>
549
0baa57b6d9ca working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 548
diff changeset
41 <input type="hidden" name="scaledwidth" id="scaledwidth" value="{{graphwidth}}"/>
375
f22427bcfda8 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 333
diff changeset
42 </form>
502
95fe8c725f90 mention adjustment ui
Matt Johnston <matt@ucc.asn.au>
parents: 501
diff changeset
43 <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
298e502fdcd4 Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 </body>
298e502fdcd4 Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 </html>