16 lines
331 B
JavaScript
16 lines
331 B
JavaScript
const api = new API(API_URL);
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
async function init() {
|
|
let library = await api.getLibrary("series");
|
|
|
|
for (let group in library.videos) {
|
|
root.appendChild(components.series(group, library.videos[group]));
|
|
}
|
|
|
|
document.getElementById("loading").style.display = 'none';
|
|
}
|
|
|
|
init();
|