57 lines
1.7 KiB
HTML
57 lines
1.7 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="./app.riot" type="riot"></script>
|
|
|
|
<script type="module">
|
|
import { fetchFormations, fetchFormationHistory } from './api.js'
|
|
import { createFormation } from './formation.js'
|
|
import {
|
|
auth,
|
|
db,
|
|
createAccount,
|
|
login,
|
|
logout,
|
|
onUserChanged,
|
|
saveUserData,
|
|
loadUserData
|
|
} from './firebase.js'
|
|
|
|
window.fetchFormations = fetchFormations
|
|
window.createFormation = createFormation
|
|
window.fetchFormationHistory = fetchFormationHistory
|
|
|
|
window.firebaseServices = {
|
|
auth,
|
|
db,
|
|
createAccount,
|
|
login,
|
|
logout,
|
|
onUserChanged,
|
|
saveUserData,
|
|
loadUserData
|
|
}
|
|
|
|
await riot.compile()
|
|
riot.mount('app')
|
|
</script>
|
|
</body>
|
|
</html> |