stl_web_viewer2/index.html
2020-08-22 00:20:41 +02:00

38 lines
1.0 KiB
HTML

<!doctype html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/106/three.min.js" integrity="sha256-tAVw6WRAXc3td2Esrjd28l54s3P2y7CDFu1271mu5LE=" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="build/stlwebviewer2.css" />
<style>
html {
background-color: #f7f7f7;
height: 100%;
}
body {
width: 50em;
max-width: 100%;
margin: 0 auto;
min-height: 100%;
display: flex;
align-items: center;
}
.stlwv2-model {
width: 100%;
height: 30em;
}
</style>
</head>
<body>
<div class="stlwv2-model" data-model-url="models/printer.stl"></div>
<script src="build/stlwebviewer2.js"></script>
</body>
</html>