feat: first pass at filter and game screen + some bug fixes

This commit is contained in:
Michael Green
2023-06-24 14:06:14 +10:00
parent a9dee0dd4c
commit 8112f9e9a7
17 changed files with 330 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
function ajaxCall(endpoint, method, successFunction) {
$.ajax({
// Our sample url to make request
url:
endpoint,
// Type of Request
type: method,
// Function to call when to
// request is ok
success: function (data) {
var x = JSON.stringify(data);
console.log(x);
successFunction(data);
},
// Error handling
error: function (error) {
console.log(`Error ${error}`);
}
});
}