File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ html, body{
10
10
height : 100% ;
11
11
display : table;
12
12
background-color : black;
13
- -webkit-transition : .2 s linear background-color;
13
+ -webkit-transition : .1 s linear background-color;
14
14
}
15
15
16
16
h1 {
20
20
font-weight : normal;
21
21
font-family : 'Yanone Kaffeesatz' , 'Helvetica' , sans-serif;
22
22
color : rgba (255 , 255 , 255 , .1 );
23
- -webkit-transition : .2 s linear color;
23
+ -webkit-transition : .1 s linear color;
24
24
text-align : center;
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ var highlight = function(){
24
24
} ;
25
25
26
26
var playSound = function ( ) {
27
- $audio . play ( ) ;
27
+ if ( $audio . paused )
28
+ $audio . play ( ) ;
29
+ else {
30
+ $audio . pause ( ) ;
31
+ $audio . currentTime = 0 ;
32
+ $audio . play ( ) ;
33
+ }
28
34
} ;
29
35
30
36
socket . on ( 'sup' , function ( ) {
You can’t perform that action at this time.
0 commit comments