diff options
author | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
---|---|---|
committer | Sam <me@sampotts.me> | 2016-05-23 19:16:48 +0100 |
commit | 69194915d4fa999d8f5584b9c2dbcfdb7e26d21c (patch) | |
tree | ab69691118dbc801e4ead7359a31e47b41b9528c /docs/index.html | |
parent | 98e4c5aceadb8b6b50e03bef749efcfe8b6d58c7 (diff) | |
download | plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.lz plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.tar.xz plyr-69194915d4fa999d8f5584b9c2dbcfdb7e26d21c.zip |
Sprite loading improvements, touch controls
- SVG sprite loading automatically for an easier setup
- Touch devices now show controls on touch rather than pausing playback
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/docs/index.html b/docs/index.html index 24e0a4cc..1d469e83 100644 --- a/docs/index.html +++ b/docs/index.html @@ -74,47 +74,6 @@ </section> </main> - <!-- Load SVG defs --> - <!-- You should bundle all SVG/Icons into one file using a build tool such as gulp and svg store --> - <script> - (function() { - [ - '../dist/plyr.svg', - 'dist/docs.svg' - ] - .forEach(function(u) { - var x = new XMLHttpRequest(), - b = document.body; - - // Check for CORS support - // If you're loading from same domain, you can remove the whole if/else statement - // XHR for Chrome/Firefox/Opera/Safari/IE10+ - if ('withCredentials' in x) { - x.open('GET', u, true); - } - // XDomainRequest for IE8 & IE9 - else if (typeof XDomainRequest == 'function') { - x = new XDomainRequest(); - x.open('GET', u); - } - else { return; } - - // Inject hidden div with sprite on load - x.onload = function() { - var c = document.createElement('div'); - c.setAttribute('hidden', ''); - c.innerHTML = x.responseText; - b.insertBefore(c, b.childNodes[0]); - } - - // Timeout for IE9 - setTimeout(function () { - x.send(); - }, 0); - }); - })(); - </script> - <!-- Plyr core script --> <script src="../dist/plyr.js"></script> |