From e1e5beb4992ac62b0975c8e85b872d4e77aedc9a Mon Sep 17 00:00:00 2001 From: strukturart Date: Sat, 23 Sep 2023 08:50:07 +0200 Subject: [PATCH] hotline option --- application/assets/js/module.js | 4 ++-- application/assets/js/settings.js | 9 +++++++++ application/index.html | 28 +++++++++++++++++++++++----- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/application/assets/js/module.js b/application/assets/js/module.js index 65c6993c..283ed974 100644 --- a/application/assets/js/module.js +++ b/application/assets/js/module.js @@ -947,9 +947,9 @@ const module = (() => { alt: alt, timestamp: ts.toISOString(), }); - + console.log(setting); try { - hotline(tracking_cache); + if (setting.hotline_view) hotline(tracking_cache); } catch (e) { console.log(e); } diff --git a/application/assets/js/settings.js b/application/assets/js/settings.js index 74a72c49..84a81ed1 100644 --- a/application/assets/js/settings.js +++ b/application/assets/js/settings.js @@ -118,6 +118,11 @@ const settings = ((_) => { localStorage.getItem("tips_view") != null ? JSON.parse(localStorage.getItem("tips_view")) : true, + + hotline_view: + localStorage.getItem("hotline_view") != null + ? JSON.parse(localStorage.getItem("hotline_view")) + : true, }; setting.tracking_screenlock @@ -147,6 +152,10 @@ const settings = ((_) => { ? (document.getElementById("tips-ckb").checked = true) : (document.getElementById("tips-ckb").checked = false); + setting.hotline_view + ? (document.getElementById("hotline-ckb").checked = true) + : (document.getElementById("hotline-ckb").checked = false); + //show / hidde crosshair setting.crosshair ? (document.getElementById("cross").style.visibility = "visible") diff --git a/application/index.html b/application/index.html index 08dc666c..65a873b4 100644 --- a/application/index.html +++ b/application/index.html @@ -400,8 +400,6 @@

Tracking notifications

+ +
+ + +
+
+
+

Views

@@ -455,8 +466,6 @@

Export

accuracy +-
alt accuracy +-
- -
@@ -498,7 +507,7 @@

Export

- + @@ -719,6 +730,13 @@

Instructions

+
+
+
hotline
+
longpress 6
+
+
+
share your position