1
0

Update vr180-player.js and index.html to use HTML text for enterVrBtn and fix exit VR label

This commit is contained in:
Michael Verdi
2025-06-18 17:05:35 -05:00
parent 299c17efe0
commit 8539a54f40
2 changed files with 2 additions and 3 deletions

View File

@@ -11,9 +11,9 @@
<video id="vrVideo" controls crossOrigin="anonymous" playsinline webkit-playsinline> <video id="vrVideo" controls crossOrigin="anonymous" playsinline webkit-playsinline>
<source src="REPLACE_THIS.mp4" type="video/mp4"> <source src="REPLACE_THIS.mp4" type="video/mp4">
</video> </video>
<button id="enterVrBtn">Enter VR</button>
</div> </div>
</div> </div>
<button id="enterVrBtn" data-enter-vr-text="Enter VR">Enter VR</button>
<script type="module" src="vr180-player.js"></script> <script type="module" src="vr180-player.js"></script>
</body> </body>
</html> </html>

View File

@@ -971,7 +971,6 @@ function onVRSessionEnd(event) {
enterVrBtn.textContent = enterVrBtn.dataset.enterVrText; enterVrBtn.textContent = enterVrBtn.dataset.enterVrText;
} }
onWindowResize(); onWindowResize();
} }