Friday, 15 May 2015

javascript - ZeroClipboard: Hiding element when there is no Flash in browser -



javascript - ZeroClipboard: Hiding element when there is no Flash in browser -

using zeroclipboard, page loads, want hide "copy clipboard" button if there no adobe flash present.

i understand there noflash , wrongflash events, wonder if these can used effect rendering of page button can't seen.

if create button like:

var $button = $('.btn'), client = new zeroclipboard($button);

you like

client.on("error", function(e) { client.destroy(); $button.hide(); }

javascript flash zeroclipboard

No comments:

Post a Comment