This commit is contained in:
Maximilian Wagner
2024-01-30 20:04:56 +01:00
parent 64318902b4
commit 2c6c21b761
22 changed files with 1620 additions and 93 deletions

15
html/docs.html Normal file
View File

@@ -0,0 +1,15 @@
<body>
<form action="/">
<button type="submit">Go back</button>
</form> <br>
<h1>Documentation</h1>
<h2>Turing Machine</h2>
<p> Currently deterministic, single-band TMs are supported.
They can be passed with ..... </p> <br>
<h2>Input Band</h2>
<p> Input bands can be ..... </p>
</body>

5
html/head.html Normal file
View File

@@ -0,0 +1,5 @@
<head>
<title>{page_title}</title>
</head>

25
html/home.html Normal file
View File

@@ -0,0 +1,25 @@
<body>
<h1>TM-SIM Setup</h1>
<h2>Pass TM definition to selected slave </h2>
<form action="/definition">
{select_slave}
<label for="tm">Definition</label>
<input type="text" name="tm" value="">
<button type="submit">Send</button>
</form> <br>
<h2>Pass input band to selected slave</h2>
<p>The selected slave will be assumed first in line</p>
<form action="/input">
{select_slave}
<label for="band">Definition</label>
<input type="text" name="band" value="">
<button type="submit">Send</button>
</form> <br>
<form action="/run">
<button type="submit">Go to Controller</button>
</form>
</body>

12
html/result.html Normal file
View File

@@ -0,0 +1,12 @@
<body>
<h1>TM-Sim Results</h1>
<table>
<tr>
<th>Slave Number</th>
<th>Result</th>
</tr>
{results}
</table> <br>
<h2>Final Result</h2>
{result_final}
</body>

44
html/run.html Normal file
View File

@@ -0,0 +1,44 @@
<body>
<h1>TM-Sim Controller</h1>
<h2>Status</h2>
{slave_selected} <br>
{band_current} <br>
{rule_used} <br>
<br>
<h2>Command Selected Slave</h2>
<form action="/run_step">
<button type="submit">Step</button>
</form>
<form action="/run_all">
<button type="submit">Run</button>
</form>
<form action="/reset">
<button type="submit">Reset</button>
</form>
<br>
<h2>Select Slave</h2>
<form action="/run">
{select_slave}
<button type="submit">Select</button>
</form> <br>
<br>
<h2>Pass Band</h2>
<form action="/pass">
<label for="select_slave">Slave from</label> <br>
{select_slave}
<label for="to_slave">Slave to</label> <br>
{to_slave}
<button type="submit">Pass</button>
</form> <br>
<form action="/">
<button type="submit">Go to Setup</button>
</form>
</body>