Skip to content

Instantly share code, notes, and snippets.

@jdudek
Created November 18, 2015 19:12
Show Gist options
  • Save jdudek/386e548988514d67b676 to your computer and use it in GitHub Desktop.
Save jdudek/386e548988514d67b676 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Clipboard example</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.5/clipboard.min.js"></script>
</head>
<body>
Install with:
<input type="text" value="elm package install evancz/elm-http 2.0.0" id="install-command" />
<button data-clipboard-target="#install-command">Copy</button>
<script type="text/javascript">
new Clipboard('[data-clipboard-target]');
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment