Skip to content

Commit 2f2ad56

Browse files
committed
added sounds
1 parent 1d00345 commit 2f2ad56

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎v3/opt_togetherjs/admin.html‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@
8080
setBtnLabel(dat);
8181
}
8282
else if (dat.type == 'new-help-request') {
83+
$('#rikerRedAlertSound').get(0).play();
84+
$('#redAlertSirenSound').get(0).play();
8385
appendDiv(dat);
8486
}
8587
};
@@ -111,6 +113,13 @@
111113

112114
<body>
113115

116+
<audio id="rikerRedAlertSound" controls>
117+
<source src="sounds/redalert.mp3" type="audio/mpeg"/>
118+
</audio>
119+
<audio id="redAlertSirenSound" controls>
120+
<source src="sounds/tng_red_alert2.mp3" type="audio/mpeg"/>
121+
</audio>
122+
114123
<h2>OPT live help admin panel</h2>
115124

116125
<div style="margin-bottom: 10pt;">

‎v3/opt_togetherjs/server.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ var helpAvailable = false;
509509

510510
function pgLogWrite(logObj) {
511511
var s = JSON.stringify(logObj);
512-
console.log(s); // debug
512+
//console.log(s); // debug
513513

514514
if (pgLogFile) {
515515
pgLogFile.write(s + '\n');
21.1 KB
Binary file not shown.
218 KB
Binary file not shown.

0 commit comments

Comments
 (0)