Frontend: Adjust vibration
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
parent
ee6fcae38f
commit
5223f5298a
@ -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:
|
||||
|
@ -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) {}
|
||||
|
@ -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");
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user