Skip to content

Commit

Permalink
Updated web demo
Browse files Browse the repository at this point in the history
  • Loading branch information
urholaukkarinen committed Nov 2, 2024
1 parent 3211d78 commit 1e1483e
Show file tree
Hide file tree
Showing 3 changed files with 2,295 additions and 2 deletions.
2,240 changes: 2,239 additions & 1 deletion docs/bevy-example.js

Large diffs are not rendered by default.

Binary file modified docs/bevy-example_bg.wasm
Binary file not shown.
57 changes: 56 additions & 1 deletion docs/index.html
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>

0 comments on commit 1e1483e

Please sign in to comment.