zelark / nano-id-cc

Nano ID collision calculator
https://zelark.github.io/nano-id-cc/
MIT License
45 stars 10 forks source link

Copy-to-clipboard button #4

Closed zelark closed 5 years ago

zelark commented 6 years ago

It's nice to have such button, especially on mobile platforms.

hrithik-jha commented 6 years ago

I'd like to try this one too if that's fine.

zelark commented 6 years ago

Cool! It's yours.

hrithik-jha commented 6 years ago

Sorry for being inactive for a week, I'll try this as soon as I can

hrithik-jha commented 6 years ago

So the front-end is ready, what do you suggest for the JS? Any library or pure JS?

zelark commented 6 years ago

Sounds good.

I would suggest clipboardjs. There is a wrapper for ClojureScript, you can find it here.

zelark commented 6 years ago

@hrithik-jha, how are things going? if you need any help just create a PR.

hrithik-jha commented 6 years ago

Okay, will do that

hrithik-jha commented 6 years ago

I made a PR, let me know the changes required. I haven't implemented ClojureScript yet, still trying.

zelark commented 6 years ago

If somebody also wants to take this issue, you're welcome.

zelark commented 5 years ago

In the copy-btn branch I added the button, but not the logic. It can be used as a start point.

screen shot 2018-10-16 at 13 01 26