diff options
author | Chris Xiong <chirs241097@gmail.com> | 2024-07-25 01:38:55 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2024-07-25 01:38:55 -0400 |
commit | 2bdad73cd617bea54dc0e365d216c9f5b7689ec2 (patch) | |
tree | e00ea4728f7c59eb6c6560fea94725a42f795bf2 /libs/music | |
parent | 4b2d13ee672b14a68b2842e6a955209ea186d9d2 (diff) | |
download | web-2bdad73cd617bea54dc0e365d216c9f5b7689ec2.tar.xz |
Also use DOMContentLoaded for the music player.
Diffstat (limited to 'libs/music')
-rw-r--r-- | libs/music/player | 2 | ||||
-rw-r--r-- | libs/music/player.d/main_static.js | 1 |
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); |