TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

BaseMax / CopyClipboardJs

Tiny Library for copy text in clipboard.

20 1 Language: JavaScript License: GPL-3.0 Updated: 4y ago

README

CopyClipboard

Tiny Library for copy text in clipboard.

CopyClipboard.min.js File Size CopyClipboard.min.js Validation Code

Features

  • Fast
  • Compact
  • No dependencies
  • Event after copy (e.g :AJAX,send a GET request)

Arguments

Argument Name Goal
data-copy-text Set Text
data-copy-from Set target, to get the text from they
data-copy-after Execute the code after copying
data-copy-link Send GET Request to a link after copying

Samples

To view the full details, run the Example.html file.

data-copy-text

Click , Copy!

data-copy-from

Enter Text : 

Click , Copy!

data-copy-after

It will be completed in the future.

onclick

Click , Copy text with onclick
Click , Copy from #id with onclick
Click , Copy text

License

CopyClipboard is licensed under the GNU General Public License.

0 AIs selected
Clear selection
#
Name
Task