38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Integral Demonstration</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<noscript>Please enable Javascript, this page uses both WebAssembly and Javascript to run.</noscript>
|
|
<script src="./bootstrap.js"></script>
|
|
<main>
|
|
<h1>Integral Demonstration</h1>
|
|
<div id="coord"></div>
|
|
<canvas id="canvas" width="600" height="400"></canvas>
|
|
<div id="status">Loading WebAssembly...</div>
|
|
<div id="control">
|
|
<label for="math_function">y=</label> <input type="string" id="math_function" value="x^2">
|
|
<p></p>
|
|
<label for="minX">MinX: </label> <input type="number" id="minX" value="-10">
|
|
<p></p>
|
|
<label for="maxX">MaxX: </label> <input type="number" id="maxX" value="10">
|
|
<p></p>
|
|
<label for="minY">MinY: </label> <input type="number" id="minY" value="-10">
|
|
<p></p>
|
|
<label for="maxY">MaxY: </label> <input type="number" id="maxY" value="10">
|
|
<p></p>
|
|
<label for="num_interval">Interval: </label> <input type="number" id="num_interval" value="100" min="0">
|
|
<p></p>
|
|
<label for="resolution">Number of Points </label> <input type="number" id="resolution" value="10000" min="0">
|
|
<p></p>
|
|
</div>
|
|
<div id="area-msg">Area:</div>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
|
|
<p><a href="https://github.com/rekka/meval-rs#supported-expressions">Supported Expressions</a></p> |