tips
6 tips Web
One command, setting or habit at a time about Web: what it does, the line to copy and a caveat or two.
Web development 6
-
Fingerprint text or a file in the page without adding a library.
async function sha256(text) { -
Show the picked image at once, without sending it to a server first.
url = URL.createObjectURL(file); -
Make a filtered view shareable without adding a history entry per click.
function setFilter(name, value) { -
Stops translation tools from translating code, commands and product names on a page.
and open <span translate="no">Home Assistant</span> in your browser. -
Makes part of a page unclickable, unfocusable and hidden from screen readers with one attribute.
...the page behind the drawer... -
Marks an input as a one-time code field so browsers can offer the code from a text message.
inputmode="numeric" autocomplete="one-time-code">
Nothing in this filter yet.