size projections in web interface

Co-authored-by: Alex <AlexanderMcDowell@users.noreply.github.com>
This commit is contained in:
2022-10-28 20:11:50 -07:00
parent 405b9f7f91
commit 97ab6a1ed1
11 changed files with 265 additions and 8 deletions

View File

@@ -1,6 +1,30 @@
{% extends "base.html" %}
{% block content %}
<h2>Results</h2>
<a href="/projected_area">Process another image</a>
<div style="display: flex; align-items: start;">
<img class="image-out-pa" src="data:image/png;base64,{{ img_b64 }}" alt="original image">
<div style="overflow-y: scroll;">
<table style="background: #f1f1f1">
<tr>
<th class="legend-heading">Index</th>
<th class="legend-heading">Area</th>
<th class="legend-heading">Copy</th>
</tr>
{% for item in dtable %}
<tr>
<td class="legend-cell">{{ item.0 }}</td>
<td class="legend-cell">{{ item.1 }} mm²</td>
<td>
<button onclick="() => navigator.clipboard.writeText('{{ item.1 }}')">Copy</button>
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}