Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GeoVistoogsi
AR
Commits
4200e66b
Commit
4200e66b
authored
4 months ago
by
Cantuerk
Browse files
Options
Download
Email Patches
Plain Diff
Update public/previewImages/exit-icon.png, public/index.html
parent
7d7f8627
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/index.html
+47
-1
public/index.html
public/previewImages/exit-icon.png
+0
-0
public/previewImages/exit-icon.png
with
47 additions
and
1 deletion
+47
-1
public/index.html
+
47
-
1
View file @
4200e66b
...
...
@@ -109,7 +109,8 @@
}
/* Confirmation Dialog */
#confirmation-dialog
{
#confirmation-dialog
,
#info-dialog
{
position
:
fixed
;
top
:
0
;
left
:
0
;
...
...
@@ -205,6 +206,13 @@
</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
class=
"dialog-overlay"
></div>
<div
class=
"dialog-box"
>
...
...
@@ -214,6 +222,15 @@
</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>
// Variablen
let
selectedModel
=
'
robot
'
;
...
...
@@ -339,7 +356,13 @@
}
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
"
);
dynamicMenu
.
style
.
display
=
"
block
"
;
dynamicMenu
.
innerHTML
=
`
<h3>Rotation anpassen</h3>
<label>Y-Achse: <input type="range" min="0" max="360" step="10" onchange="updateRotation('y', this.value)"></label>
...
...
@@ -355,7 +378,13 @@
}
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
"
);
dynamicMenu
.
style
.
display
=
"
block
"
;
dynamicMenu
.
innerHTML
=
`
<h3>Skalierung anpassen</h3>
<label>Größe: <input type="range" min="0.1" max="3" step="0.1" onchange="updateScale(this.value)"></label>
...
...
@@ -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
()
{
const
canvas
=
document
.
createElement
(
'
canvas
'
);
document
.
body
.
appendChild
(
canvas
);
...
...
This diff is collapsed.
Click to expand it.
public/previewImages/exit.png
→
public/previewImages/exit
-icon
.png
+
0
-
0
View file @
4200e66b
File moved
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment