otime-testing/web/index.html

56 lines
1.6 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>File System Examples</title>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-env>
- paths:
- ./otime.py
- ./ps_ttime.py
</py-env>
</head>
<label for="tt-cnf">tTime konfigurasjons-fil:</label>
<input type="file" id="tt-cnf" name="tt-cnf">
<div style="border:2px inset #AAA;cursor:text;height:50px;overflow:auto;width:600px; resize:both">
<div id="tt-cnf-cnt">
</div>
</div>
<br>
<label for="tt-db">tTime database:</label>
<input type="file" id="tt-db" name="tt-db">
<div style="border:2px inset #AAA;cursor:text;height:50px;overflow:auto;width:600px; resize:both">
<div id="tt-db-cnt">
</div>
</div>
<br>
<label for="mtr">MTR logfil:</label>
<input type="file" id="mtr" name="mtr">
<div style="border:2px inset #AAA;cursor:text;height:50px;overflow:auto;width:600px; resize:both">
<div id="mtr-cnt">
</div>
</div>
<button type="button" id="xml-btn">Lag xml resultater!</button>
<p>File Content:</p>
<div style="border:2px inset #AAA;cursor:text;height:50px;overflow:auto;width:600px; resize:both">
<div id="xml-cnt">
</div>
</div>
<py-script>
from ps_ttime import main
main()
</py-script>
</body>
</html>