Frontend: Adjust vibration

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-02-02 11:22:38 +00:00
parent ee6fcae38f
commit 5223f5298a
4 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,6 @@
* Enable text search for `locationName` on find-code page.
* Responsive text sizes for boards.
### In Progress:
@ -23,7 +22,6 @@
* Issue page: Check for success and then redirect to /.
* Add success test for Gitea Issue API and send the result onto the client.
## Backend:
* DB Indexes:

View File

@ -67,6 +67,7 @@ async function displayData(data){
document.getElementById("name").value = "Not Found";
} else {
log(`find-code.displayData: Inserting data`, "INFO")
vibe("ok")
try {
document.getElementById("name").value = data['0']['NLCDESC']
} catch (err) {}

View File

@ -237,6 +237,7 @@ async function errorHandler() {
sessionStorage.setItem("failcount", errCount.toString())
if (errCount < 10){
await delay(3000);
vibe("err")
location.reload()
} else {
sessionStorage.removeItem("failcount");

View File

@ -31,6 +31,7 @@ async function setQl(){
log(`settings.setQl: User settings saved`, "INFO")
await hideLoading();
await showDone();
vibe("ok")
await delay(600);
hideDone();
}
@ -42,8 +43,8 @@ async function clearQl(){
getQl()
await hideLoading();
await showDone();
navigator.vibrate(500);
await delay(600);
vibe("ok");
await delay(400);
hideDone();
}