mirror of
https://github.com/raviriley/STL-to-OpenSCAD-Converter.git
synced 2024-11-24 23:53:10 +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>
|
||||
<input type="file" id="upload" name="file" accept=".stl">
|
||||
<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 class="percent">0%</div>
|
||||
@ -28,6 +28,7 @@
|
||||
<a href="#" id="download" class="button" style="display: none">Download</a>
|
||||
</div>
|
||||
<footer>
|
||||
<!--https://github.com/raviriley/STL-to-OpenSCAD-Converter-->
|
||||
<p>view it on GitHub</p>
|
||||
</footer>
|
||||
<script src="js/main.js"></script>
|
||||
|
@ -201,7 +201,7 @@ function updateProgress(evt) {
|
||||
|
||||
|
||||
function handleFileSelect(evt) {
|
||||
document.getElementById("cancel").style.display = "";
|
||||
//document.getElementById("cancel").style.display = "";
|
||||
// Reset progress indicator on new file selection.
|
||||
progress.style.width = '0%';
|
||||
progress.textContent = '0%';
|
||||
|
Loading…
Reference in New Issue
Block a user