add stuff
This commit is contained in:
parent
f48e257462
commit
8cf39d9bc7
9 changed files with 155 additions and 77 deletions
57
index.js
Normal file
57
index.js
Normal file
|
@ -0,0 +1,57 @@
|
|||
const Webamp = window.Webamp;
|
||||
const webamp = new Webamp({
|
||||
initialTracks: [
|
||||
{
|
||||
url: "https://cdn.jsdelivr.net/gh/captbaritone/webamp@43434d82cfe0e37286dbbe0666072dc3190a83bc/mp3/llama-2.91.mp3",
|
||||
},
|
||||
{
|
||||
url: "https://raw.githubusercontent.com/captbaritone/webamp-music/4b556fbf/Diablo_Swing_Orchestra_-_01_-_Heroines.mp3",
|
||||
},
|
||||
{
|
||||
url: "https://raw.githubusercontent.com/captbaritone/webamp-music/4b556fbf/Eclectek_-_02_-_We_Are_Going_To_Eclecfunk_Your_Ass.mp3",
|
||||
},
|
||||
],
|
||||
initialSkin: {
|
||||
url: "./skins/PurpleGlow.wsz",
|
||||
},
|
||||
availableSkins: [
|
||||
{
|
||||
url: "./skins/Axon.wsz",
|
||||
name: "Axon",
|
||||
},
|
||||
{
|
||||
url: "./skins/m-lo_black.wsz",
|
||||
name: "Black",
|
||||
},
|
||||
{
|
||||
url: "./skins/PurpleGlow.wsz",
|
||||
name: "Purple Glow",
|
||||
},
|
||||
{
|
||||
url: "./skins/purpleplayer.wsz",
|
||||
name: "Purple",
|
||||
},
|
||||
{
|
||||
url: "./skins/TSWNN.wsz",
|
||||
name: "TSWNN",
|
||||
},
|
||||
{
|
||||
url: "./skins/Vaporwave.wsz",
|
||||
name: "Vaporwave",
|
||||
},
|
||||
],
|
||||
__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,
|
||||
},
|
||||
});
|
||||
webamp.renderWhenReady(document.getElementById("app"));
|
Loading…
Add table
Add a link
Reference in a new issue