Laufende Arbeiten

Filtern nach Stichwort

Legende: BA: Bachelorarbeit - MA: Masterarbeit - FP: Projekt für Master-Modul MEI-M 40 (Forschungsmodul) - EP: Projekt für Master-Modul MEI-M 26 (Projektmodul).

Statistik

Dozent	Betreute Arbeiten
Test	12

<JS> function addStatsLine(lecturer, numTheses) {

var tableBodyList = document.querySelectorAll("table.inline tbody"),
statsTableBody = tableBodyList[tableBodyList.length - 1],
container = document.createElement("tr"),
lecturerNode = document.createElement("td"),
numNode = document.createElement("td");
lecturerNode.innerHTML = lecturer;
numNode.innerHTML = numTheses;
container.appendChild(lecturerNode);
container.appendChild(numNode);
statsTableBody.appendChild(container);

}

function getStats() {

var lecturerNodes = document.querySelectorAll("td.betreuer"),
stats = [];
for(var i = 0; i < lecturerNodes.length; i++) {
var node = lecturerNodes[i],
lecturer = node.querySelector("a").innerHTML;
if(stats[lecturer] === undefined) {
stats[lecturer] = 0;
}
stats[lecturer]++;
}

for (var key in stats) {
addStatsLine(key, stats[key]);
}

}

getStats(); </JS>