added modelviewer and css
This commit is contained in:
parent
1326d54083
commit
ad7d092728
5 changed files with 113 additions and 144 deletions
|
|
@ -8,15 +8,9 @@
|
|||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<model-viewer src="{{file}}" ar camera-controls shadow-intensity=1><button class="Hotspot" slot="hotspot-3" data-position="0.034086908507172255m 0.035633058045035026m 0.0008323315838707837m" data-normal="0.11076220205426575m 0.9733893287613071m 0.2006114384817127m" data-visibility-attribute="visible">
|
||||
<div class="HotspotAnnotation">The Beak</div>
|
||||
</button><button class="Hotspot" slot="hotspot-4" data-position="-0.0077982119614389955m -0.008128374324366697m -0.034137767670381604m" data-normal="-0.2165819895695754m 0.2073173991125989m -0.9539977661500428m" data-visibility-attribute="visible">
|
||||
<div class="HotspotAnnotation">A Wing</div>
|
||||
</button><button class="Hotspot" slot="hotspot-5" data-position="-0.04329843722003483m 0.011786457618276569m 0.0029983665888340706m" data-normal="-0.7752145503176167m 0.6212154023517756m 0.11460290073456728m" data-visibility-attribute="visible">
|
||||
<div class="HotspotAnnotation">The Tail</div>
|
||||
</button></model-viewer>
|
||||
</main>
|
||||
<model-viewer src="{{file if file else 'model.glb'}}" field-of-view="{{fieldofview if fieldofview else 'auto'}}" ar xr-environment camera-controls shadow-intensity=1>
|
||||
{{content | safe}}
|
||||
</model-viewer>
|
||||
<script type="module" src="/assets/model-viewer.min.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue