Created
November 18, 2015 19:13
-
-
Save jdudek/bacd6efe1bee5ccc779b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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