Created
December 18, 2013 08:58
-
-
Save muZk/8019322 to your computer and use it in GitHub Desktop.
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
// http://dsrd.uc.cl/dara/libcursos/periodo21/ev/ev_4_data.html | |
function getTestDate(courseName){ | |
var rows = document.getElementsByTagName("tr"); | |
for(var i = 2; i < rows.length; i++){ | |
var fonts = rows[i].getElementsByTagName("font"); | |
console.log(fonts[0].textContent); | |
if(fonts[0].textContent == courseName){ | |
console.log('ok') | |
return fonts[fonts.length-3].innerHTML.split("<br>"); | |
} | |
} | |
return null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment