test route
This commit is contained in:
38
index.html
38
index.html
@@ -7,31 +7,29 @@
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
</head>
|
||||
|
||||
<body class="bg-neutral-50">
|
||||
<body class="bg-neutral-50">
|
||||
|
||||
<onzer></onzer>
|
||||
<onzer></onzer>
|
||||
<app></app>
|
||||
|
||||
<script src="https://unpkg.com/animore/animore.js"></script>
|
||||
<script src="https://unpkg.com/riot@9/riot+compiler.min.js"></script>
|
||||
<script src="https://unpkg.com/animore/animore.js"></script>
|
||||
<script src="https://unpkg.com/riot@9/riot+compiler.min.js"></script>
|
||||
|
||||
<script type="riot" src="./onzer.riot"></script>
|
||||
<script type="javascript" src="./onzer.riot"></script>
|
||||
<script type="riot" src="./onzer.riot"></script>
|
||||
<script type="riot" src="./app.riot"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
function fetch_data() {
|
||||
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/albums").then(response => {
|
||||
return response.json();
|
||||
<script type="text/javascript">
|
||||
function fetch_data() {
|
||||
return fetch("https://dwarves.iut-fbleau.fr/~fauvet/api/albums").then(response => {
|
||||
return response.json();
|
||||
})
|
||||
}
|
||||
|
||||
riot.compile().then(() => {
|
||||
riot.mount('app', { items: fetch_data() });
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
riot.compile().then(() => {
|
||||
riot.mount('onzer', { items: fetch_data() });
|
||||
})
|
||||
</script>
|
||||
|
||||
<script src="./navigation.riot" type="riot"></script>
|
||||
<script src="./playlist-form.riot" type="riot"></script>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue
Block a user