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">
|
<link href="/static/bootstrap5/css/bootstrap.min.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<main class="container">
|
||||||
<form id="form" action="#">
|
<form id="form" action="#">
|
||||||
<datalist id="iataCodes">
|
<datalist id="iataCodes">
|
||||||
<option value="Chargement…">
|
<option value="Chargement…">
|
||||||
|
@ -34,6 +35,7 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div id="result"></div>
|
<div id="result"></div>
|
||||||
|
</main>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script src="/static/bootstrap5/js/bootstrap.bundle.min.js"></script>
|
<script src="/static/bootstrap5/js/bootstrap.bundle.min.js"></script>
|
||||||
|
@ -133,7 +135,7 @@
|
||||||
|
|
||||||
let text = route[0].origin
|
let text = route[0].origin
|
||||||
for (let train of route) {
|
for (let train of route) {
|
||||||
text += " (" + train.departure + ") --> (" + train.arrival + ") " + train.destination + ", "
|
text += " (" + train.departure + ") --> (" + train.arrival + ") " + train.destination + " "
|
||||||
}
|
}
|
||||||
route_elem.textContent = text
|
route_elem.textContent = text
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue