Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottN13 committed Jul 30, 2024
1 parent 5bc3df0 commit b8393ee
Showing 1 changed file with 38 additions and 39 deletions.
77 changes: 38 additions & 39 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,51 +92,50 @@ <h6 class="really-small-text-because-of-daisy-ui">i also speak german.</h6>
<div id="app" style="position: absolute; bottom: 70; right: 150;"></div>
<script src="https://unpkg.com/webamp"></script>
<script>
const app = document.getElementById("app")
const webamp = new Webamp({
initialTracks: [{
metaData: {
artist: "j^p^n",
title: "Bloom",
},
url: "assets/audio/j^p^n - Bloom.mp3",
const app = document.getElementById("app")
const webamp = new Webamp({
initialTracks: [{
metaData: {
artist: "j^p^n",
title: "Bloom",
},
{
metaData: {
artist: "Jake Chudnow",
title: "Moon Men (Instrumental)",
},
url: "assets/audio/Jake Chudnow - Moon Men (Instrumental).mp3"
url: "assets/audio/j^p^n - Bloom.mp3",
},
{
metaData: {
artist: "Jake Chudnow",
title: "Moon Men (Instrumental)",
},
url: "assets/audio/Jake Chudnow - Moon Men (Instrumental).mp3"
},
],

windowLayout: {
main: {
position: { top: 0, left: 0 },
shadeMode: false,
closed: false,
},
equalizer: {
position: { top: 0, left: 0 },
shadeMode: false,
closed: true,
},
playlist: {
position: { top: 0, left: 0 },
shadeMode: true,
// size: { extraHeight: 3, extraWidth: 7 },
closed: false,
},
windowLayout: {
main: {
position: { top: 0, left: 0 },
shadeMode: false,
closed: false,
},
equalizer: {
position: { top: 0, left: 0 },
shadeMode: false,
closed: true,
},
playlist: {
position: { top: 0, left: 0 },
shadeMode: true,
// size: { extraHeight: 3, extraWidth: 7 },
closed: false,
},
},
enableDoubleSizeMode: false,
});
webamp.renderWhenReady(app);
// Check if Winamp is supported in this browser
if(!Webamp.browserIsSupported()) {
alert("Oh no! Webamp does not work!")
throw new Error("What's the point of anything?")
});
webamp.renderWhenReady(app);
// Check if Winamp is supported in this browser
if(!Webamp.browserIsSupported()) {
alert("Oh no! Webamp does not work!")
throw new Error("oopsie webamp no work")
}

webamp.play();
</script>

<footer class="footer absolute bottom-0 p-4 bg-base-100 text-base-content text-xs bg-opacity-1 margin-auto">
Expand Down

0 comments on commit b8393ee

Please sign in to comment.