Skip to content

casparzed/cliptoast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

cliptoast

Cut Copy JavaScript Library

Setup

First, include the script located on the source folder.
<script src="cliptoast.js"></script>
Now, you need to instantiate it. This selector corresponds to the trigger:
<a class="button" href="#">Copy</a> new ClipToast(".button");

Usage

<!-- Target -->
<textarea id="foo">Duis aute irure dolor in reprehenderit</textarea>
<!-- Trigger -->
<a class="button" data-cliptoast-action="cut" data-cliptoast-target="#foo"> Cut to clipboard </a>

A lot more things to come.

About

Cut Copy JavaScript Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published