annotate web/views/top.tpl @ 294:6bacd8ca9f8f

merge
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jul 2019 18:30:25 +0800
parents 61269311ed3d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
3 <head>
224
Matt Johnston <matt@ucc.asn.au>
parents: 205
diff changeset
4 <title>Wort Temperature Log</title>
244
2071d939e4ff use base64 data, faster
Matt Johnston <matt@ucc.asn.au>
parents: 224
diff changeset
5 <meta name="viewport" content="width=device-width">
286
61269311ed3d wrong degree symbol
Matt Johnston <matt@ucc.asn.au>
parents: 280
diff changeset
6 <meta name="theme-color" content="#fff">
280
6c14e0573f50 make overshoot_factor floating point
Matt Johnston <matt@ucc.asn.au>
parents: 250
diff changeset
7 <style type="text/css">
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
8 span.no_selection {
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
9 -webkit-user-select: none; // webkit (safari, chrome) browsers
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
10 -moz-user-select: none; // mozilla browsers
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
11 -khtml-user-select: none; // webkit (konqueror) browsers
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
12 }
202
6dd157a12035 Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
13
6dd157a12035 Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
14 span.codelink {
6dd157a12035 Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
15 font-size: 70%;
6dd157a12035 Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
16 text-align: right;
6dd157a12035 Add url link, improve atomicfile
Matt Johnston <matt@ucc.asn.au>
parents: 78
diff changeset
17 }
249
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
18
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
19 #mainimage {
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
20 width: 100%;
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
21 max-width: {{graphwidth}}px;
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
22 }
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
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
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
25 </head>
249
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
26 <script type="text/javascript">
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
27 function updatewidth() {
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
28 var width_input = document.getElementById("scaledwidth");
250
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
29 var main_image = document.getElementById("mainimage");
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
30 width_input.value = main_image.clientWidth;
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
31 return true;
249
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
32 }
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
33
c490de0cf17e scaled zooming works
Matt Johnston <matt@ucc.asn.au>
parents: 247
diff changeset
34 </script>
27
dbbd503119ba Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
35 <body>
250
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
36 <form action="" method="get" onsubmit="return updatewidth();">
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
37 <span class="no_selection"><input type="image" id="mainimage" src="{{graphdata}}"/></span>
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
38 <input type="hidden" name="length" value="{{length}}"/>
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
39 <input type="hidden" name="end" value="{{end}}"/>
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
40 <input type="hidden" name="zoom" value="yeah"/>
250
141948a400a6 working zoom
Matt Johnston <matt@ucc.asn.au>
parents: 249
diff changeset
41 <input type="hidden" name="scaledwidth" id="scaledwidth" value="{{graphwidth}}"/>
69
a8ff20f15734 a bunch of web fiddli
Matt Johnston <matt@ucc.asn.au>
parents: 27
diff changeset
42 </form>
205
ff1b772da5d0 mention adjustment ui
Matt Johnston <matt@ucc.asn.au>
parents: 202
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>
27
dbbd503119ba Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
44 </body>
dbbd503119ba Add some web server handling
Matt Johnston <matt@ucc.asn.au>
parents:
diff changeset
45 </html>