Domain index

This commit is contained in:
relikd
2020-09-18 23:56:15 +02:00
parent 0148106a56
commit ba8091268d
10 changed files with 351 additions and 59 deletions

View File

@@ -11,4 +11,15 @@ function updateViewport() {// show at least 2 columns on mobile devices
x.setAttribute("content", "width=372");
document.head.appendChild(x);
}
}
function loadJSON(url, callback, async=true) {
var xobj = new XMLHttpRequest();
xobj.overrideMimeType("application/json");
xobj.open('GET', url, async);
xobj.onreadystatechange = function () {
if (xobj.readyState == 4 && xobj.status == "200") {
callback(xobj.responseText);
}
};
xobj.send(null);
}