59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Parcoursup Explorer</title>
|
|
|
|
<link rel="stylesheet" href="./style.css" />
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/charts.css/dist/charts.min.css" />
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/riot@9/riot+compiler.min.js"></script>
|
|
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
|
</head>
|
|
<body>
|
|
<app></app>
|
|
|
|
<script src="./components/search-bar.riot" type="riot"></script>
|
|
<script src="./components/result-list.riot" type="riot"></script>
|
|
<script src="./components/detail-view.riot" type="riot"></script>
|
|
<script src="./components/map-view.riot" type="riot"></script>
|
|
<script src="./components/auth-panel.riot" type="riot"></script>
|
|
<script src="./components/comparateur.riot" type="riot"></script>
|
|
<script src="./app.riot" type="riot"></script>
|
|
|
|
<script type="module">
|
|
import { chargerFormations, chargerHistoriqueFormation } from './api.js'
|
|
import { creerFormation } from './formation.js'
|
|
import {
|
|
auth,
|
|
db,
|
|
createAccount,
|
|
login,
|
|
logout,
|
|
onUserChanged,
|
|
saveUserData,
|
|
loadUserData
|
|
} from './firebase.js'
|
|
|
|
window.chargerFormations = chargerFormations
|
|
window.creerFormation = creerFormation
|
|
window.chargerHistoriqueFormation = chargerHistoriqueFormation
|
|
|
|
window.firebaseServices = {
|
|
auth,
|
|
db,
|
|
createAccount,
|
|
login,
|
|
logout,
|
|
onUserChanged,
|
|
saveUserData,
|
|
loadUserData
|
|
}
|
|
|
|
await riot.compile()
|
|
riot.mount('app')
|
|
</script>
|
|
</body>
|
|
</html> |