2019-03-20 03:45:23 +08:00
|
|
|
import * as mpd from "./mpd.js";
|
|
|
|
import * as status from "./status.js";
|
2019-03-20 05:56:39 +08:00
|
|
|
import * as art from "./art.js";
|
2019-03-20 03:45:23 +08:00
|
|
|
|
|
|
|
async function init() {
|
|
|
|
await mpd.init();
|
|
|
|
status.init();
|
|
|
|
window.mpd = mpd;
|
2019-03-20 05:56:39 +08:00
|
|
|
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);
|
|
|
|
});
|
2019-03-20 03:45:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
init();
|