update So 5. Jul 23:31:01 CEST 2020

This commit is contained in:
Robert Richter 2020-07-05 23:31:01 +02:00
parent 8de29b652d
commit d97f69b9ce
5 changed files with 27 additions and 2 deletions

1
.gitignore vendored
View File

@ -94,6 +94,7 @@ public/media/*
!public/media/marker-shadow.png !public/media/marker-shadow.png
!public/media/bell_long.mp3 !public/media/bell_long.mp3
!public/media/bell_short.mp3 !public/media/bell_short.mp3
!public/media/bell_message.mp3
*.bak *.bak
*.save *.save

View File

@ -616,5 +616,15 @@ socket.on('io.new_rmld', function (data) {
// Anzahl der Rückmeldung zählen // Anzahl der Rückmeldung zählen
recount_rmld(pg_waip_uuid); recount_rmld(pg_waip_uuid);
}); });
var audio = document.getElementById('audio');
audio.src = ('/media/bell_message.mp3');
// Audio-Blockade des Browsers erkennen
var playPromise = document.querySelector('audio').play();
if (playPromise !== undefined) {
playPromise.then(function () {
audio.play();
}).catch(function (error) {
console.log('Notification playback failed');
});
};
}); });

View File

@ -532,6 +532,18 @@ socket.on('io.new_rmld', function (data) {
}); });
// Text anpassen // Text anpassen
resize_text(); resize_text();
// Bing abspielen
var audio = document.getElementById('audio');
audio.src = ('/media/bell_message.mp3');
// Audio-Blockade des Browsers erkennen
var playPromise = document.querySelector('audio').play();
if (playPromise !== undefined) {
playPromise.then(function () {
audio.play();
}).catch(function (error) {
console.log('Notification playback failed');
});
};
}); });
/* ########################### */ /* ########################### */

BIN
public/media/bell_message.mp3 Executable file

Binary file not shown.

View File

@ -317,5 +317,7 @@ style(type='text/css').
h3.list-group-item.list-group-item-light.flex-fill.text-dark 0 AGT h3.list-group-item.list-group-item-light.flex-fill.text-dark 0 AGT
//button#rueckmeldung.btn.btn-danger.btn-lg.btn-block.ion-md-paper-plane(type='button') Rückmeldung senden //button#rueckmeldung.btn.btn-danger.btn-lg.btn-block.ion-md-paper-plane(type='button') Rückmeldung senden
// TODO: zeitstrahl der den Ablauf anzeigt // TODO: zeitstrahl der den Ablauf anzeigt
.d-none
audio#audio(controls='')
source(src='', type='audio/mpeg')