Fixed event bubbling

This commit is contained in:
Sam
2016-06-09 11:05:07 +01:00
parent 161dd48312
commit c7d28b09c0
7 changed files with 20 additions and 13 deletions

View File

@ -113,7 +113,7 @@ Include the `plyr.js` script before the closing `</body>` tag and then call `ply
If you want to use our CDN for the JavaScript, you can use the following:
```html
<script src="https://cdn.plyr.io/1.8.1/plyr.js"></script>
<script src="https://cdn.plyr.io/1.8.2/plyr.js"></script>
```
### CSS
@ -126,11 +126,11 @@ Include the `plyr.css` stylsheet into your `<head>`
If you want to use our CDN for the default CSS, you can use the following:
```html
<link rel="stylesheet" href="https://cdn.plyr.io/1.8.1/plyr.css">
<link rel="stylesheet" href="https://cdn.plyr.io/1.8.2/plyr.css">
```
### SVG Sprite
The SVG sprite is loaded automatically from our CDN. To change this, see the [#options](Options) below. For reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/1.8.1/plyr.svg`.
The SVG sprite is loaded automatically from our CDN. To change this, see the [#options](Options) below. For reference, the CDN hosted SVG sprite can be found at `https://cdn.plyr.io/1.8.2/plyr.svg`.
## Advanced
@ -785,6 +785,8 @@ document.querySelector('.js-plyr').addEventListener('ready', function(event) {
});
```
These events also bubble up the DOM.
## Embeds
YouTube and Vimeo are currently supported and function much like a HTML5 video. Check the relevant documentation sections for any differences.