Created
May 17, 2019 17:52
-
-
Save emanueljtc/490b06ea18aa5a40118c5b8da7b4cd00 to your computer and use it in GitHub Desktop.
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 asd = document.querySelectorAll('span.MaterialContent-duration') | |
window.counter = 0; | |
asd.forEach(function(el){ | |
var strel = el.innerHTML.split(':')[0]; | |
if(strel.length > 0){ | |
window.counter += parseInt(strel, 10) | |
} else { | |
return | |
} | |
}); | |
console.log('Este Curso te tomara: ', window.counter / 60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment