bcapa fix and styling packaging

Thu, 18 Dec 2014 06:25:07 +0100

author
Malte Bayer <mbayer@neo-soft.org>
date
Thu, 18 Dec 2014 06:25:07 +0100
branch
packaging
changeset 61
0cf3cb807a81
parent 60
337930ada416
child 62
780112d29fd2

bcapa fix and styling

victrond/http/ajax-ui.html file | annotate | diff | comparison | revisions
victrond/http/css/victrond.css file | annotate | diff | comparison | revisions
victrond/http/js/victrond.js file | annotate | diff | comparison | revisions
--- a/victrond/http/ajax-ui.html	Thu Nov 27 00:18:37 2014 +0100
+++ b/victrond/http/ajax-ui.html	Thu Dec 18 06:25:07 2014 +0100
@@ -81,7 +81,7 @@
                                 <td>System Status / Event</td>          <td><span id="SysStatus"></span></td>
                             </tr>
                         </table>
-
+<!--
                         <table>
                             <tr>
                                 <th colspan="2">Device settings</th>
@@ -108,6 +108,7 @@
                                 <td>Bypass enabled</td>         <td><span id="set_SByPass_en"></span></td>
                             </tr>
                         </table>
+-->
 
                         <table>
                             <tr>
@@ -274,7 +275,7 @@
                             <tr>
                                 <td>Battery Capacity</td>       <td><span id="set_SBCapa2"></span> Ah</td>
                                 <td>
-                                    <input name="SBCapa" SIZE="5" VALUE="[SBCapa]">
+                                    <input name="SBCapa" id="set_val_SBCapa" SIZE="5" VALUE="">
                                 </td>
                             </tr>
                             <tr>
--- a/victrond/http/css/victrond.css	Thu Nov 27 00:18:37 2014 +0100
+++ b/victrond/http/css/victrond.css	Thu Dec 18 06:25:07 2014 +0100
@@ -1,6 +1,11 @@
 * { }
 html { margin: 0; padding: 0 }
-body { background-color: #000000; margin: 0; padding: 0 }
+body {
+    background-color: #000000;
+    margin: 0;
+    padding: 0;
+    font-size: 10pt;
+}
 table { width:100% }
 td    { border: thin solid grey; color: #cccccc; }
 th    { font-weight:bold; color: #cccccc; background-color: #0273a6; }
--- a/victrond/http/js/victrond.js	Thu Nov 27 00:18:37 2014 +0100
+++ b/victrond/http/js/victrond.js	Thu Dec 18 06:25:07 2014 +0100
@@ -30,6 +30,7 @@
         success: function(data) {
             for (var k in data.values) $("#"+k).html(data.values[k]);
             for (var k in data.settings) $("[id^=set_"+k+"]").html(data.settings[k]);
+            $("#set_val_SBCapa").val(data.settings.SBCapa);
             set_load(data.values.OLoad);
             for (var k in data.values.leds) {
                 if (data.values.leds[k] == 0)

mercurial