Hey there, I'm trying to embed my model-viewer glb file but can't manage it.
Here's what iv'e done:
Created the scene in model-viewer, clicked on download scene and then uploaded all the files to squarespace (index.html, glb file, script.js, snippet.tct, style.css).
I inserted a code box into squarespace with this code:
<!doctype html>
<html lang="en">
<head>
<title><model-viewer> template</title>
<meta charset="utf-8">
<meta name="description" content="<model-viewer> template">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" href="./styles.css" rel="stylesheet"/>
<!-- OPTIONAL: The :focus-visible polyfill removes the focus ring for some input types -->
<script src="https://unpkg.com/focus-visible@5.0.2/dist/focus-visible.js" defer></script>
</head>
<body>
<!-- <model-viewer> HTML element -->
<model-viewer src="makeup.glb" ar ar-modes="webxr scene-viewer quick-look" camera-controls poster="poster.webp" shadow-intensity="1.72" environment-image="music_hall_01_1k.hdr" exposure="1.17" shadow-softness="0.95">
<div class="progress-bar hide" slot="progress-bar">
<div class="update-bar"></div>
</div>
<button slot="ar-button" id="ar-button">
View in your space
</button>
<div id="ar-prompt">
<img src="ar_hand_prompt.png">
</div>
</model-viewer>
<script src="script.js"></script>
<!-- Loads <model-viewer> for browsers: -->
<script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script>
</body>
</html>
which i copied from the index.html file which model-viewer provided with the scene download.
Here is a link to the page:
https://mycandylayers.squarespace.com/new-page-1
if anyone could help, id really appreciate it.
Thanks