update Mi 6. Mai 14:01:01 CEST 2020
This commit is contained in:
parent
8f16b67b03
commit
2bf711f365
@ -226,6 +226,7 @@ var socket = io('/waip');
|
|||||||
socket.on('connect', function () {
|
socket.on('connect', function () {
|
||||||
socket.emit('WAIP', wachen_id);
|
socket.emit('WAIP', wachen_id);
|
||||||
$('#waipModal').modal('hide');
|
$('#waipModal').modal('hide');
|
||||||
|
// TODO: bei Reconnect des Clients durch Verbindungsabbruch, erneut Daten anfordern
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('connect_error', function (err) {
|
socket.on('connect_error', function (err) {
|
||||||
@ -406,7 +407,8 @@ socket.on('io.neuerEinsatz', function (data) {
|
|||||||
// Ablaufzeit setzen
|
// Ablaufzeit setzen
|
||||||
start_counter(data.zeitstempel, data.ablaufzeit);
|
start_counter(data.zeitstempel, data.ablaufzeit);
|
||||||
// alte Rückmeldung entfernen
|
// alte Rückmeldung entfernen
|
||||||
|
//reset_rmld(data.uuid);
|
||||||
|
//recount_rmld(pg_waip_uuid);//, item_type, item_agt);
|
||||||
|
|
||||||
/////////uuid prüfen
|
/////////uuid prüfen
|
||||||
|
|
||||||
@ -457,7 +459,7 @@ socket.on('io.response', function (data) {
|
|||||||
// Progressbar hinterlegen
|
// Progressbar hinterlegen
|
||||||
add_resp_progressbar(pg_waip_uuid, pg_rmld_uuid, item_type, item_agt, pg_start, pg_end);
|
add_resp_progressbar(pg_waip_uuid, pg_rmld_uuid, item_type, item_agt, pg_start, pg_end);
|
||||||
// Anzahl der Rückmeldung zählen
|
// Anzahl der Rückmeldung zählen
|
||||||
recount_rmld(pg_waip_uuid, item_type, item_agt);
|
recount_rmld(pg_waip_uuid);//, item_type, item_agt);
|
||||||
});
|
});
|
||||||
// Text anpassen
|
// Text anpassen
|
||||||
resize_text();
|
resize_text();
|
||||||
@ -469,7 +471,7 @@ socket.on('io.response', function (data) {
|
|||||||
|
|
||||||
var counter_rmld = [];
|
var counter_rmld = [];
|
||||||
|
|
||||||
function reset_rmld() {
|
function reset_rmld(p_uuid) {
|
||||||
/*$('#pg-ek').empty();
|
/*$('#pg-ek').empty();
|
||||||
$('#pg-ma').empty();
|
$('#pg-ma').empty();
|
||||||
$('#pg-fk').empty();
|
$('#pg-fk').empty();
|
||||||
@ -597,6 +599,10 @@ function set_clock() {
|
|||||||
var element_time = curr_hour + ':' + curr_min;
|
var element_time = curr_hour + ':' + curr_min;
|
||||||
var element_day = d_names[curr_day] + ', ' + curr_date + '. ' + m_names[curr_month];
|
var element_day = d_names[curr_day] + ', ' + curr_date + '. ' + m_names[curr_month];
|
||||||
var element_date_time = curr_date + '.' + curr_month_id + '.' + curr_year + ' - ' + element_time;
|
var element_date_time = curr_date + '.' + curr_month_id + '.' + curr_year + ' - ' + element_time;
|
||||||
|
// Easter-Egg :-)
|
||||||
|
if (element_time == '13:37') {
|
||||||
|
element_time = '1337'
|
||||||
|
};
|
||||||
// nur erneuern wenn sich Zeit geändert hat
|
// nur erneuern wenn sich Zeit geändert hat
|
||||||
if ($('#time').text() !== element_time) {
|
if ($('#time').text() !== element_time) {
|
||||||
// Uhrzeit anzeigen
|
// Uhrzeit anzeigen
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user