Adding tooltips in the liveview screen.

Thu, 17 Sep 2015 15:52:46 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 17 Sep 2015 15:52:46 +0200
changeset 400
d36f4fefd4e2
parent 399
2f472a9081c9
child 401
0226d0f37bb7

Adding tooltips in the liveview screen.

www-thermferm/index.php file | annotate | diff | comparison | revisions
www-thermferm/liveview.php file | annotate | diff | comparison | revisions
--- a/www-thermferm/index.php	Thu Sep 17 13:15:23 2015 +0200
+++ b/www-thermferm/index.php	Thu Sep 17 15:52:46 2015 +0200
@@ -157,6 +157,7 @@
 $outstr .= '  <script type="text/javascript" src="jqwidgets/jqxdraw.js"></script>'.PHP_EOL;
 $outstr .= '  <script type="text/javascript" src="jqwidgets/jqxdata.js"></script>'.PHP_EOL;
 $outstr .= '  <script type="text/javascript" src="jqwidgets/jqxdata.export.js"></script>'.PHP_EOL;
+$outstr .= '  <script type="text/javascript" src="jqwidgets/jqxtooltip.js"></script>'.PHP_EOL;
 $outstr .= ' </head>'.PHP_EOL;
 
 $outstr .= ' <body class="default">'.PHP_EOL;
--- a/www-thermferm/liveview.php	Thu Sep 17 13:15:23 2015 +0200
+++ b/www-thermferm/liveview.php	Thu Sep 17 15:52:46 2015 +0200
@@ -245,6 +245,15 @@
 	    $outstr .= '           $("#prof_state_'.$unr.'").html(data.profile_state);'.PHP_EOL;
         $outstr .= '         });'.PHP_EOL;
 	$outstr .= '       }, 10000);'.PHP_EOL;
+
+	/*
+	 * Tooltips
+	 */
+	$outstr .= '       $("#load_air_'.$unr.'").jqxTooltip({ content: "The measured air temperature.", position: "mouse", name: "boxTooltip"});'.PHP_EOL;
+	$outstr .= '       $("#load_beer_'.$unr.'").jqxTooltip({ content: "The measured beer temperature.", position: "mouse", name: "boxTooltip"});'.PHP_EOL;
+	$outstr .= '       $("#load_target_lo_'.$unr.'").jqxTooltip({ content: "The set low temperature.", position: "mouse", name: "boxTooltip"});'.PHP_EOL;
+	$outstr .= '       $("#load_target_hi_'.$unr.'").jqxTooltip({ content: "The set high temperature.", position: "mouse", name: "boxTooltip"});'.PHP_EOL;
+
 	$outstr .= '     });'.PHP_EOL;
 	$outstr .= '    </script>'.PHP_EOL;
 	$outstr .= '    <div id="fermentor">'.PHP_EOL;

mercurial