ça fonctionne bien maintenant
This commit is contained in:
39
movie-page.html
Normal file
39
movie-page.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!doctype html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Cinéma HAMMERSCHMIDT</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<script src="movie-page.riot" type="riot"></script>
|
||||
<link rel="stylesheet" href="movie.css">
|
||||
<script src="movie.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/riot@6.1.2/riot+compiler.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
||||
|
||||
<script>
|
||||
(async () => {
|
||||
await riot.compile()
|
||||
movieUtils = getMovieUtils()
|
||||
|
||||
riot.install(function(component){
|
||||
component.movieUtils = movieUtils
|
||||
})
|
||||
|
||||
let url = new URLSearchParams(window.location.search);
|
||||
let movie_id = url.get('id')
|
||||
|
||||
let movie = await movieUtils.getMovieById(movie_id)
|
||||
//let credits = await movieUtils.getMovieCredits(movie_id)
|
||||
|
||||
riot.mount('movie-page', {movie})
|
||||
|
||||
})()
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<movie-page></movie-page>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user