Put content in a container

Signed-off-by: Emmy D'Anello <ynerant@emy.lu>
This commit is contained in:
Emmy D'Anello 2023-04-25 15:14:57 +02:00
parent 4332862419
commit ae859e0db4
1 changed files with 9 additions and 7 deletions

View File

@ -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
}