From 93e3efda263294976a1110a84c01cd30ed4a743e Mon Sep 17 00:00:00 2001
From: Riegel <22rial1mpg@hft-stuttgart.de>
Date: Sat, 17 Jun 2023 14:57:53 +0000
Subject: [PATCH] Update public/index.html

---
 public/index.html | 34 +++++++++++++++++++++++++++++-----
 1 file changed, 29 insertions(+), 5 deletions(-)

diff --git a/public/index.html b/public/index.html
index d0e0b2a..b6ba400 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,5 +1,29 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<title>Redirecting...</title>
-<meta http-equiv="refresh" content="0; URL=home/">
-<link rel="canonical" href="home/">
+<!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">
+  <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.
+    We start this one with a simple button. -->
+<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);
+  const gl = canvas.getContext("webgl", {xrCompatible: true});
+
+  // To be continued in upcoming steps.
+}
+</script>
+</body>
+</html>
+
-- 
GitLab