Skip to content

Instantly share code, notes, and snippets.

@nathanielks
Created November 27, 2015 02:50
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 nathanielks/e5dc25dcafde4320a1dd to your computer and use it in GitHub Desktop.
Save nathanielks/e5dc25dcafde4320a1dd to your computer and use it in GitHub Desktop.
Super simple way to calculate how long an egghead.io course is
var seconds = 0;
$('.table.table-condensed .info-line small.duration').each(function(){
var s = this.innerText.split(':');
seconds += s[0] * 60;
seconds += s[1] * 1;
});
console.log(seconds/60);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment