HomeMediacenter/js/index.js
lukas-heiligenbrunner c3f87841d7 added php
2020-03-31 19:22:08 +02:00

9 lines
398 B
JavaScript

Req.ready((event) => {
Req.post("php/movie.php", "action=getMovies&test=2", function (dta) {
console.log(dta);
for (const ii in dta.data) {
document.getElementsByClassName("mediawrapper").item(0).insertAdjacentHTML('beforeend', `
<div class="mediatile">${dta.data[ii].url}</div> <video controls src="${dta.data[ii].url}"></video>`);
}
});
});