aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.html
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-22 11:05:28 +1100
committerSam Potts <me@sampotts.me>2015-03-22 11:05:28 +1100
commitc61db87fd676ce84db2fef7408bbed20a2bcd652 (patch)
tree59ace07a2ba5db5a2b10e7cc6e14142fa415ffd7 /docs/index.html
parent388cb4df3964cf4db4e77eee5090bcf817c38dbc (diff)
downloadplyr-c61db87fd676ce84db2fef7408bbed20a2bcd652.tar.lz
plyr-c61db87fd676ce84db2fef7408bbed20a2bcd652.tar.xz
plyr-c61db87fd676ce84db2fef7408bbed20a2bcd652.zip
API improvements
Diffstat (limited to 'docs/index.html')
-rw-r--r--docs/index.html26
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