Skip to content

Instantly share code, notes, and snippets.

@Crawleyprint
Created July 18, 2012 11:42
Show Gist options
  • Save Crawleyprint/3135735 to your computer and use it in GitHub Desktop.
Save Crawleyprint/3135735 to your computer and use it in GitHub Desktop.
copy to Clipboard
<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