BeepSortRust/index.html

38 lines
1,014 B
HTML

<html lang="en">
<head>
<meta charset="utf-8">
<title>BeepSort!</title>
<style>
html,
body,
canvas {
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
overflow: hidden;
position: absolute;
background: black;
z-index: 0;
}
</style>
</head>
<body>
<canvas id="glcanvas" tabindex='1'></canvas>
<!-- Minified and statically hosted version of https://github.com/not-fl3/macroquad/blob/master/js/mq_js_bundle.js -->
<script src="https://not-fl3.github.io/miniquad-samples/mq_js_bundle.js"></script>
<script>
register_plugin = function (importObject) {
importObject.env.hi_from_wasm = function (js_object) {
console.log("hi")
}
}
miniquad_add_plugin({register_plugin});
</script>
<script>load("./BeepSortMacroQuad.wasm");</script> <!-- Your compiled wasm file -->
</body>
</html>