Created
July 18, 2012 11:42
-
-
Save Crawleyprint/3135735 to your computer and use it in GitHub Desktop.
copy to Clipboard
This file contains 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
<script type="text/javascript"> | |
$(function() { | |
ZeroClipboard.setMoviePath( GLOBAL_BASE_URL + "js/vendor/clippy/ZeroClipboard10.swf" ); | |
var clip = new ZeroClipboard.Client(); | |
clip.setHandCursor( true ); | |
clip.setText($.trim($("#api-key").text())); | |
clip.glue("api-copy-button", "copy-container"); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment