mirror of
https://github.com/zserge/awfice.git
synced 2024-10-03 22:37:24 +03:00
b327cfc880
* removed unnecessary quotes in edit.html (2 bytes removed) * removed () around single arg function in draw.html (2 bytes removed) * removed () around single arg function in calc.html (2 bytes removed) * removed accidental newline * remove unnecessary ; in beam.html (1 byte removed) * removed unnecessary newline in edit.html (1 byte removed) * reduced size of all html documents * shrink edit.html to 59 bytes (4 bytes removed) * shrink calc.html to 701 bytes (4 bytes removed) * shrink draw.html to 327 bytes (2 bytes removed) * shrink beam.html to 622 bytes (1 byte removed)
1 line
327 B
HTML
1 line
327 B
HTML
<canvas id=v><script>d=document,d.body.style.margin=0,P="onpointer",c=v.getContext`2d`,v.width=innerWidth,v.height=innerHeight,c.lineWidth=2,f=0,d[P+"down"]=e=>{f=e.pointerId+1;e.preventDefault();c.beginPath();c.moveTo(e.x,e.y)};d[P+"move"]=e=>{f==e.pointerId+1&&c.lineTo(e.x,e.y);c.stroke()},d[P+"up"]=_=>f=0</script></canvas> |