HomeMediacenter/js/index.js

22 lines
803 B
JavaScript
Raw Normal View History

Req.ready(() => {
2020-04-04 17:44:31 +00:00
// Req.post("php/index.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/index.php", "action=storePic", function (dta) {
// console.log(dta);
// });
2020-04-01 19:53:36 +00:00
2020-04-04 17:44:31 +00:00
console.log("startup")
Req.postData("php/index.php", "action=readPic", function (dta) {
document.getElementById("tempici").src = dta;
2020-04-01 19:53:36 +00:00
});
2020-04-04 17:44:31 +00:00
// Req.post("php/index.php", "action=getDbSize", function (dta) {
// console.log(dta);
// });
2020-03-31 09:44:52 +00:00
});