Domain index
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user