Skip to content

Instantly share code, notes, and snippets.

@jdudek jdudek/index.html
Created Nov 18, 2015

Embed
What would you like to do?
<!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
You can’t perform that action at this time.