We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a199abb commit 9eaff57Copy full SHA for 9eaff57
apps/smartbatt/clkinfo.js
@@ -24,7 +24,7 @@
24
function drawBatt(){
25
batt =E.getBattery();
26
var s=24,g=Graphics.createArrayBuffer(24,24,1,{msb:true});
27
- g.fillRect(0,6,s-3,18).clearRect(2,8,s-5,16).fillRect(s-2,10,s,15).fillRect(3,9,3+v*(s-9)/100,15);
+ g.fillRect(0,6,s-3,18).clearRect(2,8,s-5,16).fillRect(s-2,10,s,15).fillRect(3,9,3+batt*(s-9)/100,15);
28
g.transparent=0;
29
img=g.asImage("string");
30
}
0 commit comments