Adds link to CDN page

This commit is contained in:
Zeno Rocha 2015-10-26 21:54:31 -07:00
parent f84fc00368
commit 94c3e5cf44

View File

@ -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">&lt;script src="dist/clipboard.min.js"&gt;&lt;/script&gt;</code></pre>
<p>Or load it from a CDN.</p>
<pre class="snippet"><code class="html">&lt;script src="https://cdn.rawgit.com/zenorocha/clipboard.js/master/dist/clipboard.min.js"&gt;&lt;/script&gt;</code></pre>
<p>Now, you need to instantiate it using a DOM selector. This selector corresponds to the trigger element(s), for example <code>&lt;button class="btn"&gt;</code>.</p>
<pre class="snippet"><code class="js">new Clipboard('.btn');</code></pre>