update So 5. Jul 23:31:01 CEST 2020
This commit is contained in:
parent
8de29b652d
commit
d97f69b9ce
1
.gitignore
vendored
1
.gitignore
vendored
@ -94,6 +94,7 @@ public/media/*
|
||||
!public/media/marker-shadow.png
|
||||
!public/media/bell_long.mp3
|
||||
!public/media/bell_short.mp3
|
||||
!public/media/bell_message.mp3
|
||||
*.bak
|
||||
*.save
|
||||
|
||||
|
||||
@ -616,5 +616,15 @@ socket.on('io.new_rmld', function (data) {
|
||||
// Anzahl der Rückmeldung zählen
|
||||
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');
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
@ -532,6 +532,18 @@ socket.on('io.new_rmld', function (data) {
|
||||
});
|
||||
// Text anpassen
|
||||
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
BIN
public/media/bell_message.mp3
Executable file
Binary file not shown.
@ -317,5 +317,7 @@ style(type='text/css').
|
||||
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
|
||||
// TODO: zeitstrahl der den Ablauf anzeigt
|
||||
|
||||
.d-none
|
||||
audio#audio(controls='')
|
||||
source(src='', type='audio/mpeg')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user