Use local bootstrap5 files

This commit is contained in:
Emmy D'Anello 2023-02-13 13:19:14 +01:00
parent 9fbf4fb172
commit 06f836e13f
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
2 changed files with 3 additions and 7 deletions

1
static/bootstrap5 Symbolic link
View File

@ -0,0 +1 @@
/usr/share/javascript/bootstrap5/

View File

@ -2,10 +2,7 @@
<html lang="fr">
<head>
<title>Calculateur TGVMax</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD"
crossorigin="anonymous">
<link href="/static/bootstrap5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<form id="form" action="#">
@ -39,9 +36,7 @@
<div id="result"></div>
</body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"></script>
<script src="/static/bootstrap5/js/bootstrap.bundle.min.js"></script>
<script>
fetch('/api/iata-codes/').then(res => res.json()).then(out => {