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
(function(){ | |
var identifiedFrames = []; | |
// Method to run any reporting | |
var report = function(Player, event, playing, duration) { | |
Player.get('currentTime', function(currentTime){ | |
Player.get('duration', function(duration){ | |
console.log(event, playing, currentTime, duration); | |
}); | |
}); |
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
// removes all data attributes from a target element | |
// example: removeDataAttributes('#user-list'); | |
function removeDataAttributes(target) { | |
var i, | |
$target = $(target), | |
attrName, | |
dataAttrsToDelete = [], | |
dataAttrs = $target.get(0).attributes, | |
dataAttrsLen = dataAttrs.length; |