mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Ajout de la lecture d'un son sur reception d'un message
This commit is contained in:
parent
08af44287a
commit
cfd0e95b85
7 changed files with 20 additions and 0 deletions
|
@ -29,6 +29,7 @@ function verifReceived()
|
|||
jQuery.getJSON(HTTP_PWD + "/receiveds/popup", function( data ) {
|
||||
$.each(data, function(key, val) {
|
||||
showMessage('SMS reçu du ' + val.send_by.replace(/</g, "<").replace(/>/g, ">") + ' : ' + val.content.replace(/</g, "<").replace(/>/g, ">"), 1);
|
||||
playReceptionSound();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -50,6 +51,14 @@ function scrollDownDiscussion()
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cette fonction jou le son de reception d'un SMS
|
||||
*/
|
||||
function playReceptionSound ()
|
||||
{
|
||||
jQuery('body').find('#reception-sound').play();
|
||||
}
|
||||
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var verifReceivedInterval = setInterval(verifReceived, 10000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue