2020-04-28 13:00:09 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<!-- based on http://jsfiddle.net/roha/353r2k8w/ -->
|
|
|
|
<head>
|
|
|
|
<title>STL to OpenSCAD Converter</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
|
|
<script src="jquery-1.12.4.js"></script>
|
|
|
|
<script src="binaryReader.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<p>
|
|
|
|
Convert STL files to open SCAD, read more about it here:
|
|
|
|
<a href='https://www.thingiverse.com/thing:1383325' target=_new>Thingiverse: STL to OpenSCAD converter</a>
|
|
|
|
</p>
|
|
|
|
<div><span id="error"></span></div>
|
2020-04-28 13:10:46 +02:00
|
|
|
<div><input type="file" id="files" name="file" accept=".stl"/></div>
|
2020-04-28 13:00:09 +02:00
|
|
|
<button onclick="abortRead();">Cancel read</button>
|
|
|
|
<div id="progress_bar">
|
|
|
|
<div class="percent">0%</div>
|
|
|
|
</div>
|
|
|
|
<span id="conversion"></span>
|
|
|
|
<span id="result"></span>
|
|
|
|
<div>
|
|
|
|
<button>
|
|
|
|
<a href="#">Download</a>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<script src="main.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|