Created
November 27, 2015 02:50
-
-
Save nathanielks/e5dc25dcafde4320a1dd to your computer and use it in GitHub Desktop.
Super simple way to calculate how long an egghead.io course is
This file contains hidden or 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 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