Initial commit

This commit is contained in:
Benjamyn Love committed 2020-01-31 09:13:26 +11:00
commit f702e7a004
13 files changed
+382

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
function makeCall(btn) {
let makePost = new XMLHttpRequest();
postData = { "button": btn };
makePost.onreadystatechange = function () {
if (makePost.readyState === 4) {
document.getElementById("content").innerHTML = makePost.response;
}
}
makePost.open("POST", window.location.href, true);
makePost.send(JSON.stringify(postData));
}