Compare commits

...

13 Commits

Author SHA1 Message Date
Sam Potts 6543fc1e5b Fixed bug with API use on basic supported browsers 2015-08-21 21:36:15 +10:00
Sam Potts 9133247cdf Code cleanup 2015-08-13 21:34:17 +10:00
Sam Potts bf7f6f40bd Merge pull request #111 from calvintam236/master
Code cleanup
2015-08-13 21:32:10 +10:00
Calvin Tam 43a904917f Fixed equal signs 2015-08-13 01:39:13 -07:00
Calvin Tam 9fe6e5ffcb Converted double quote to single quote 2015-08-13 01:36:20 -07:00
Calvin Tam a46e421bf6 Fixed syntax; Fixed some JSHint errors (Not escaped character, etc.) 2015-08-13 01:15:57 -07:00
Calvin Tam 20090aee03 Fixed missing semicolons mentioned by JSHint 2015-08-13 00:43:11 -07:00
Calvin Tam c4ca7fe0d2 Updated tag closing 2015-08-13 00:38:30 -07:00
Calvin Tam 6b41752415 Use defined function instead of hard coding 2015-08-13 00:13:57 -07:00
Calvin Tam 2bc53d12ea Use double quote for html strings 2015-08-12 23:38:39 -07:00
Calvin Tam 2f6dc5279b Removed unnecessary "break"s 2015-08-12 23:13:58 -07:00
Calvin Tam c8b2867b1f Removed useless spaces 2015-08-12 23:13:13 -07:00
Calvin Tam e56132ae3b Standardized syntax 2015-08-12 22:58:33 -07:00
9 changed files with 502 additions and 487 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog # Changelog
# v1.3.5
- Fixed bug with API use on basic supported browsers
# v1.3.4
- Code cleanup by @calvintam236
# v1.3.3 # v1.3.3
- Removed captions being read by screen readers - Removed captions being read by screen readers
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

+1 -1
View File
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Docs styles --> <!-- Docs styles -->
<link rel="stylesheet" href="//cdn.plyr.io/1.3.3/docs.css"> <link rel="stylesheet" href="//cdn.plyr.io/1.3.5/docs.css">
</head> </head>
<body> <body>
<main> <main>
+5 -5
View File
@@ -8,10 +8,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Styles --> <!-- Styles -->
<link rel="stylesheet" href="https://cdn.plyr.io/1.3.3/plyr.css?3"> <link rel="stylesheet" href="https://cdn.plyr.io/1.3.5/plyr.css">
<!-- Docs styles --> <!-- Docs styles -->
<link rel="stylesheet" href="https://cdn.plyr.io/1.3.3/docs.css?1"> <link rel="stylesheet" href="https://cdn.plyr.io/1.3.5/docs.css">
</head> </head>
<body> <body>
<header> <header>
@@ -97,13 +97,13 @@
b.insertBefore(c, b.childNodes[0]); b.insertBefore(c, b.childNodes[0]);
} }
} }
})(document, "https://cdn.plyr.io/1.3.3/sprite.svg"); })(document, "https://cdn.plyr.io/1.3.5/sprite.svg");
</script> </script>
<!-- Plyr core script --> <!-- Plyr core script -->
<script src="https://cdn.plyr.io/1.3.3/plyr.js?1"></script> <script src="https://cdn.plyr.io/1.3.5/plyr.js"></script>
<!-- Docs script --> <!-- Docs script -->
<script src="https://cdn.plyr.io/1.3.3/docs.js?1"></script> <script src="https://cdn.plyr.io/1.3.5/docs.js"></script>
</body> </body>
</html> </html>
+12 -3
View File
@@ -66,7 +66,12 @@ package = loadJSON(path.join(root, "package.json"));
// Load json // Load json
function loadJSON(path) { function loadJSON(path) {
return JSON.parse(fs.readFileSync(path)); try {
return JSON.parse(fs.readFileSync(path));
}
catch(err) {
return {};
}
} }
var build = { var build = {
@@ -215,8 +220,12 @@ options = {
}, },
gzippedOnly: true gzippedOnly: true
} }
}, };
cdnpath = new RegExp(aws.cdn.bucket + "\/(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)","gi");
// If aws is setup
if("cdn" in aws) {
var cdnpath = new RegExp(aws.cdn.bucket + "\/(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)","gi");
}
// Publish version to CDN bucket // Publish version to CDN bucket
gulp.task("cdn", function () { gulp.task("cdn", function () {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "plyr", "name": "plyr",
"version": "1.3.3", "version": "1.3.5",
"description": "A simple HTML5 media player using custom controls", "description": "A simple HTML5 media player using custom controls",
"homepage": "http://plyr.io", "homepage": "http://plyr.io",
"main": "gulpfile.js", "main": "gulpfile.js",
+4 -4
View File
@@ -40,7 +40,7 @@ If you have any cool ideas or features, please let me know by [creating an issue
Check `docs/index.html` and `docs/dist/docs.js` for an example setup. Check `docs/index.html` and `docs/dist/docs.js` for an example setup.
**Heads up**, the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.3.3/plyr.js` to `https://cdn.plyr.io/1.3.3/plyr.js` **Heads up**, the example `index.html` file needs to be served from a webserver (such as Apache, Nginx, IIS or similar) unless you change the file sources to include http or https. e.g. change `//cdn.plyr.io/1.3.5/plyr.js` to `https://cdn.plyr.io/1.3.5/plyr.js`
### Bower ### Bower
If bower is your thang, you can grab Plyr using: If bower is your thang, you can grab Plyr using:
@@ -60,11 +60,11 @@ More info is on [npm](https://www.npmjs.com/package/ember-cli-plyr) and [GitHub]
If you want to use our CDN, you can use the following: If you want to use our CDN, you can use the following:
```html ```html
<link rel="stylesheet" href="https://cdn.plyr.io/1.3.3/plyr.css"> <link rel="stylesheet" href="https://cdn.plyr.io/1.3.5/plyr.css">
<script src="https://cdn.plyr.io/1.3.3/plyr.js"></script> <script src="https://cdn.plyr.io/1.3.5/plyr.js"></script>
``` ```
You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.3.3/sprite.svg`. You can also access the `sprite.svg` file at `https://cdn.plyr.io/1.3.5/sprite.svg`.
### CSS ### CSS
If you want to use the default css, add the `plyr.css` file from /dist into your head, or even better use `plyr.less` or `plyr.sass` file included in `/src` in your build to save a request. If you want to use the default css, add the `plyr.css` file from /dist into your head, or even better use `plyr.less` or `plyr.sass` file included in `/src` in your build to save a request.
+451 -451
View File
File diff suppressed because it is too large Load Diff