From 17178ee0795e4e0f7b370bc1ce3a83cca79bd9ac Mon Sep 17 00:00:00 2001 From: Robert Richter Date: Mon, 2 Mar 2020 11:01:01 +0100 Subject: [PATCH] =?UTF-8?q?update=20Mo=202.=20M=C3=A4r=2011:01:01=20CET=20?= =?UTF-8?q?2020?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/client_dbrd.js | 8 +++++- views/includes/master_dashboard.pug | 43 +++++++++++++++++++---------- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/public/js/client_dbrd.js b/public/js/client_dbrd.js index 3cc25ab..4809ed9 100755 --- a/public/js/client_dbrd.js +++ b/public/js/client_dbrd.js @@ -351,7 +351,13 @@ if (arrayItem.agt){ add_resp_progressbar(arrayItem.resp_uuid, item_type, arrayItem.agt, new Date(arrayItem.set_time), new Date(arrayItem.arrival_time)); items.update(new_item); groups.update({ id: arrayItem.wache_id, content: arrayItem.wache_name }); - $( '#'+item_type+'-counter' ).text('x') + var tmp_count = parseInt( $( '#'+item_type+'-counter' ).text() ); + $( '#'+item_type+'-counter' ).text(tmp_count + 1 ); + + if (arrayItem.agt){ + var tmp_agt = parseInt( $( '#agt-counter' ).text() ); + $( '#agt-counter' ).text(tmp_agt + 1 ); + }; }); diff --git a/views/includes/master_dashboard.pug b/views/includes/master_dashboard.pug index 0c46a54..aa8a07a 100755 --- a/views/includes/master_dashboard.pug +++ b/views/includes/master_dashboard.pug @@ -7,31 +7,44 @@ style(type='text/css'). /*border: 1px solid lightgray;*/ } .vis-item.ek { - background-color: lightblue; - border-color: black; + background-color: #00bc8c; + border-color: #fff; } .vis-item.ma { - background-color: lightpink; - border-color: black; + background-color: #3498DB; + border-color: #fff; } .vis-item.fk { - background-color: lightgrey; - border-color: black; + background-color: #adb5bd; + border-color: #fff; } .vis-item.ek-agt { - background-color: lightblue; - border-color: orangered; - border-width: 2px; + background-color: #00bc8c; + border-color: #F39C12; + border-width: 3px; } .vis-item.ma-agt { - background-color: lightpink; - border-color: orangered; - border-width: 2px; + background-color: #3498DB; + border-color: #F39C12; + border-width: 3px; } .vis-item.fk-agt { - background-color: lightgrey; - border-color: orangered; - border-width: 2px; + background-color: #adb5bd; + border-color: #F39C12; + border-width: 3px; + } + .vis-item, .vis-inner, .vis-time-axis .vis-text { + color: #fff; + } + .vis-timeline { + border: 1px solid #444; + background: #444; + } + .vis-current-time { + background: #E74C3C; + } + .vis-custom-time { + background: #3498DB; }