Rust trial: port interface to Sycamore
Now we have a reactive web app written entirely in Rust. The Trunk build tool compiles it to WebAssembly and generates a little JavaScript glue.
This commit is contained in:
parent
12abef4076
commit
42bdfabd91
10 changed files with 178 additions and 220 deletions
|
@ -2,20 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Lattice circle</title>
|
||||
<script type="module" src="app.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="app.css"/>
|
||||
<link data-trunk rel="css" href="main.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="display" width=600, height=600></canvas>
|
||||
<div id="data-panel">
|
||||
<div>x</div>
|
||||
<div>y</div>
|
||||
<input type="number" id="data-input-0" value="-1"/>
|
||||
<input type="number" id="data-input-1" value="0"/>
|
||||
<input type="number" id="data-input-2" value="0"/>
|
||||
<input type="number" id="data-input-3" value="-1"/>
|
||||
<input type="number" id="data-input-4" value="1"/>
|
||||
<input type="number" id="data-input-5" value="0"/>
|
||||
</div>
|
||||
</body>
|
||||
<body></body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue