Commit ad3f5609 authored by Cantuerk's avatar Cantuerk
Browse files

Merge branch '21caog1bif-master-patch-97165' into 'master'

Update public/previewImages/exit-icon.png, public/index.html

See merge request !120
1 merge request!120Update public/previewImages/exit-icon.png, public/index.html
Pipeline #10665 passed with stage
in 10 seconds
Showing with 47 additions and 1 deletion
+47 -1
...@@ -109,7 +109,8 @@ ...@@ -109,7 +109,8 @@
} }
/* Confirmation Dialog */ /* Confirmation Dialog */
#confirmation-dialog { #confirmation-dialog,
#info-dialog {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -205,6 +206,13 @@ ...@@ -205,6 +206,13 @@
</div> </div>
</div> </div>
<!-- Dynamisches Menü -->
<div id="dynamic-menu"
style="display: none; position: absolute; bottom: 0; width: 100%; background: #f5f5f5; padding: 20px; box-shadow: 0 -2px 6px rgba(0,0,0,0.2);">
</div>
<!-- Bestätigungsdialog -->
<div id="confirmation-dialog" style="display: none;"> <div id="confirmation-dialog" style="display: none;">
<div class="dialog-overlay"></div> <div class="dialog-overlay"></div>
<div class="dialog-box"> <div class="dialog-box">
...@@ -214,6 +222,15 @@ ...@@ -214,6 +222,15 @@
</div> </div>
</div> </div>
<!-- Informations-Dialog -->
<div id="info-dialog" style="display: none;">
<div class="dialog-overlay"></div>
<div class="dialog-box">
<p id="info-text">Hier kommt die Nachricht hin</p>
<button onclick="closeInfoDialog()">OK</button>
</div>
</div>
<script> <script>
// Variablen // Variablen
let selectedModel = 'robot'; let selectedModel = 'robot';
...@@ -339,7 +356,13 @@ ...@@ -339,7 +356,13 @@
} }
function openRotationMenu() { function openRotationMenu() {
if (!selectedPlacedModel) {
showInfoDialog("Kein Modell ausgewählt. Bitte wählen Sie ein Modell aus, bevor Sie es bearbeiten.");
return;
}
const dynamicMenu = document.getElementById("dynamic-menu"); const dynamicMenu = document.getElementById("dynamic-menu");
dynamicMenu.style.display = "block";
dynamicMenu.innerHTML = ` dynamicMenu.innerHTML = `
<h3>Rotation anpassen</h3> <h3>Rotation anpassen</h3>
<label>Y-Achse: <input type="range" min="0" max="360" step="10" onchange="updateRotation('y', this.value)"></label> <label>Y-Achse: <input type="range" min="0" max="360" step="10" onchange="updateRotation('y', this.value)"></label>
...@@ -355,7 +378,13 @@ ...@@ -355,7 +378,13 @@
} }
function openScaleMenu() { function openScaleMenu() {
if (!selectedPlacedModel) {
showInfoDialog("Kein Modell ausgewählt. Bitte wählen Sie ein Modell aus, bevor Sie es bearbeiten.");
return;
}
const dynamicMenu = document.getElementById("dynamic-menu"); const dynamicMenu = document.getElementById("dynamic-menu");
dynamicMenu.style.display = "block";
dynamicMenu.innerHTML = ` dynamicMenu.innerHTML = `
<h3>Skalierung anpassen</h3> <h3>Skalierung anpassen</h3>
<label>Größe: <input type="range" min="0.1" max="3" step="0.1" onchange="updateScale(this.value)"></label> <label>Größe: <input type="range" min="0.1" max="3" step="0.1" onchange="updateScale(this.value)"></label>
...@@ -377,6 +406,23 @@ ...@@ -377,6 +406,23 @@
} }
} }
function showInfoDialog(message) {
const infoDialog = document.getElementById("info-dialog");
const infoText = document.getElementById("info-text");
// Nachricht setzen
infoText.textContent = message;
// Dialog anzeigen
infoDialog.style.display = "flex";
}
function closeInfoDialog() {
const infoDialog = document.getElementById("info-dialog");
infoDialog.style.display = "none";
}
async function activateXR() { async function activateXR() {
const canvas = document.createElement('canvas'); const canvas = document.createElement('canvas');
document.body.appendChild(canvas); document.body.appendChild(canvas);
......
File moved
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment