passage du prototype en composant riot simple
This commit is contained in:
+14
-9
@@ -3,18 +3,23 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Parcoursup - test API</title>
|
||||
<title>Parcoursup Riot</title>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/riot@9/riot+compiler.min.js"></script>
|
||||
<script type="module">
|
||||
import "./api.js"
|
||||
import "./formation.js"
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mini projet Parcoursup</h1>
|
||||
<p>Recherche de formations Parcoursup</p>
|
||||
<app></app>
|
||||
|
||||
<input id="search" type="text" placeholder="Ex : BUT informatique" />
|
||||
<button id="btn-test">Rechercher</button>
|
||||
<script src="./app.riot" type="riot"></script>
|
||||
|
||||
<div id="output">En attente...</div>
|
||||
|
||||
|
||||
<script type="module" src="./main.js"></script>
|
||||
<script>
|
||||
riot.compile().then(() => {
|
||||
riot.mount('app')
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user