12abef4076
Write a basic web app with a Rust engine, compiled to WebAssembly, powering a Civet interface. Do linear algebra in the engine using the `nalgebra` crate.
22 lines
688 B
HTML
22 lines
688 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Lattice circle</title>
|
|
<script type="module" src="app.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="app.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>
|
|
</html>
|