Made cancel button shown

This commit is contained in:
Ravi Riley 2020-06-15 23:11:05 -07:00
parent 974f6fb48b
commit c0cce06c33
2 changed files with 3 additions and 2 deletions

View File

@ -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>

View File

@ -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%';