display basic tile of video
This commit is contained in:
		
							
								
								
									
										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">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <link rel="stylesheet" type="text/css" href="css/index.css">
 | 
			
		||||
    <script src="js/BaseRequest.js"></script>
 | 
			
		||||
    <script src="js/index.js"></script>
 | 
			
		||||
    <title>Home-Theater</title>
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,9 @@
 | 
			
		||||
Req.ready((event) => {
 | 
			
		||||
    Req.post("/data/movie","action=getMovies",function (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>`);
 | 
			
		||||
        }
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
		Reference in New Issue
	
	Block a user