Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alfakhori
ar
Commits
3a0ec2c4
Commit
3a0ec2c4
authored
Apr 12, 2023
by
Alfakhori
Browse files
Update public/kontakt.html
parent
47c81b50
Pipeline
#7292
passed with stage
in 8 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
public/kontakt.html
View file @
3a0ec2c4
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<script
src=
"https://aframe.io/releases/1.3.0/aframe.min.js"
></script>
<title>
Centered Image
</title>
<!-- we import arjs version without NFT but with marker + location based support -->
<style>
<script
src=
"https://raw.githack.com/AR-js-org/AR.js/dev/aframe/build/aframe-ar.js"
></script>
/* CSS styling to center the image */
<body
style=
"margin : 0px; overflow: hidden;"
>
body
{
<a-scene
embedded
arjs
>
display
:
flex
;
<a-marker
preset=
"hiro"
>
justify-content
:
center
;
<a-entity
align-items
:
center
;
position=
"0 0 0"
height
:
100vh
;
rotation=
"0 0 0"
}
scale=
"0.05 0.05 0.05"
img
{
gltf-model=
"assets/scene.gltf"
max-width
:
100%
;
></a-entity>
max-height
:
100%
;
</a-marker>
}
<a-entity
camera
></a-entity>
</style>
</a-scene>
</head>
<body>
<img
src=
"assets/image.png"
alt=
"Image Description"
>
</body>
</body>
</html>
</html>
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