Refactoring and bug fixing

This commit is contained in:
Sam Potts
2016-08-20 18:02:02 +10:00
parent fc45ab48c9
commit 9d109bf02d
10 changed files with 382 additions and 305 deletions

View File

@ -8,7 +8,7 @@
// General functions
;(function() {
document.body.addEventListener('ready', function(event) { console.log(event); });
//document.body.addEventListener('ready', function(event) { console.log(event); });
// Setup the player
var instances = plyr.setup({
@ -25,7 +25,7 @@
plyr.loadSprite('dist/demo.svg');
// Plyr returns an array regardless
var player = instances[0].plyr;
var player = instances[0];
// Setup type toggle
var buttons = document.querySelectorAll('[data-source]'),