Skip to content

Commit e38fbaf

Browse files
author
Chris Hayes
committed
💡 Minor adjustments
1 parent ae0fb1b commit e38fbaf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 ); }
44
body {

main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3032
function 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 */
8686
var lyricsIndex = 0;
8787
function initLyrics() {

0 commit comments

Comments
 (0)