Add files via upload

added the HTML files from the webinterface.
To convert it into bytecode use minifier.html.
This commit is contained in:
Stefan Kremser
2017-02-08 09:10:58 +01:00
committed by GitHub
parent c32a8878df
commit 8e310c68e4
6 changed files with 532 additions and 0 deletions

13
htmlfiles/functions.js Normal file
View File

@@ -0,0 +1,13 @@
function getResponse(adr, callback, timeoutCallback = function(){alert("timeout error. Please reload the site");}, timeout = 3000){
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState == 4){
if(xmlhttp.status == 200) callback(xmlhttp.responseText);
else timeoutCallback();
}
};
xmlhttp.open("GET", adr, true);
xmlhttp.send();
xmlhttp.timeout = timeout;
xmlhttp.ontimeout = timeoutCallback;
}