From 31e3e8539a286b0b465c0d63e90791ba986744d5 Mon Sep 17 00:00:00 2001 From: ctucx Date: Fri, 12 Jun 2020 19:41:45 +0000 Subject: [PATCH] new icons and selector in suggestions --- client/img/bus.svg | 90 +++++++------ client/img/{d.svg => dzug.svg} | 0 client/img/ferry.svg | 94 ++++++++++++++ client/img/s.svg | 70 ----------- client/img/suburban.svg | 78 ++++++++++++ client/img/{u.svg => subway.svg} | 67 +++++----- client/img/taxi.svg | 90 +++++++++++++ client/img/tram.svg | 94 ++++++++------ client/index.html | 2 - client/js/api.js | 4 +- client/js/journeyView.js | 10 +- client/js/journeysView.js | 8 +- client/js/overlays.js | 10 +- client/js/searchView.js | 120 +++++++++++++----- client/style.css | 208 +++++++++++++++++++------------ 15 files changed, 629 insertions(+), 316 deletions(-) rename client/img/{d.svg => dzug.svg} (100%) create mode 100644 client/img/ferry.svg delete mode 100644 client/img/s.svg create mode 100644 client/img/suburban.svg rename client/img/{u.svg => subway.svg} (79%) create mode 100644 client/img/taxi.svg diff --git a/client/img/bus.svg b/client/img/bus.svg index 65cf832..27b34ba 100644 --- a/client/img/bus.svg +++ b/client/img/bus.svg @@ -7,36 +7,43 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:version="1.0 (4035a4f, 2020-05-01)" - sodipodi:docname="bus_new_path.svg" - id="svg8" - version="1.1" - viewBox="0 0 46.347183 46.347183" + width="46.347183mm" height="46.347183mm" - width="46.347183mm"> + viewBox="0 0 46.347183 46.347183" + version="1.1" + id="svg8" + sodipodi:docname="bus.svg" + inkscape:version="1.0 (4035a4f, 2020-05-01)"> + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="959" + id="namedview197" + showgrid="false" + inkscape:zoom="2.3291599" + inkscape:cx="19.320271" + inkscape:cy="122.26222" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="0" + inkscape:current-layer="text24" /> + id="defs2"> + + @@ -50,24 +57,29 @@ + transform="translate(-32.443024,-29.353207)" + id="layer1"> + style="font-style:normal;font-weight:normal;font-size:24.6944px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"> + style="font-style:normal;font-weight:normal;font-size:6.73823px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect333);fill:#000000;fill-opacity:1;stroke:none" + id="text331" + transform="matrix(3.1412813,0,0,3.1412813,-99.37558,-98.671926)" + aria-label="Bus"> + id="path445" + style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:6.73823px;font-family:roboto;-inkscape-font-specification:'roboto Heavy'" + d="m 43.822854,50.495148 v -4.790461 h 1.720749 q 0.924533,0 1.404895,0.338886 0.483652,0.338886 0.483652,0.983755 0,0.371787 -0.171088,0.635 -0.171087,0.263212 -0.503393,0.388237 0.375078,0.09871 0.575777,0.368497 0.200699,0.269793 0.200699,0.658031 0,0.704092 -0.447461,1.059428 -0.44417,0.352047 -1.31935,0.358627 z m 1.154843,-2.036604 v 1.148263 h 0.756735 q 0.312565,0 0.480362,-0.141476 0.167798,-0.144767 0.167798,-0.404689 0,-0.598808 -0.595517,-0.602098 z m 0,-0.756735 h 0.602098 q 0.378367,-0.0033 0.539585,-0.138186 0.161217,-0.134896 0.161217,-0.398108 0,-0.302694 -0.174378,-0.4343 -0.174378,-0.134897 -0.562616,-0.134897 h -0.565906 z" /> + id="path447" + style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:6.73823px;font-family:roboto;-inkscape-font-specification:'roboto Heavy'" + d="m 50.235359,50.1102 q -0.352046,0.450751 -0.950853,0.450751 -0.585647,0 -0.888341,-0.338886 Q 48.096761,49.87989 48.096761,49.2416 v -2.306396 h 1.108781 v 2.312977 q 0,0.457331 0.44417,0.457331 0.381658,0 0.542875,-0.273083 v -2.497225 h 1.115362 v 3.559944 h -1.039688 z" /> + diff --git a/client/img/d.svg b/client/img/dzug.svg similarity index 100% rename from client/img/d.svg rename to client/img/dzug.svg diff --git a/client/img/ferry.svg b/client/img/ferry.svg new file mode 100644 index 0000000..374bf96 --- /dev/null +++ b/client/img/ferry.svg @@ -0,0 +1,94 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/client/img/s.svg b/client/img/s.svg deleted file mode 100644 index 3f6e208..0000000 --- a/client/img/s.svg +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - - - diff --git a/client/img/suburban.svg b/client/img/suburban.svg new file mode 100644 index 0000000..9eaa8b5 --- /dev/null +++ b/client/img/suburban.svg @@ -0,0 +1,78 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/client/img/u.svg b/client/img/subway.svg similarity index 79% rename from client/img/u.svg rename to client/img/subway.svg index 5943417..912967e 100644 --- a/client/img/u.svg +++ b/client/img/subway.svg @@ -7,34 +7,34 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:version="1.0 (4035a4f, 2020-05-01)" - sodipodi:docname="u_new_path.svg" - id="svg8" - version="1.1" - viewBox="0 0 46.347183 46.347183" + width="46.347183mm" height="46.347183mm" - width="46.347183mm"> + viewBox="0 0 46.347183 46.347183" + version="1.1" + id="svg8" + sodipodi:docname="u.svg" + inkscape:version="1.0 (4035a4f, 2020-05-01)"> + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="959" + id="namedview197" + showgrid="false" + inkscape:zoom="2.3291599" + inkscape:cx="19.320271" + inkscape:cy="122.69156" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="0" + inkscape:current-layer="text24" /> + transform="translate(-32.443024,-29.353207)" + id="layer1"> + style="font-style:normal;font-weight:normal;font-size:24.6944px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"> + style="font-style:normal;font-weight:normal;font-size:29.9861px;line-height:0.75;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.0700042"> + id="path281" /> diff --git a/client/img/taxi.svg b/client/img/taxi.svg new file mode 100644 index 0000000..9da9f14 --- /dev/null +++ b/client/img/taxi.svg @@ -0,0 +1,90 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/client/img/tram.svg b/client/img/tram.svg index 6b7b770..279fc2e 100644 --- a/client/img/tram.svg +++ b/client/img/tram.svg @@ -7,36 +7,43 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - inkscape:version="1.0 (4035a4f, 2020-05-01)" - sodipodi:docname="tram_new_path.svg" - id="svg8" - version="1.1" - viewBox="0 0 46.347183 46.347183" + width="46.347183mm" height="46.347183mm" - width="46.347183mm"> + viewBox="0 0 46.347183 46.347183" + version="1.1" + id="svg8" + sodipodi:docname="tram.svg" + inkscape:version="1.0 (4035a4f, 2020-05-01)"> + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="959" + id="namedview197" + showgrid="false" + inkscape:zoom="2.3291599" + inkscape:cx="19.320271" + inkscape:cy="122.26222" + inkscape:window-x="0" + inkscape:window-y="23" + inkscape:window-maximized="0" + inkscape:current-layer="text24" /> + id="defs2"> + + @@ -50,24 +57,33 @@ + transform="translate(-32.443024,-29.353207)" + id="layer1"> + style="font-style:normal;font-weight:normal;font-size:24.6944px;line-height:1.25;font-family:sans-serif;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"> + style="font-style:normal;font-weight:normal;font-size:5.61519px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect333);fill:#000000;fill-opacity:1;stroke:none" + id="text331" + transform="matrix(3.1412813,0,0,3.1412813,-101.43057,-96.690213)" + aria-label="Tram"> + id="path394" + style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:5.61519px;font-family:roboto;-inkscape-font-specification:'roboto Heavy'" + d="M 46.896403,46.221541 H 45.69824 v 3.249023 h -0.962369 v -3.249023 h -1.176229 v -0.743026 h 3.336761 z" /> + id="path396" + style="font-style:normal;font-variant:normal;font-weight:900;font-stretch:normal;font-size:5.61519px;font-family:roboto;-inkscape-font-specification:'roboto Heavy'" + d="m 48.88146,47.340192 -0.304339,-0.02193 q -0.435945,0 -0.559325,0.274179 v 1.878127 h -0.923984 v -2.966619 h 0.866406 l 0.03016,0.381109 q 0.233052,-0.435944 0.649804,-0.435944 0.148057,0 0.257729,0.0329 z" /> + + diff --git a/client/index.html b/client/index.html index 735dcb0..70ad1fe 100644 --- a/client/index.html +++ b/client/index.html @@ -27,8 +27,6 @@ - -