2 ms·
This actually reminds me of an idea I had for my own website [1] when I redesigned it, but I wasn't going for a quine and rather made use of copy/paste with a s
by cookiengineer 6y ago
This actually reminds me of an idea I had for my own website [1] when I redesigned it, but I wasn't going for a quine and rather made use of copy/paste with a simpler format.
I implemented a copy/paste feature using dummy elements that are only visible when being selected, so that when someone wants to copy text from my website, it will be copied as markdown notation (which was the originating article format before being statically rendered into the HTML code).
Technically, this would work with HTML+CSS only, but I decided to go with JS generating these nodes automatically to keep my sanity alive - because there were some quirks along the way with getting paragraphs to be copied correctly across the major Web Browsers. [2] and [3]
[1] https://cookie.engineer https://cookie.engineer
[2] https://cookie.engineer/design/copypaste.css https://cookie.engineer/design/copypaste.css
[3] https://cookie.engineer/design/copypaste.js https://cookie.engineer/design/copypaste.js