Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Copy Hostname' button #20

Open
MarcusNoble opened this issue Sep 14, 2015 · 3 comments
Open

'Copy Hostname' button #20

MarcusNoble opened this issue Sep 14, 2015 · 3 comments

Comments

@MarcusNoble
Copy link

I'm lazy and don't like typing too much out so I try to copy the hostname from my machines list. The problem is, as the page is constantly updating it makes it really difficult to be quick enough to select and copy before the page has been reset. A nice little 'Copy Hostname' button would be useful.

@GooBall GooBall added this to the 0.3.0 (The wonderful world of VM management) milestone Sep 17, 2015
@jrha
Copy link
Member

jrha commented Oct 22, 2015

👍 and/or an ssh:// link

@GooBall GooBall modified the milestones: Quick n easy , Long term. Oct 28, 2015
@GooBall
Copy link
Contributor

GooBall commented Oct 28, 2015

As things stand with this, copying to clipboard in browsers is a horrible art. Most solutions involve Flash so I'm very reluctant to do down this route.

Something we might be able to do - and have been taking about - is lower the refresh rate to something a little less frantic. The only other simple alternative would be to have a button that opens the hostname in an alert or popup of some sort so you could then copy and paste from there.

@GooBall GooBall modified the milestones: Mid term, Quick n easy Oct 28, 2015
@MarcusNoble
Copy link
Author

Have you seen Clipboard.js?

Simple example:

<html>
  <head>
    <title>Clipboard Test</title>
    <script src="bower_components/clipboard/dist/clipboard.min.js"></script>
  </head>
  <body>
    <span id="hostname">vm01.stfc.ac.uk</span> <button id="copy" data-clipboard-target="#hostname">Copy</botton>
    <script>
      new Clipboard('#copy');
    </script>
  </body>
</html>

Also:

image

@GooBall GooBall modified the milestones: 1.7.0, 1.5.5 Feb 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants