canonical-web-and-design / juju-cards

Code base for for juju embedded card system for charm, bundle and profiles.
6 stars 10 forks source link

add a copy-to-clipboard button #12

Closed adam-stokes closed 8 years ago

adam-stokes commented 8 years ago

Copying the embed code is a little involved and it would be nice to be able to just click a button to copy the embed code to my clipboard

hatched commented 8 years ago

This could be enabled for browsers that support the js copy-to-clipboard but not for ones that would require an additional library.

mitechie commented 8 years ago

Could we not do the same thing we do for the deploy command on jujucharms.com?

On Thu, Mar 10, 2016 at 5:19 PM Jeff Pihach notifications@github.com wrote:

This could be enabled for browsers that support the js copy-to-clipboard but not for ones that would require an additional library.

— Reply to this email directly or view it on GitHub https://github.com/CanonicalLtd/juju-cards/issues/12#issuecomment-195076630 .

anthonydillon commented 8 years ago

I agree. I'll add js copy to clipboard if supported by browser. No flash here.

On Thu, 10 Mar 2016, 22:32 Rick Harding, notifications@github.com wrote:

Could we not do the same thing we do for the deploy command on jujucharms.com?

On Thu, Mar 10, 2016 at 5:19 PM Jeff Pihach notifications@github.com wrote:

This could be enabled for browsers that support the js copy-to-clipboard but not for ones that would require an additional library.

— Reply to this email directly or view it on GitHub < https://github.com/CanonicalLtd/juju-cards/issues/12#issuecomment-195076630

.

— Reply to this email directly or view it on GitHub https://github.com/CanonicalLtd/juju-cards/issues/12#issuecomment-195080739 .

anthonydillon commented 8 years ago

This will be fixed with version v1.1.0.