Skip to content

Instantly share code, notes, and snippets.


Created Sep 4, 2015
What would you like to do?
<button data-ember-action="1930" class="btn btn-blue 121313">Copy</button>
<input value="WOAH" type="text" class="form-control 121313">
var shortUrl = function(key) {
var button, input;
button = $("." + (key.get('key')))[0];
input = $("input." + (key.get('key')))[0];
return button.addEventListener('click', function() {;
return document.execCommand('copy');
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.