initial webui work

This commit is contained in:
Robin Appelman 2025-10-06 21:34:56 +02:00
commit 71cf4dbcb2
4 changed files with 248 additions and 4 deletions

34
web/index.html Normal file
View file

@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<link rel="icon" href="data:;base64,=">
<link rel="stylesheet" href="style.css">
<title>PTouch</title>
</head>
<body>
<table id="elements">
<thead>
</thead>
<tbody>
</tbody>
<tfoot>
<td>
<input type="button" value="Add" id="add"/>
</td>
</tfoot>
</table>
<p>
<label for="canvas-width">Width</label>
<input type="number" min="0" id="canvas-width" value="300">
<select id="canvas-width-unit">
<option value="px" selected>px</option>
<option value="mm">mm</option>
</select>
</p>
<canvas id="preview" height="32" width="300"></canvas>
<script src="label.js"></script>
</body>
</html>