21 lines
704 B
JavaScript
21 lines
704 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>
|
|
}
|
|
});
|
|
|
|
Req.post("php/movie.php", "action=storePic", function (dta) {
|
|
console.log(dta);
|
|
});
|
|
|
|
Req.post("php/movie.php", "action=readPic", function (dta) {
|
|
console.log(dta);
|
|
});
|
|
|
|
Req.post("php/movie.php", "action=getDbSize", function (dta) {
|
|
console.log(dta);
|
|
});
|
|
}); |