W3C home > Mailing lists > Public > public-dap-commits@w3.org > September 2011

2009/dap/docs/battery-status battery-status.html,1.1,1.2 battery-status.js,1.3,1.4

From: Anssi Kostiainen via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 15 Sep 2011 11:16:13 +0000
To: public-dap-commits@w3.org
Message-Id: <E1R49vR-0000Ek-Im@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/docs/battery-status
In directory hutz:/tmp/cvs-serv896

Modified Files:
	battery-status.html battery-status.js 
Log Message:
init input handlers on load

Index: battery-status.js
===================================================================
RCS file: /sources/public/2009/dap/docs/battery-status/battery-status.js,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- battery-status.js	15 Sep 2011 07:45:36 -0000	1.3
+++ battery-status.js	15 Sep 2011 11:16:11 -0000	1.4
@@ -127,4 +127,6 @@
     $('warning').style.display = 'block';
   }
   onIsPluggedChange(false);
+  $('level').addEventListener('change', function () { onLevelChange(this.value); }, false);
+  $('isplugged').addEventListener('change', function () { onIsPluggedChange(this.checked); }, false);
 };
\ No newline at end of file

Index: battery-status.html
===================================================================
RCS file: /sources/public/2009/dap/docs/battery-status/battery-status.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- battery-status.html	8 Sep 2011 16:37:04 -0000	1.1
+++ battery-status.html	15 Sep 2011 11:16:11 -0000	1.2
@@ -71,11 +71,10 @@
     <br>
     <div>level: <span id="levelmeter"></span>
       <br>
-      <input id="level" type="range" min="0" max="100" step="1" value="30"
-             onchange="onLevelChange(this.value)">
+      <input id="level" type="range" min="0" max="100" step="1" value="30">
     </div>
     <div>isPlugged:
-      <input id="isplugged" type="checkbox" onchange="onIsPluggedChange(this.checked)">
+      <input id="isplugged" type="checkbox">
     </div>
   </div>
   <p>
Received on Thursday, 15 September 2011 11:16:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 15 September 2011 11:16:19 GMT