-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3211d78
commit 1e1483e
Showing
3 changed files
with
2,295 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,56 @@ | ||
<title>transform-gizmo demo</title><style>html{touch-action:manipulation}body,canvas,html{margin:0!important;padding:0!important;height:100%!important;width:100%!important;overflow:hidden;background:black;z-index:0}canvas{outline:none;display:block;position:absolute;top:0%;left:50%;transform:translate(-50%,0%)}</style><script type=module>import a,*as b from"./bevy-example.js";a(`./bevy-example_bg.wasm`);window.wasmBindings=b</script><base href=./><link as=fetch crossorigin href=./bevy-example_bg.wasm integrity=sha384-_MOw9QoCsiZMgMck0lKPv-c-9UloMFK9nC8viwDBtuA6VVYnVODwcsObwrRiBScM rel=preload type=application/wasm><link crossorigin href=./bevy-example.js integrity=sha384-QedzUq-rnpYnTZQmo2c0t0dipIrZQq6fIQhzIhRHLta-BiHT0e5JIJmb6al0kVuN rel=modulepreload></head><body oncontextmenu="return false;"></body></html> | ||
<html> | ||
|
||
<head> | ||
<title>transform-gizmo demo</title> | ||
<style> | ||
html { | ||
/* Remove touch delay: */ | ||
touch-action: manipulation; | ||
} | ||
|
||
html, | ||
body, | ||
canvas { | ||
margin: 0 !important; | ||
padding: 0 !important; | ||
height: 100% !important; | ||
width: 100% !important; | ||
overflow: hidden; | ||
background: black; | ||
z-index: 0; | ||
} | ||
|
||
/* Position canvas in center-top: */ | ||
canvas { | ||
outline: none; | ||
display: block; | ||
position: absolute; | ||
top: 0%; | ||
left: 50%; | ||
transform: translate(-50%, 0%); | ||
} | ||
</style> | ||
|
||
|
||
<script type="module" nonce="GS2kKCZbtF0ktSPG5BxZxg=="> | ||
import init, * as bindings from './bevy-example.js'; | ||
const wasm = await init('./bevy-example_bg.wasm'); | ||
|
||
|
||
window.wasmBindings = bindings; | ||
|
||
|
||
dispatchEvent(new CustomEvent("TrunkApplicationStarted", {detail: {wasm}})); | ||
|
||
</script> | ||
|
||
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option --> | ||
<base href="./" /> | ||
|
||
<link rel="modulepreload" href="./bevy-example.js" crossorigin=anonymous integrity="sha384-6Ldp6Ir9b4WgCo9BjLLdK0MSfijLTvGaNTksXW+wkwsR5WrJQNyXJ8R+Z4muz/Ed"> | ||
<link rel="preload" href="./bevy-example_bg.wasm" crossorigin=anonymous integrity="sha384-jlNgB4IzY84wt1EExECMOmRyoeE8OyWTiJ302FDm7gDUIqk3Eg6hs50PflkxWLmW" as="fetch" type="application/wasm"></head> | ||
|
||
<body oncontextmenu="return false;"> | ||
</body> | ||
|
||
</html> |