Put content in a container
Signed-off-by: Emmy D'Anello <ynerant@emy.lu>
This commit is contained in:
parent
4332862419
commit
ae859e0db4
|
@ -5,6 +5,7 @@
|
|||
<link href="/static/bootstrap5/css/bootstrap.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<main class="container">
|
||||
<form id="form" action="#">
|
||||
<datalist id="iataCodes">
|
||||
<option value="Chargement…">
|
||||
|
@ -34,6 +35,7 @@
|
|||
</div>
|
||||
</form>
|
||||
<div id="result"></div>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
<script src="/static/bootstrap5/js/bootstrap.bundle.min.js"></script>
|
||||
|
@ -133,7 +135,7 @@
|
|||
|
||||
let text = route[0].origin
|
||||
for (let train of route) {
|
||||
text += " (" + train.departure + ") --> (" + train.arrival + ") " + train.destination + ", "
|
||||
text += " (" + train.departure + ") --> (" + train.arrival + ") " + train.destination + " "
|
||||
}
|
||||
route_elem.textContent = text
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue