46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
|
|
<body>
|
|
<b>Listen directly to the stream <a href="https://radio.runyan.org/stream.mp3">here</a>.</b>
|
|
<br>
|
|
<div id="app" style="height: 100vh"></div>
|
|
<script src="https://unpkg.com/webamp@1.5.0/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://radio.runyan.org/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>
|