From 9f885f6068c1a8e8807ddfc42f565058a8b0b1c5 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sat, 29 Jun 2019 12:54:32 +0200 Subject: [PATCH] More ES6 refactoring --- css/main.css | 35 ++++++-- index.php | 112 +++++++++++------------- js/ajax.js | 27 ++++-- js/auth.js | 19 +++++ js/binder.js | 19 +++++ js/chart.js | 80 +++++++++++++++-- js/config.js | 25 +++++- js/constants.js | 19 +++++ js/data.js | 19 +++++ js/event.js | 29 ++++++- js/list.js | 89 ++++++++++++++----- js/map.js | 61 ++++++++++--- js/mapapi/api_gmaps.js | 123 +++++++++++++++----------- js/mapapi/api_openlayers.js | 166 +++++++++++++++++++++--------------- js/modal.js | 19 +++++ js/position.js | 19 +++++ js/track.js | 51 +++++++++-- js/trackdialog.js | 3 +- js/tracklist.js | 144 +++++++++++++++++++++---------- js/ui.js | 144 ++++++++++++++++++++++--------- js/ulogger.js | 19 +++++ js/user.js | 19 +++++ js/userdialog.js | 3 +- js/userlist.js | 48 +++++++++-- js/utils.js | 42 +++++++++ 25 files changed, 995 insertions(+), 339 deletions(-) diff --git a/css/main.css b/css/main.css index 2d975ce..f84895b 100644 --- a/css/main.css +++ b/css/main.css @@ -53,7 +53,7 @@ select { #menu input[type = "checkbox"] { width: auto; } -.menulink { +.menu-link { display: block; margin-top: .2em; } @@ -117,7 +117,7 @@ label[for=user] { .section:first-child { padding-top: 1em; } -#inputFile { +#input-file { display: none; } #summary div { @@ -201,7 +201,7 @@ label[for=user] { background-color: white; opacity: 0.8; } -#chart_close { +#chart-close { position: fixed; bottom: 175px; right: 175px; @@ -308,7 +308,7 @@ button > * { -webkit-border-radius: 10px; } -.dropdown { +#user-dropdown { display: none; position: absolute; background-color: gray; @@ -317,7 +317,7 @@ button > * { border: 1px solid #888; } -.dropdown a { +#user-dropdown a { display: block; padding-bottom: .5em; padding-top: .5em; @@ -327,7 +327,7 @@ button > * { .icon { height: 1.4em; } -.u { text-decoration: underline; } +.menu-title { text-decoration: underline; } .loader { animation: blink 1s linear infinite; @@ -337,6 +337,29 @@ button > * { 50% { opacity: 0; } } +/* chart */ +.ct-point { + stroke-width: 5px !important; + transition: 0.3s; +} +.ct-point:hover { + stroke-width: 10px !important; + cursor: pointer; +} + +.ct-point-hilight { + stroke-width: 10px !important; +} + +.ct-point-selected { + stroke-width: 10px !important; + stroke: #f4c63d !important; +} + +.ct-line { + stroke-width: 2px; !important; +} + /* openlayers 3 popup */ .ol-popup { position: absolute; diff --git a/index.php b/index.php index 501101c..4e4d05d 100644 --- a/index.php +++ b/index.php @@ -85,10 +85,10 @@