File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ function start() {
3
3
if ( i == 0 ) {
4
4
i = 1 ;
5
5
var elem = document . getElementById ( "myBar" ) ;
6
+ var beep_sound = document . getElementById ( "beep" )
6
7
var width = 0 ;
7
8
var time_from_start = 0 ;
8
9
var id = setInterval ( frame , 10 ) ;
9
10
function frame ( ) {
10
11
if ( width >= 100 ) {
11
12
clearInterval ( id ) ;
13
+ beep_sound . play ( ) ;
12
14
i = 0 ;
13
15
} else {
14
16
width += 1 / 45 ;
Original file line number Diff line number Diff line change 8
8
< script type ="text/javascript " src ="static/js/shieldui-all.min.js "> </ script >
9
9
< script type ="text/javascript " src ="static/js/main.js "> </ script >
10
10
</ head >
11
+ < body >
12
+ < audio id ="beep ">
13
+ < source src ="static/voices/beep.mp3 " type ="audio/mpeg ">
14
+ Your browser does not support the audio element.
15
+ </ audio >
11
16
< table style ="border-collapse: collapse ">
12
17
{% block sub_table %}{% endblock %}
13
18
</ table >
14
19
{% block messages %}
15
20
{% endblock %}
21
+ </ body >
You can’t perform that action at this time.
0 commit comments