From 3202737a07ab7080b2c92afa0a717e26f7fb5ef3 Mon Sep 17 00:00:00 2001 From: Rafiei <32rafa1mpg@hft-stuttgart.de> Date: Mon, 17 Jun 2024 19:33:41 +0000 Subject: [PATCH] Update index.html --- public/index.html | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index 95ab617..cb72d7c 100644 --- a/public/index.html +++ b/public/index.html @@ -1,21 +1,23 @@ <!doctype html> <html> + <head> <meta charset="UTF-8"> <meta name="viewport" - content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> + content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <title>Cube Demo</title> <!-- three.js --> <script src="https://unpkg.com/three@0.126.0/build/three.js"></script> </head> + <body> -<!-- Starting an immersive WebXR session requires user interaction. + <!-- Starting an immersive WebXR session requires user interaction. We start this one with a simple button. --> -<button onclick="activateXR()">Start Cube Demo</button> -<script> -async function activateXR() { + <button onclick="activateXR()">Start Cube Demo</button> + <script> + async function activateXR() { // Add a canvas element and initialize a WebGL context that is compatible with WebXR. const canvas = document.createElement("canvas"); document.body.appendChild(canvas); @@ -93,6 +95,7 @@ session.requestAnimationFrame(onXRFrame); } -</script> + </script> </body> + </html> -- GitLab