From d9eb71138f29ed57ab4d5819a00b64b3bc563da4 Mon Sep 17 00:00:00 2001
From: Percen <21pesi1bif@hft-stuttgart.de>
Date: Sat, 14 Dec 2024 15:07:53 +0000
Subject: [PATCH] Update public/index.html
---
public/index.html | 491 ++++++++++++++++++++++------------------------
1 file changed, 232 insertions(+), 259 deletions(-)
diff --git a/public/index.html b/public/index.html
index 1c61584..de8bea2 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,268 +1,241 @@
-
+
-
-
-
- 3D Modell Umschalter - Sonnenblume und Roboter
+
+
+ GeoVis AR Projekt
+ body {
+ margin: 0;
+ font-family: Arial, sans-serif;
+ background-color: #f0f0f0;
+ color: #333;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ background-image: url('https://www.hft-stuttgart.de/fileadmin/Dateien/Hochschule/-_R_Juergen_Pollak_HFT_18.04.18-0091.jpg');
+ background-size: cover;
+ background-position: center;
+ }
+
+ .container {
+ text-align: center;
+ background-color: rgba(0, 0, 0, 0.5);
+ padding: 50px;
+ border-radius: 10px;
+ color: white;
+ max-width: 80%;
+ box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
+ }
+//teste
+ h1 {
+ font-size: 3em;
+ margin-bottom: 20px;
+ }
+
+ p {
+ font-size: 1.2em;
+ margin-bottom: 30px;
+ }
+
+ button {
+ background-color: #4CAF50;
+ color: white;
+ font-size: 1.5em;
+ padding: 15px 30px;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ transition: background-color 0.3s;
+ margin: 10px;
+ }
+
+ button:hover {
+ background-color: #45a049;
+ }
+
+ button:active {
+ background-color: #387a39;
+ }
+
+
+
+
+
-
-
-
-
-
-
-
-
+ }
+ }
+
+ // AR starten
+ if (navigator.xr) {
+ const startButton = document.createElement('button');
+ startButton.textContent = 'Start AR';
+ startButton.style.cssText = "position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 15px; font-size: 18px;";
+ document.body.appendChild(startButton);
+ startButton.onclick = () => {
+ startButton.remove();
+ activateXR();
+ };
+ } else {
+ alert('WebXR wird nicht unterstützt.');
+ }
+
-
--
GitLab