mirror of
https://github.com/raviriley/STL-to-OpenSCAD-Converter.git
synced 2024-11-24 15:43:19 +01:00
Update arrangement of post-conversion information
This commit is contained in:
parent
e6e38eb533
commit
c193840727
@ -45,11 +45,11 @@
|
|||||||
<input type="file" id="upload" name="file" accept=".stl">
|
<input type="file" id="upload" name="file" accept=".stl">
|
||||||
<label for="upload" class="button">Choose File</label>
|
<label for="upload" class="button">Choose File</label>
|
||||||
<button id="cancel" class="button" onclick="abortRead();">Cancel</button>
|
<button id="cancel" class="button" onclick="abortRead();">Cancel</button>
|
||||||
|
|
||||||
<div id="progress_bar">
|
<div id="progress_bar">
|
||||||
<div class="percent">0%</div>
|
<div class="percent">0%</div>
|
||||||
</div>
|
</div>
|
||||||
<p id="conversion"></p>
|
<p id="conversion"></p>
|
||||||
|
<p id="triangles"></p>
|
||||||
<p id="bounds"></p>
|
<p id="bounds"></p>
|
||||||
<span id="result"></span>
|
<span id="result"></span>
|
||||||
|
|
||||||
|
@ -245,8 +245,9 @@ function saveResult(vertices, triangles, boundsMin, boundsMax) {
|
|||||||
$("#download").attr("href", window.URL.createObjectURL(blob));
|
$("#download").attr("href", window.URL.createObjectURL(blob));
|
||||||
$("#download").attr("download", "FromSTL.scad");
|
$("#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("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 = "";
|
document.getElementById("download").style.display = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user