check code in mp3 file

This commit is contained in:
phyusin
2018-05-14 11:34:33 +06:30
parent 9900ea385a
commit cc0178eb65
2 changed files with 3 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ function showNewOrder(order_reservation,shop_code){
var time = timeFormat(date);
var requested_date = date.getFullYear() + '-' + (date.getMonth() >= 10? date.getMonth() : '0' + (date.getMonth() + 1)) +'-'+ (date.getDate() >= 10? date.getDate() : '0' + date.getDate()) +' '+time;
//audio play
var audio = new Audio('/beep.mp3'); // define your audio
var audio = new Audio('/'+shop_code+'-beep.mp3'); // define your audio
// setTimeout(function(){
// audio.loop = true;
audio.play();