added viewer-js
This commit is contained in:
parent
a7ac1844e1
commit
8840e3fa0d
1 changed files with 10 additions and 2 deletions
|
|
@ -84,9 +84,7 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<div class="render-col">
|
||||
<vrml-viewer class="responsive-viewer" src="files/{{ name }}_model.wrl.gz" background-color="#2a2a2a" autoload="false" model-size="1.2" responsive="true"></vrml-viewer>
|
||||
</div>
|
||||
<div class="">
|
||||
<h3>Files:</h3>
|
||||
<ul>
|
||||
|
|
@ -119,6 +117,16 @@
|
|||
</div>
|
||||
|
||||
<script src="js/bootstrap.bundle.min.js"></script>
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"three": "https://cdn.jsdelivr.net/npm/three@0.160.1/build/three.module.js",
|
||||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.160.1/examples/jsm/"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="module" src="js/vrml-viewer.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue