diff options
author | Sam Potts <me@sampotts.me> | 2015-12-11 10:41:29 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-12-11 10:41:29 +1100 |
commit | 1371c1341fcc95d52394dc3f69900ae5041a5701 (patch) | |
tree | 9f79c1ab6b162d21b70cda618a1cb5ad2123052a /docs/index.html | |
parent | 05bf08a4389ec5c72627f709761578d80b40603f (diff) | |
download | plyr-1371c1341fcc95d52394dc3f69900ae5041a5701.tar.lz plyr-1371c1341fcc95d52394dc3f69900ae5041a5701.tar.xz plyr-1371c1341fcc95d52394dc3f69900ae5041a5701.zip |
Removed Hogan from Docs (Fixes #128)
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 61 |
1 files changed, 42 insertions, 19 deletions
diff --git a/docs/index.html b/docs/index.html index ba8f7254..88d3c44b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,10 +8,10 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Styles --> - <link rel="stylesheet" href="https://cdn.plyr.io/1.3.6/plyr.css"> + <link rel="stylesheet" href="https://cdn.plyr.io/1.3.7/plyr.css"> <!-- Docs styles --> - <link rel="stylesheet" href="https://cdn.plyr.io/1.3.6/docs.css"> + <link rel="stylesheet" href="https://cdn.plyr.io/1.3.7/docs.css"> </head> <body> <header> @@ -20,10 +20,14 @@ <nav> <ul> <li> - <a href="https://github.com/selz/plyr" target="_blank" class="btn btn-primary">Download on GitHub</a> + <a href="https://github.com/selz/plyr" target="_blank" class="btn btn-primary" data-shr-network="github"> + <svg class="icon"><use xlink:href="#shr-github"/></svg>Download on GitHub + </a> </li> <li> - <a href="https://twitter.com/intent/tweet?text=A+simple+HTML5+media+player+with+custom+controls+and+WebVTT+captions.&url=https%3A%2F%2Fplyr.io&via=Sam_Potts" target="_blank" class="btn js-popup" data-window-height="250" data-window-width="500">Tweet</a> + <a href="https://twitter.com/intent/tweet?text=A+simple+HTML5+media+player+with+custom+controls+and+WebVTT+captions.&url=http%3A%2F%2Fplyr.io&via=Sam_Potts" target="_blank" class="btn btn-twitter" data-shr-network="twitter"> + <svg class="icon"><use xlink:href="#shr-twitter"/></svg>Tweet + </a> </li> </ul> </nav> @@ -79,29 +83,48 @@ <!-- Load SVG defs --> <!-- You should bundle all SVG/Icons into one file using a build tool such as gulp and svg store --> <script> - (function(d, u){ - var a = new XMLHttpRequest(), - b = d.body; + (function() { + [ + "https://cdn.shr.one/0.1.9/sprite.svg", + "https://cdn.plyr.io/1.3.7/sprite.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 if statement - if("withCredentials" in a) { - a.open("GET", u, true); - a.send(); - a.onload = function(){ - var c = d.createElement("div"); + // Check for CORS support + // If you're loading from same domain, you can remove the if statement + // XHR for Chrome/Firefox/Opera/Safari + if ("withCredentials" in x) { + x.open("GET", u, true); + } + // XDomainRequest for older IE + else if (typeof XDomainRequest != "undefined") { + x = new XDomainRequest(); + x.open("GET", u); + } + else { + return; + } + + x.send(); + x.onload = function() { + var c = document.createElement("div"); c.setAttribute("hidden", ""); - c.innerHTML = a.responseText; + c.innerHTML = x.responseText; b.insertBefore(c, b.childNodes[0]); } - } - })(document, "https://cdn.plyr.io/1.3.6/sprite.svg"); + }); + })(); </script> <!-- Plyr core script --> - <script src="https://cdn.plyr.io/1.3.6/plyr.js"></script> + <script src="https://cdn.plyr.io/1.3.7/plyr.js"></script> + + <!-- Shr core script --> + <script src="https://cdn.shr.one/0.1.9/shr.js"></script> <!-- Docs script --> - <script src="https://cdn.plyr.io/1.3.6/docs.js"></script> + <script src="https://cdn.plyr.io/1.3.7/docs.js"></script> </body> </html> |