From f63085bef7fbbf756852dfa4559f0cc08b06da63 Mon Sep 17 00:00:00 2001 From: choelzl Date: Fri, 16 Jul 2021 19:03:55 +0200 Subject: [PATCH] cleanup --- public/js/main.js | 10 ++++++---- public/template/journey.html | 25 +++++++++++++++++-------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 887184c..979240a 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -37,11 +37,11 @@ const icon_type = (item)=>{ return 'bed'; }else if(t=='museum'){ return 'landmark'; - }else if(t=='peak'){ + }else if(t=='peak' || t=='viewpoint'){ return 'mountain'; }else if(t=='parking'){ return 'parking'; - }else if(t=='water' || t=='river'){ + }else if(t=='water' || t=='river' || t=='lake' || t=='torrent'){ return 'water'; }else if(t=='community_centre'){ return 'building'; @@ -51,9 +51,11 @@ const icon_type = (item)=>{ return 'landmark'; }else if(t=='bridge'){ return 'archway'; - }else if(t=='a'){ + }else if(t=='woodland'|| t=='shieling'){ + return 'tree'; + }else if(t=='?'){ return ''; - }else if(t=='a'){ + }else if(t=='?'){ return ''; }else{ console.log(item.category, item.type); diff --git a/public/template/journey.html b/public/template/journey.html index bc3ff27..49d6dc7 100644 --- a/public/template/journey.html +++ b/public/template/journey.html @@ -54,7 +54,7 @@
-
+
@@ -234,9 +234,9 @@

{{place.sname}}

{{place.display_name}} -
+

{{place.sname}}

{{place.display_name}} -
+

{{place.sname}}

{{place.display_name}} -
+

{{place.sname}}

{{place.display_name}} -
@@ -386,6 +385,16 @@ {{place.notes}} + + +
+
+ +

{{place.sname}}

+ {{place.display_name}} + {{place.notes}} +
+