mirror of
https://github.com/raviriley/STL-to-OpenSCAD-Converter.git
synced 2024-11-21 22:23:11 +01:00
53 lines
2.1 KiB
HTML
53 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- based on http://jsfiddle.net/roha/353r2k8w/ -->
|
|
<head>
|
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-58161369-2"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
|
|
gtag('config', 'UA-58161369-2');
|
|
</script>
|
|
<!-- End Google Analytics -->
|
|
<title>STL to OpenSCAD Converter</title>
|
|
<link rel="stylesheet" type="text/css" href="style.css">
|
|
<script src="js/jquery-1.12.4.js"></script>
|
|
<script src="js/binaryReader.js"></script>
|
|
</head>
|
|
<body>
|
|
<h1>STL to OpenSCAD File Converter</h1>
|
|
<p>This tool allows you to convert .STLs to .SCADs with ease. See it on GitHub at the banner below or read more about it here: <a href="https://www.thingiverse.com/thing:4461877">Thingiverse: STL to OpenSCAD Converter</a>
|
|
</p>
|
|
|
|
<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();">Cancel</button>
|
|
|
|
<div id="progress_bar">
|
|
<div class="percent">0%</div>
|
|
</div>
|
|
<p id="conversion"></p>
|
|
<span id="result"></span>
|
|
|
|
<div>
|
|
<a href="#" id="download" class="button" style="display: none">Download</a>
|
|
</div>
|
|
|
|
<footer>
|
|
<p class="badge">
|
|
<a href="https://github.com/raviriley/STL-to-OpenSCAD-Converter"><img src="https://gh-card.dev/repos/raviriley/STL-to-OpenSCAD-Converter.svg" style="width:100%"></a>
|
|
<button id="btn">
|
|
<a class="github-button" href="https://github.com/raviriley/STL-to-OpenSCAD-Converter" data-icon="octicon-star" data-size="large" aria-label="Star raviriley/STL-to-OpenSCAD-Converter on GitHub">Star</a>
|
|
<br>
|
|
<a class="github-button" href="https://github.com/raviriley/STL-to-OpenSCAD-Converter/archive/master.zip" data-icon="octicon-download" data-size="large" aria-label="Download raviriley/STL-to-OpenSCAD-Converter on GitHub">Download</a>
|
|
</button>
|
|
</p>
|
|
</footer>
|
|
<script src="js/main.js"></script>
|
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
|
</body>
|
|
</html> |