initial commit
This commit is contained in:
parent
a7b1a9def3
commit
a69e0e27b7
45
index.html
Normal file
45
index.html
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<b>Listen directly to the stream <a href="https://nanachi.neet.dev/stream.mp3">here</a>.</b>
|
||||||
|
<br>
|
||||||
|
<div id="app" style="height: 100vh"></div>
|
||||||
|
<script src="https://unpkg.com/webamp@1.4.2/built/webamp.bundle.min.js"></script>
|
||||||
|
<script src="https://unpkg.com/butterchurn@2.6.7/lib/butterchurn.min.js"></script>
|
||||||
|
<script src="https://unpkg.com/butterchurn-presets@2.4.7/lib/butterchurnPresets.min.js"></script>
|
||||||
|
<script>
|
||||||
|
const Webamp = window.Webamp;
|
||||||
|
new Webamp({
|
||||||
|
initialTracks: [{
|
||||||
|
url: "https://nanachi.neet.dev/stream.mp3",
|
||||||
|
duration: 0.0
|
||||||
|
}],
|
||||||
|
__butterchurnOptions: {
|
||||||
|
importButterchurn: () => Promise.resolve(window.butterchurn),
|
||||||
|
getPresets: () => {
|
||||||
|
const presets = window.butterchurnPresets.getPresets();
|
||||||
|
return Object.keys(presets).map((name) => {
|
||||||
|
return {
|
||||||
|
name,
|
||||||
|
butterchurnPresetObject: presets[name]
|
||||||
|
};
|
||||||
|
});
|
||||||
|
},
|
||||||
|
butterchurnOpen: true
|
||||||
|
},
|
||||||
|
__initialWindowLayout: {
|
||||||
|
main: { position: { x: 0, y: 0 } },
|
||||||
|
equalizer: { position: { x: 0, y: 116 } },
|
||||||
|
playlist: { position: { x: 0, y: 232 }, size: [0, 4] },
|
||||||
|
milkdrop: { position: { x: 275, y: 0 }, size: [7, 12] }
|
||||||
|
}
|
||||||
|
}).renderWhenReady(document.getElementById('app'));
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user