display basic tile of video
This commit is contained in:
parent
2c1777c21c
commit
c6670a34b6
8
src/resources/wwwroot/css/index.css
Normal file
8
src/resources/wwwroot/css/index.css
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
.mediatile{
|
||||||
|
background-color: aqua;
|
||||||
|
height: 40mm;
|
||||||
|
width: 40mm;
|
||||||
|
margin: 3mm;
|
||||||
|
float: left;
|
||||||
|
font-size: 10pt;
|
||||||
|
}
|
@ -2,6 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
<link rel="stylesheet" type="text/css" href="css/index.css">
|
||||||
<script src="js/BaseRequest.js"></script>
|
<script src="js/BaseRequest.js"></script>
|
||||||
<script src="js/index.js"></script>
|
<script src="js/index.js"></script>
|
||||||
<title>Home-Theater</title>
|
<title>Home-Theater</title>
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
Req.ready((event) => {
|
Req.ready((event) => {
|
||||||
Req.post("/data/movie","action=getMovies",function (dta) {
|
Req.post("/data/movie","action=getMovies",function (dta) {
|
||||||
console.log(dta);
|
console.log(dta);
|
||||||
|
for (const ii in dta.movies) {
|
||||||
|
document.getElementsByClassName("mediawrapper").item(0).insertAdjacentHTML('beforeend', `
|
||||||
|
<div class="mediatile">${dta.movies[ii].title}</div>`);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user