summaryrefslogtreecommitdiff
path: root/libs/music
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2024-07-25 01:38:55 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2024-07-25 01:38:55 -0400
commit2bdad73cd617bea54dc0e365d216c9f5b7689ec2 (patch)
treee00ea4728f7c59eb6c6560fea94725a42f795bf2 /libs/music
parent4b2d13ee672b14a68b2842e6a955209ea186d9d2 (diff)
downloadweb-2bdad73cd617bea54dc0e365d216c9f5b7689ec2.tar.xz
Also use DOMContentLoaded for the music player.
Diffstat (limited to 'libs/music')
-rw-r--r--libs/music/player2
-rw-r--r--libs/music/player.d/main_static.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/libs/music/player b/libs/music/player
index ae89d67..3ec6f29 100644
--- a/libs/music/player
+++ b/libs/music/player
@@ -92,7 +92,7 @@ New experimental online player with visualization.
2015.11.7 1.0.0
The online player was added.
-->
-<body onload="init();">
+<body>
<div id="overlay"><span style="text-align:center;" id="overlaytext" class="TText">LOADING...</span></div>
<div id="helpoverlay" class="TText">
<pre class="TText" style="padding:2em;overflow:auto scroll;white-space:pre-wrap;">
diff --git a/libs/music/player.d/main_static.js b/libs/music/player.d/main_static.js
index 4e7b8f5..cf2e610 100644
--- a/libs/music/player.d/main_static.js
+++ b/libs/music/player.d/main_static.js
@@ -832,3 +832,4 @@ function init()
NSUI.vissel.value=sh.getcookie('playervisualization');
requestAnimationFrame(NSVisualization.updateVisualization);
}
+document.addEventListener("DOMContentLoaded", init);