Re:Show HN: A TO-DO app that fits inside a single tweet
by bamboleo on Monday December 21, 2020 @03:32AM
(#25493133)
JS is ok, itβs the DOM APIs that are verbose. I mean this is just to handle the enter key:
[ Parent
| on HN ]
Re:Show HN: A TO-DO app that fits inside a single tweet
by tdeck on Monday December 21, 2020 @04:03AM
(#25493272)
Just a fun note: You can replace this
f.addEventListener('keypress',e=>{...})
With the older but essentially equivalent f.onkeypress=e=>{...}
and save 18 characters. You can even use `onkeyup` and save 3 more characters.