Demo entry 6677918

js

   

Submitted by luke on Dec 04, 2017 at 20:46
Language: JavaScript. Code size: 216 Bytes.

clipboardSnippets.on('success', function(e) {
        e.clearSelection();
        $(e.trigger).text("Copied!");

        setTimeout(function() {
          $(e.trigger).text("Copy");
        }, 2000);
      });

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).