我想在我的网站上的页面加载上加载自定义 .wsz 皮肤。我仍然不明白如何使它工作。这是我的代码片段: https ://codepen.io/cat999/pen/rNOOjJP
这里是我的 js
const webamp = new Webamp({
initialTracks: [{
metaData: {
artist: "DJ Mike Llama",
title: "Llama Whippin' Intro",
},
url: "https://cdn.rawgit.com/captbaritone/webamp/43434d82/mp3/llama-2.91.mp3",
duration: 5.322286,
}],
})
webamp.onMinimize(() => {
const webampEl = document.getElementById('webamp')
webampEl.style.display = 'none'
})
webamp.renderWhenReady(document.getElementById('app')).then(() => {
document.getElementById('close').addEventListener('click', (e) => {
e.stopPropagation()
const webampEl = document.getElementById('webamp')
webampEl.style.display = 'none'
})
document.getElementById('open').addEventListener('click', () => {
const webampEl = document.getElementById('webamp')
webampEl.style.display = 'block'
})
})
在我希望在页面加载时看到的皮肤下方
https://srv-file6.gofile.io/download/KwUySB/Aphex_Twin__-_Windowlicker.wsz
我应该如何改进我的 js 代码以使其工作?