File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- /* background defeaults to transparent b/c mystery box radnomly flashes on screen in
1+ /* background defaults to transparent b/c mystery box randomly flashes on screen in
22 random positions, this appears to patch the bug for now */
33* { margin : 0 ; padding : 0 ; background-color : rgba ( 0 , 0 , 0 , 0 ); }
44body {
Original file line number Diff line number Diff line change @@ -22,15 +22,16 @@ window.onload = function( e ) {
2222 height -= height % 47 ;
2323 height -= height < 400 ? 47 : 0 ;
2424 document . getElementById ( "credits-wrap" ) . style . height = ( height ) . toString ( ) + "px" ;
25+
26+ // Show play button when audio is ready
2527 var audio = document . getElementById ( "music" ) ;
2628 audio . addEventListener ( 'canplaythrough' , start , false ) ;
2729 checkLoad ( audio ) ;
2830}
2931
3032function checkLoad ( audio ) {
31- console . log ( 'Check if audio ready' ) ;
3233 if ( audio . readyState > 3 ) {
33- console . log ( ' Audio ready to play' ) ;
34+ // Audio is ready to play
3435 ready = true ;
3536 document . getElementById ( 'overlay-button' ) . innerText = 'Play' ;
3637 document . body . classList . add ( 'ready' ) ;
@@ -81,7 +82,6 @@ function requestPlay() {
8182 audioElem . play ( ) ;
8283}
8384
84-
8585/* LYRICS */
8686var lyricsIndex = 0 ;
8787function initLyrics ( ) {
You can’t perform that action at this time.
0 commit comments