demipixel / autotorio

autotorio.com
autotorio.vercel.app
GNU General Public License v3.0
67 stars 17 forks source link

Copy to Clipboard Button? #10

Closed nelsonjchen closed 6 years ago

nelsonjchen commented 7 years ago

It's very handy in Factorio that when you ask it to export a string that there's a handy button to click and copy the string to the clipboard. Perhaps this tool could use the same thing on the blueprint result dialog?

I would have put a pull request out but I was having some serious trouble building this project. Maybe it might be worth adding some CI so at least there's some tested "documentation" on building this? That's another issue. Anyway, I would have looked here to start adding this feature and this little tidbit of code.

document.execCommand("copy");
demipixel commented 6 years ago

Done!