Adds link to CDN file #30 #53

This commit is contained in:
Zeno Rocha 2015-10-02 14:59:14 -07:00
parent a4c8bc5bf0
commit b0d54c46fe

View File

@ -30,12 +30,18 @@ If you're not into package management, just [download a ZIP](https://github.com/
## Setup
First, include the script located on the `dist` folder
First, include the script located on the `dist` folder.
```html
<script src="dist/clipboard.min.js"></script>
```
Or load it from a CDN.
```html
<script src="https://cdn.rawgit.com/zenorocha/clipboard.js/master/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">`.
```js