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

View File

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

View File

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

View File

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