Skip to content

Instantly share code, notes, and snippets.

@tim-peterson
Created May 20, 2013 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tim-peterson/5610133 to your computer and use it in GitHub Desktop.
Save tim-peterson/5610133 to your computer and use it in GitHub Desktop.
array object of thumbnails for video.js thumbnails plugin
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