15 lines
290 B
JavaScript
15 lines
290 B
JavaScript
const api = new API(API_URL);
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
async function init() {
|
|
let query = new URLSearchParams(document.location.search);
|
|
|
|
let video = await api.getVideo(query.get("id"));
|
|
root.appendChild(components.player(video));
|
|
|
|
finishedLoading();
|
|
}
|
|
|
|
init();
|