Date created: Monday, September 11, 2023 5:01:41 PM. Last modified: Monday, September 11, 2023 5:07:20 PM

Notepad

References:
https://mottaquikarim.github.io/dev/posts/a-technique-for-saving-content-from-a-datatext/html-uri/

 

data:text/html, <html contenteditable>
<script>const sel = document.getSelection();
document.querySelector('html').addEventListener('input', function() {
saved = [ sel.focusNode, sel.focusOffset ];
document.execCommand('selectall');
document.execCommand('copy');
window.getSelection().removeAllRanges();
document.querySelector('html').focus();
sel.collapse(saved[0], saved[1]);
})
</script>

Previous page: Light Calcs
Next page: Power Calcs