diff options
Diffstat (limited to 'docs/index.html')
-rw-r--r-- | docs/index.html | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/docs/index.html b/docs/index.html index 5d84fc79..c6742f07 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="//cdn.plyr.io/1.0.27/plyr.css"> + <link rel="stylesheet" href="//cdn.plyr.io/1.0.28/plyr.css"> <!-- Docs styles --> - <link rel="stylesheet" href="//cdn.plyr.io/1.0.27/docs.css"> + <link rel="stylesheet" href="//cdn.plyr.io/1.0.28/docs.css"> </head> <body> <header> @@ -67,13 +67,29 @@ <!-- 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,p){var a=new XMLHttpRequest(),b=d.body;a.open("GET",p,!0);a.send();a.onload=function(){var c=d.createElement("div");c.style.display="none";c.innerHTML=a.responseText;b.insertBefore(c,b.childNodes[0])}})(document,"//cdn.plyr.io/1.0.27/sprite.svg"); + (function(d, u){ + var a = new XMLHttpRequest(), + b = d.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"); + c.style.display="none"; + c.innerHTML = a.responseText; + b.insertBefore(c, b.childNodes[0]); + } + } + })(document, "https://cdn.plyr.io/1.0.28/sprite.svg"); </script> <!-- Plyr core script --> - <script src="//cdn.plyr.io/1.0.27/plyr.js"></script> + <script src="//cdn.plyr.io/1.0.28/plyr.js"></script> <!-- Docs script --> - <script src="//cdn.plyr.io/1.0.27/docs.js"></script> + <script src="//cdn.plyr.io/1.0.28/docs.js"></script> </body> </html>
\ No newline at end of file |