Update arrangement of post-conversion information

This commit is contained in:
Ravi Riley 2023-03-31 02:19:28 -07:00
parent e6e38eb533
commit c193840727
2 changed files with 3 additions and 2 deletions

View File

@ -45,11 +45,11 @@
<input type="file" id="upload" name="file" accept=".stl">
<label for="upload" class="button">Choose File</label>
<button id="cancel" class="button" onclick="abortRead();">Cancel</button>
<div id="progress_bar">
<div class="percent">0%</div>
</div>
<p id="conversion"></p>
<p id="triangles"></p>
<p id="bounds"></p>
<span id="result"></span>

View File

@ -245,8 +245,9 @@ function saveResult(vertices, triangles, boundsMin, boundsMax) {
$("#download").attr("href", window.URL.createObjectURL(blob));
$("#download").attr("download", "FromSTL.scad");
document.getElementById("conversion").innerText = "Conversion complete. Click the button below to download your OpenSCAD file!";
document.getElementById("triangles").innerText = "Total Triangles: " + triangles.length;
document.getElementById("bounds").innerText = "Bounds: " + boundsMin + ", " + boundsMax;
document.getElementById("conversion").innerText = "Conversion complete - Click the button below to download your OpenSCAD file! Total Triangles: " + triangles.length;
document.getElementById("download").style.display = "";
}