Startet på en pyscript side for ttime xml eksport
This commit is contained in:
55
web/index.html
Executable file
55
web/index.html
Executable file
@@ -0,0 +1,55 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user