diff --git a/www/assets/css/app.css b/www/assets/css/app.css
index 3a1140e..60ad4d2 100644
--- a/www/assets/css/app.css
+++ b/www/assets/css/app.css
@@ -19,6 +19,17 @@ Framework7 and FontAwesome both have a .fab class
line-height: var(--f7-line-height);
}
+/*
+ * Material icons are too big and disrupt the flow of text
+ */
+.block .material-icons {
+ font-size: var(--f7-block-font-size);
+}
+
+.material-icons-intext .material-icons {
+ font-size: var(--f7-block-font-size);
+}
+
#mapbox .package-marker {
width: 25px;
height: 25px;
diff --git a/www/assets/js/settings.js b/www/assets/js/settings.js
index fa23369..2378d8b 100644
--- a/www/assets/js/settings.js
+++ b/www/assets/js/settings.js
@@ -7,7 +7,6 @@
$('.item-content[data-setting=darktheme] .toggle input').on("change", function () {
var checked = $(this).prop('checked');
- console.log(checked);
localStorage.setItem("darktheme", checked);
if (localStorage.getItem("darktheme") == "true") {
@@ -17,6 +16,11 @@ $('.item-content[data-setting=darktheme] .toggle input').on("change", function (
}
});
+$('.item-content[data-setting=showhelp] .toggle input').on("change", function () {
+ var checked = $(this).prop('checked');
+ localStorage.setItem("show_help", checked);
+});
+
$('.item-link[data-setting=units] select').on("change", function () {
localStorage.setItem("units", $('.item-link[data-setting=units] select').val());
});
@@ -27,21 +31,20 @@ $('.item-link[data-setting=trackzoom] select').on("change", function () {
$('.item-content[data-setting=wakelock] .toggle input').on("change", function () {
var checked = $(this).prop('checked');
- console.log(checked);
localStorage.setItem("wakelock", checked);
if (platform_type == "cordova") {
if (localStorage.getItem("wakelock") == "true") {
window.powerManagement.acquire(function () {
- console.log('Wakelock acquired');
+ console.log("Info", 'Wakelock acquired');
}, function () {
- console.log('Failed to acquire wakelock');
+ console.log("Warn", 'Failed to acquire wakelock');
});
} else {
window.powerManagement.release(function () {
- console.log('Wakelock released');
+ console.log("Info", 'Wakelock released');
}, function () {
- console.log('Failed to release wakelock');
+ console.log("Warn", 'Failed to release wakelock');
});
}
} else {
@@ -73,13 +76,12 @@ $('.item-content[data-setting=alertinterval] .range-slider').on('range:changed',
$('.item-link[data-setting=mapsource] select').on("change", function () {
localStorage.setItem("mapsource", $('.item-link[data-setting=mapsource] select').val());
- // Re-init map to load new style
+
reloadMap();
});
$('.item-content[data-setting=maptype] .toggle input').on("change", function () {
var checked = $(this).prop('checked');
- console.log(checked);
localStorage.setItem("maptype", checked ? "leaflet" : "mapbox");
maptype = checked ? "leaflet" : "mapbox";
diff --git a/www/pages/help/list.html b/www/pages/help/list.html
index 0d94a6e..0f29c82 100644
--- a/www/pages/help/list.html
+++ b/www/pages/help/list.html
@@ -18,33 +18,39 @@
+
Manage Items
-
- Swipe left-to-right on a list entry
- to show the actions you can take.
- These actions are marking the item as delivered/undelivered, or
- navigating to its location with your device's default maps app.
-
-
-
- Swipe right-to-left on a list entry
- and tap delete Delete to remove it.
-
+ Swipe
left-to-right on a list entry
+ to show the actions you can take.
+ These actions are marking the item as delivered/undelivered, or
+ navigating to its location with your device's default maps app.
+
+ Swipe
right-to-left on a list entry
+ and tap
+
delete Delete to remove it.
+
-
- Tap the search button to open a search
- box. Type in this box to hide any list entries that don't contain your
- input.
-
+
Clear the List
+
+ Tap the delete
+ button to remove all items from the list. This cannot be undone, so it's
+ a good idea to do it at the end of the day or in the morning before you start.
+ Note that clearing the list does not affect the address autofill.
+
-
- Tap the sort button to sort the list.
-
+
Search
+
+ Tap the search button to open a search
+ box. Type in this box to hide any list entries that don't contain your
+ search query.
+
-
- Tap the delete button to remove all
- items from the list.
-
+
Sort Items
+
+ Tap the sort button to sort
+ the list. You can sort by distance from your current
+ location, alphabetically by street name, and numerically by
+ address number.
diff --git a/www/pages/help/map.html b/www/pages/help/map.html
new file mode 100644
index 0000000..bafc5fb
--- /dev/null
+++ b/www/pages/help/map.html
@@ -0,0 +1,69 @@
+
+