Generation_UDS_RSA/UDS.html

59 lines
2.0 KiB
HTML

<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Générer UDS/RSA</title>
<style>
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; padding: 20px; max-width: 900px; margin: auto; }
input, select, button, textarea { font-size: 14px; padding: 8px; margin: 6px 0; width: 100%; box-sizing: border-box; }
label { font-weight: 600; margin-top: 12px; display:block; }
.row { display:flex; gap:12px; }
.col { flex:1; }
pre { background:#f6f6f6; padding:12px; overflow:auto; }
.downloads a { display:block; margin:6px 0; }
.status { color: #444; margin:8px 0; }
</style>
</head>
<body>
<h1>Générer UDS/RSA</h1>
<p>Télécharge le <strong>template Excel</strong> (UDS.xlsx or RSA.xlsx) et le <strong>fichier texte</strong> (.txt). Entrer le nom du releveur et la hauteur de l'appareil de mesure.</p>
<label>Type de document</label>
<select id="typedoc">
<option value="uds">uds</option>
<option value="rsa">rsa</option>
</select>
<div class="row">
<div class="col">
<label>Template Excel (ex: UDS.xlsx or RSA.xlsx)</label>
<input type="file" id="template_excel" accept=".xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
</div>
<div class="col">
<label>Fichier texte (input)</label>
<input type="file" id="txt_input" accept=".txt,text/plain" />
</div>
</div>
<label>Nom du releveur</label>
<input id="nom_releveur" placeholder="Antoine / Nom" />
<label>Hauteur Bosch (ex: 1.5)</label>
<input id="hauteur_bosch" placeholder="1.5" />
<button id="runBtn">Run & Generate Excel files</button>
<div class="status" id="status">Pyodide non chargé.</div>
<h3>Downloads</h3>
<div class="downloads" id="downloads"></div>
<h3>Log / Output</h3>
<pre id="log"></pre>
<script src="uds.js"></script>