mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Adds link to CDN page
This commit is contained in:
parent
f84fc00368
commit
94c3e5cf44
@ -51,14 +51,10 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
|
||||
<h1 id="setup">Setup</h1>
|
||||
|
||||
<p>First, include the script located on the <code>dist</code> folder.</p>
|
||||
<p>First, include the script located on the <code>dist</code> folder or load it from a <a href="https://github.com/zenorocha/clipboard.js/wiki/CDN">third-party CDN provider</a>.</p>
|
||||
|
||||
<pre class="snippet"><code class="html"><script src="dist/clipboard.min.js"></script></code></pre>
|
||||
|
||||
<p>Or load it from a CDN.</p>
|
||||
|
||||
<pre class="snippet"><code class="html"><script src="https://cdn.rawgit.com/zenorocha/clipboard.js/master/dist/clipboard.min.js"></script></code></pre>
|
||||
|
||||
<p>Now, you need to instantiate it using a DOM selector. This selector corresponds to the trigger element(s), for example <code><button class="btn"></code>.</p>
|
||||
|
||||
<pre class="snippet"><code class="js">new Clipboard('.btn');</code></pre>
|
||||
|
Loading…
Reference in New Issue
Block a user