This commit is contained in:
ntr
2019-08-14 15:23:15 +10:00
parent f68a12eab8
commit 6fe9b52d00
17 changed files with 487 additions and 260 deletions
+6 -1
View File
@@ -89,12 +89,17 @@
}
}
#mnml.acp, .acp {
#mnml.acp {
user-select: text;
-moz-user-select: text;
-webkit-user-select: text;
-ms-user-select: text;
.bottom {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
input {
display: block;
}
-17
View File
@@ -204,23 +204,6 @@ function postData(url = '/', data = {}) {
});
}
function getData(url = '/', data = {}) {
// Default options are marked with *
return fetch(`/api${url}`, {
method: 'GET', // *GET, POST, PUT, DELETE, etc.
// mode: 'no-cors', // no-cors, cors, *same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'include', // include, same-origin, *omit
headers: {
Accept: 'application/json',
'content-type': 'application/json',
},
redirect: 'error', // manual, *follow, error
// referrer: ', // no-referrer, *client
body: JSON.stringify(data), // body data type must match "Content-Type" header
});
}
function errorToast(message) {
toast.error({
position: 'topRight',