mirror of
https://github.com/zserge/awfice.git
synced 2024-07-07 08:26:23 +03:00
* 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
622 B
HTML
1 line
622 B
HTML
<body><script>d=document;for(i=0;i<50;i++)d.body.innerHTML+='<div style="position:relative;width:90%;padding-top:60%;margin:5%;border:1px solid silver;page-break-after:always"><div contenteditable style=outline:none;position:absolute;right:10%;bottom:10%;left:10%;top:10%;font-size:5vmin>';d.querySelectorAll("div>div").forEach(e=>e.onkeydown=e=>{n=e.ctrlKey&&e.altKey&&e.keyCode-49,f="formatBlock",j="justify",x=[f,f,j+"Left",j+"Center",j+"Right","outdent","indent","insertUnorderedList"][n],y=["<h1>","<div>"][n],x&&d.execCommand(x,!1,y)})</script><style>@page{size:6in 8in landscape}@media print{*{border:0 !important}} |