templates/sim.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
{% extends "base.html" %}
{% block outline %}
Controls <br>
. <br>
├── S: Add Source <br>
├── W: Add Reflective Wall <br>
├── F: Clear Cell <br>
└── ESC: Clear Selection <br>
{% endblock outline %}
{% block title %}
FDTD Simulation
{% endblock title %}
{% block content %}
<script type="module">
import init from '/FDTD.js'
init().catch((error) => {
if (!error.message.startsWith("Using exceptions for control flow, don't mind me. This isn't actually an error!")) {
throw error;
}
});
</script>
<canvas id="sim_canvas" width="800" height="400"></canvas>
{% endblock content %}
|