This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
// Let's wrap everything inside a function so variables are not defined as globals | |
(function(){ | |
// This is gonna our percent buckets ( 10%-90% ) | |
var divisor = 10; | |
// We're going to save our players status on this object. | |
var videos_status = {}; | |
// This is the funcion that is gonna handle the event sent by the player listeners | |
function eventHandler(e){ | |
switch(e.type) { |