Merge branch 'master' of https://christophhagen.de/git/ch/FestivalServer
This commit is contained in:
@@ -17,3 +17,17 @@ function loadList(name, source) {
|
||||
txtFile.open("GET", list, true);
|
||||
txtFile.send(null);
|
||||
}
|
||||
|
||||
function loadCount() {
|
||||
var txtFile = new XMLHttpRequest();
|
||||
var allText = "";
|
||||
txtFile.onreadystatechange = function () {
|
||||
if (txtFile.readyState === XMLHttpRequest.DONE && txtFile.status == 200) {
|
||||
allText = txtFile.responseText;
|
||||
}
|
||||
document.getElementById("left-button").innerHTML = "Registered (" + allText + ")";
|
||||
}
|
||||
var list = '/festival/api/count' + name;
|
||||
txtFile.open("GET", list, true);
|
||||
txtFile.send(null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user