1 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
4 <title>PowerTOP report</title>
5 <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">
6 <script type='text/javascript'>
10 system: 'System Info',
13 cpufreq: 'CPU Frequency',
14 software: 'Software Info',
15 device: 'Device Info',
18 cadd: function(idx, c){
19 var el = document.getElementById(idx);
21 var cn = el.className;
22 if (cn.indexOf(c) != -1)
29 var el = document.getElementById(id);
32 while (cn.indexOf(' ' + c) != -1)
33 cn = cn.replace(' ' + c,'');
37 newbutton: function(id, txt) {
38 var x = document.createElement('div');
39 x.id = id + '_button';
40 x.className = 'nav_button';
43 x.onclick = function() { powertop.toggle(id); };
46 setupbuttons: function() {
47 var t = document.getElementById('top');
49 for (var b in powertop.blocks) {
50 t.appendChild(powertop.newbutton(b, powertop.blocks[b]));
52 t.appendChild(powertop.newbutton('all', 'All'));
58 for (var c in powertop.blocks) {
59 powertop.crm(c, 'hide');
62 powertop.crm(b, 'hide');
64 powertop.cadd(b + '_button', 'pressed');
67 for (var b in powertop.blocks) {
68 powertop.cadd(b, 'hide');
69 powertop.crm(b + '_button', 'pressed');
71 powertop.cadd('all', 'hide');
72 powertop.crm('all_button', 'pressed');
75 powertop.setupbuttons();
76 powertop.toggle('summary');
81 <style type='text/css'>
84 background-color: #F8F8F8;
108 background-color: #E0ffE0;
114 background-color: #F0ffF0;
121 background-color: #F0ffF0;
128 background-color: #E0E0ff;
135 background-color: #E2E2E2;
141 background-color: #F4f4F4;
147 background-color: #E0E0f0;
154 background-color: #F0f0F0;
160 background-color: #E0E0ff;
167 background-color: #F0ffF0;
174 background-color: #E0E0E0;
179 background-color: #F0f0F0;
185 background-color: #E0E0E0;
190 background-color: #F0f0F0;
211 background-color: #E0E0E0;
216 background-color: #F0f0F0;
222 background-color: #FFE0E0;
227 background-color: #FFf0F0;
233 background-color: #E0E0E0;
238 background-color: #F0f0F0;
244 background-color: #E0E0E0;
249 background-color: #F0f0F0;
254 background-color: #eee; /* Background color */
255 color: #222; /* Foreground color used for text */
256 font-family: Helvetica;
258 margin: 0; /* Amount of negative space around the
259 outside of the body */
260 padding: 0; /* Amount of negative space around the
261 inside of the body */
264 background-color: #ccc;
265 border-bottom: 1px solid #666;
272 text-decoration: none;
273 text-shadow: 0px 1px 1px #fff;
274 background-image: -webkit-gradient(linear, left top, left bottom,
275 from(#ccc), to(#999));
284 text-shadow: rgba(0,0,0,0.6) 0px -1px 1px;
286 border-width:0px 8px 0px 8px;
288 #top div.nav_button {
291 padding: 0.3em 0.5em;
296 background-color: #000000;
297 border: 1px solid #000000;
307 <body onload='powertop.onload();'>