|
|
@@ -33,9 +33,15 @@ var DIU_UI_VERSION_DATE = "2019-11-24 11:29:00";
|
|
|
var g_snd = {
|
|
|
"reject_fare" : "",
|
|
|
"accept_fare" : "",
|
|
|
+ "rule_error" : "",
|
|
|
"button_press" : ""
|
|
|
};
|
|
|
|
|
|
+function _beep_error() {
|
|
|
+ g_snd.rule_error.currentTime=0;
|
|
|
+ g_snd.rule_error.play();
|
|
|
+}
|
|
|
+
|
|
|
function _beep_reject() {
|
|
|
g_snd.reject_fare.currentTime=0;
|
|
|
g_snd.reject_fare.play();
|
|
|
@@ -661,6 +667,9 @@ function _main_message_replace(msg, bg_color, text_color) {
|
|
|
else if (msg.match(/[Pp]assback/)) {
|
|
|
_beep_reject();
|
|
|
}
|
|
|
+ else if (msg.match(/Rule execution error/)) {
|
|
|
+ _beep_error();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -701,6 +710,9 @@ function _main_message_add(msg, bg_color, text_color) {
|
|
|
else if (msg.match(/[Pp]assback/)) {
|
|
|
_beep_reject();
|
|
|
}
|
|
|
+ else if (msg.match(/Rule execution error/)) {
|
|
|
+ _beep_error();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -1149,6 +1161,7 @@ function init() {
|
|
|
g_snd.button_press = new Audio("assets/459992_florianreichelt_beep_short.mp3");
|
|
|
g_snd.accept_fare = new Audio("assets/443026__qubodup__public-domain-beep-sound.mp3");
|
|
|
g_snd.reject_fare = new Audio("assets/368780__gurie__start-sound-beep.mp3");
|
|
|
+ g_snd.rule_error = new Audio("assets/363920__samsterbirdies__8-bit-error.mp3");
|
|
|
|
|
|
if (typeof PopufareSiteInit !== "undefined") {
|
|
|
PopufareSiteInit();
|