Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kramer
TestProject
Commits
3d3e6751
Commit
3d3e6751
authored
1 year ago
by
Kramer
Browse files
Options
Download
Email Patches
Plain Diff
Update index.html with tutorial code
parent
349bce24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/index.html
+24
-19
public/index.html
with
24 additions
and
19 deletions
+24
-19
public/index.html
+
24
-
19
View file @
3d3e6751
<!
DOCTYPE
html>
<!
doctype
html>
<html>
<html>
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"generator"
content=
"GitLab Pages"
>
<meta
name=
"viewport"
<title>
Plain HTML site using GitLab Pages
</title>
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"style.css"
>
<title>
Cube Demo
</title>
</head>
<body>
<div
class=
"navbar"
>
<a
href=
"https://pages.gitlab.io/plain-html/"
>
Plain HTML Example
</a>
<a
href=
"https://gitlab.com/pages/plain-html/"
>
Repository
</a>
<a
href=
"https://gitlab.com/pages/"
>
Other Examples
</a>
</div>
<h1>
Hello World!
</h1>
<!-- three.js -->
<script
src=
"https://unpkg.com/three@0.126.0/build/three.js"
></script>
</head>
<body>
<p>
<!-- Starting an immersive WebXR session requires user interaction.
This is a simple plain-HTML website on GitLab Pages, without any fancy static site generator.
We start this one with a simple button. -->
</p>
<button
onclick=
"activateXR()"
>
Start Cube Demo
</button>
</body>
<script>
</html>
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>
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