Skip to content

Instantly share code, notes, and snippets.

View HennerM's full-sized avatar

Markus Hennerbichler HennerM

View GitHub Profile
if (typeof grades == "undefined") {
var grades = {};
}
$("#ctl00_ctl00_ctl00_MainArea_MainArea_ContentArea_gvGrades tr").each(function() {
var name = $(this).find("td:nth-child(4)").text().trim();
var value = parseFloat($(this).find("td:nth-child(3)").text().trim());
if (typeof grades[name] == "undefined") {
grades[name] = value;
} else {
grades[name] += value;