2009/dap/system-info battery-status.html,1.45,1.46

Update of /sources/public/2009/dap/system-info
In directory hutz:/tmp/cvs-serv1093

Modified Files:
	battery-status.html 
Log Message:
apply revised dictionary patch

Index: battery-status.html
===================================================================
RCS file: /sources/public/2009/dap/system-info/battery-status.html,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- battery-status.html	9 Sep 2011 05:28:03 -0000	1.45
+++ battery-status.html	9 Sep 2011 09:22:27 -0000	1.46
@@ -25,6 +25,36 @@
           wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status",
       };
     </script>
+    <script class="remove">
+      // a monkey patch to move BatteryStatusEventInit dictionary into the
+      // same WebIDL block with BatteryStatusEvent interface, and to rename
+      // Members to Dictionary Members
+      var _dictionary = setTimeout (function () {
+        var idlbsei = document.querySelector('#idl-def-BatteryStatusEventInit'),
+            idlbse = document.querySelector('#idl-def-BatteryStatusEvent'),
+            ifbse = document.querySelector('#batterystatusevent-interface'),
+            members = document.querySelector('#members'),
+            members_header = document.querySelector('#members > h3'),
+            toc = document.querySelectorAll('#toc .tocxref'),
+            i;
+            
+        if (typeof idlbsei === 'object' && typeof idlbse === 'object' &&
+            typeof members === 'object' && typeof members_header === 'object') {
+          clearTimeout(_dictionary);
+          
+          ifbse.removeChild(idlbsei.parentNode);
+          idlbse.parentNode.appendChild(document.createElement('br'));
+          idlbse.parentNode.appendChild(idlbsei);
+          members_header.textContent = members_header.textContent.replace(/Members/, 'Dictionary Members');
+          
+          for (i in toc) {
+            if (toc[i].textContent && toc[i].textContent.indexOf('Members') !== -1) {
+              toc[i].textContent = toc[i].textContent.replace(/Members/, 'Dictionary Members');
+            }
+          }
+        }
+      }, 100);
+    </script>
     <style type='text/css'>
       .event {
         font-family: monospace;
@@ -53,6 +83,9 @@
       .event-type-battery th, .event-type-battery td {
         padding: 0 5px 0 5px;
       }
+      .members dt {
+        font-weight: normal;
+      }
     </style>
   </head>
   <body>

Received on Friday, 9 September 2011 09:22:31 UTC