Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A code snippet for adding ZeroClipboard (https://github.com/zeroclipboard/zeroclipboard/) to an HTML page from CDN.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.min.js"></script>
<script>
$(function () {
ZeroClipboard.config({ swfPath: "https://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.swf" });
client = new ZeroClipboard($(".copy-button"));
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment