Created
May 20, 2013 02:33
-
-
Save tim-peterson/5610133 to your computer and use it in GitHub Desktop.
array object of thumbnails for video.js thumbnails plugin
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
var arr=[], | |
duration=100; | |
var num=duration/10; | |
var j=0; | |
var k=0; | |
for(var i=0; i<num; i++ ){ | |
arr.push(k={'src': '/assets/js/'+j+'.png'}); | |
j=j+5; | |
k=k+5; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment