forked from ThatOpen/engine_components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (25 loc) · 875 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h2>
If you're developing, append the package and component folder to the URL in order to see the example working without
compiling. For example: <a id="dev"></a>
</h2>
<h2>
To see the compiled example after you run yarn build, append the name of the component at the end of the URL. For
example: <a id="exp"></a>
</h2>
<script>
const dev = document.getElementById("dev")
dev.href = location.href + "packages/core/src/core/Worlds/example.html"
dev.textContent = dev.href.replace(location.href, "")
const exp = document.getElementById("exp")
exp.href = location.href + "examples/Worlds/"
exp.textContent = exp.href.replace(location.href, "")
</script>
</body>
</html>