16 lines
387 B
JavaScript
16 lines
387 B
JavaScript
import * as mpd from "./mpd.js";
|
|
import * as status from "./status.js";
|
|
import * as art from "./art.js";
|
|
|
|
async function init() {
|
|
await mpd.init();
|
|
status.init();
|
|
window.mpd = mpd;
|
|
art.get("NAS/ABBA/Greatest Hits/01 Dancing Queen.mp3").then(src => {
|
|
let image = document.createElement("img");
|
|
image.src = src;
|
|
document.querySelector("main").appendChild(image);
|
|
});
|
|
}
|
|
|
|
init();
|