18 lines
561 B
JavaScript
Vendored
18 lines
561 B
JavaScript
Vendored
$(document).ready(function() {
|
|
|
|
ZeroClipboard.config( { swfPath: './scripts/zeroclipboard/dist/ZeroClipboard.swf' } );
|
|
|
|
var client = new ZeroClipboard( document.getElementById("copy-button") );
|
|
|
|
client.on( "ready", function( readyEvent ) {
|
|
// alert( "ZeroClipboard SWF is ready!" );
|
|
|
|
client.on( "aftercopy", function( event ) {
|
|
// `this` === `client`
|
|
// `event.target` === the element that was clicked
|
|
// event.target.style.display = "none";
|
|
//alert("Copied text to clipboard: " + event.data["text/plain"] );
|
|
} );
|
|
} );
|
|
|
|
}); |