CustomEvent polyfill (Fixes #172)

This commit is contained in:
Sam Potts
2016-02-28 11:22:11 +11:00
parent 7a1a5830aa
commit 1bbc47c64f
5 changed files with 23 additions and 13 deletions

View File

@ -40,7 +40,7 @@ If you have any cool ideas or features, please let me know by [creating an issue
Check `docs/index.html` and `docs/dist/docs.js` for an example setup.
**Heads up:** the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.5.14/plyr.js` to `https://cdn.plyr.io/1.5.14/plyr.js`
**Heads up:** the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.5.15/plyr.js` to `https://cdn.plyr.io/1.5.15/plyr.js`
### Node Package Manager (NPM)
Using NPM, you can grab Plyr:
@ -69,11 +69,11 @@ More info is on [npm](https://www.npmjs.com/package/ember-cli-plyr) and [GitHub]
If you want to use our CDN, you can use the following:
```html
<link rel="stylesheet" href="https://cdn.plyr.io/1.5.14/plyr.css">
<script src="https://cdn.plyr.io/1.5.14/plyr.js"></script>
<link rel="stylesheet" href="https://cdn.plyr.io/1.5.15/plyr.css">
<script src="https://cdn.plyr.io/1.5.15/plyr.js"></script>
```
You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.5.14/sprite.svg`.
You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.5.15/sprite.svg`.
### CSS & Styling
If you want to use the default css, add the `plyr.css` file from `/dist` into your head, or even better use `plyr.less` or `plyr.sass` file included in `/src` in your build to save a request.
@ -175,7 +175,7 @@ Be sure to [validate your caption files](https://quuz.org/webvtt/)
Here's an example of a default setup:
```html
<script src="https://cdn.plyr.io/1.5.14/plyr.js"></script>
<script src="https://cdn.plyr.io/1.5.15/plyr.js"></script>
<script>plyr.setup();</script>
```