mirror of
https://github.com/raviriley/STL-to-OpenSCAD-Converter.git
synced 2024-11-21 22:23:11 +01:00
Made cancel button shown
This commit is contained in:
parent
974f6fb48b
commit
c0cce06c33
@ -16,7 +16,7 @@
|
|||||||
<div><span id="error"></span></div>
|
<div><span id="error"></span></div>
|
||||||
<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();" style="display:none">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>
|
||||||
@ -28,6 +28,7 @@
|
|||||||
<a href="#" id="download" class="button" style="display: none">Download</a>
|
<a href="#" id="download" class="button" style="display: none">Download</a>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
<!--https://github.com/raviriley/STL-to-OpenSCAD-Converter-->
|
||||||
<p>view it on GitHub</p>
|
<p>view it on GitHub</p>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="js/main.js"></script>
|
<script src="js/main.js"></script>
|
||||||
|
@ -201,7 +201,7 @@ function updateProgress(evt) {
|
|||||||
|
|
||||||
|
|
||||||
function handleFileSelect(evt) {
|
function handleFileSelect(evt) {
|
||||||
document.getElementById("cancel").style.display = "";
|
//document.getElementById("cancel").style.display = "";
|
||||||
// Reset progress indicator on new file selection.
|
// Reset progress indicator on new file selection.
|
||||||
progress.style.width = '0%';
|
progress.style.width = '0%';
|
||||||
progress.textContent = '0%';
|
progress.textContent = '0%';
|
||||||
|
Loading…
Reference in New Issue
Block a user