From 861fcb53fd06949cd61e51a4652a0f65ac8ebbde Mon Sep 17 00:00:00 2001 From: Zeno Rocha Date: Mon, 26 Oct 2015 23:00:13 -0700 Subject: [PATCH] Allows HTML elements to be passed in the constructor - Fixes #25 --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 9d9300c..7e72b54 100644 --- a/index.html +++ b/index.html @@ -51,11 +51,11 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><

Setup

-

First, include the script located on the dist folder or load it from a third-party CDN provider.

+

First, include the script located on the dist folder or load it from a third-party CDN provider.

<script src="dist/clipboard.min.js"></script>
-

Now, you need to instantiate it using a DOM selector. This selector corresponds to the trigger element(s), for example <button class="btn">.

+

Now, you need to instantiate it by passing a DOM selector, HTML element, or list of HTML elements.

new Clipboard('.btn');