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 lines = document.getElementsByClassName('DataSelect'); | |
var gradeCalc = { | |
grades: [], | |
average: -1, | |
weightedSum: 0, | |
ectsSum: 0 | |
}; | |
for(var i = 0; i < lines.length; i++){ | |
var children = lines[i].children; | |
var grade = {}; |
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
/* | |
* Given a Date, Month and Year | |
* Return DAY_OF_WEEK. | |
* | |
* @param {Number} [D] Date in the following format: d | |
* @param {Number} [M] Month in the following format: m | |
* @param {Number} [Y] Year in the following format: yyyy | |
* @param {Boolean} [J=false] Defaults to the Gregorian calendar, when J is omitted or set to false. When set to true, the Day Of Week in the Julian calendar is returned. | |
* @return {String} The Day of Week, UPPERCASED. | |
*/ |
NewerOlder