-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloadCarroyageWindow.html
62 lines (60 loc) · 2.06 KB
/
loadCarroyageWindow.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./assets/css/bootstrap.css">
<link rel="stylesheet" href="./assets/css/bootstrap-theme.css">
<script src="./assets/js/bootstrap.min.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./fouilles.js"></script>
<title>Chargement</title>
</head>
<body>
<div class="container">
<header class="page-header">
<div class="row">
<div class="col-sm-2">
<img src="./assets/img/arton218-21877.png" alt="Morimond" height=100px/>
</div>
<div class="col-sm-10 text-center">
<h1>Chargement carroyage</h1>
</div>
</div>
</header>
<div class="row" id="fileForm">
<form id="csvForm">
<input type="file" id="csvFile" accept="csv" />
<br>
<input type="submit" value="Charger" />
</form>
</div>
<div class="row" id="loading" hidden>
<div class="col-sm-4"></div>
<div class="col-sm-4">
<img src="./assets/img/loading.gif" alt="chargement" height=200px>
</div>
<div class="col-sm-4"></div>
</div>
</div>
<div class="footer">
<div class="row">
<div class="col-sm-10"></div>
<div class="col-sm-2">
<i class="stg-direc">© fifouSoft 2022</i>
</div>
</div>
</div>
</body>
<script>
const csvForm = document.getElementById("csvForm")
const csvFile = document.getElementById("csvFile")
csvForm.addEventListener("submit", function (e) {
e.preventDefault()
const filePath = csvFile.files[0].path
document.getElementById("fileForm").style.display = "none"
document.getElementById("loading").style.display = "block"
carroyageLoad(filePath)
})
</script>
</html>