Made emscripten work a bit better
This commit is contained in:
30
index.html
Normal file
30
index.html
Normal file
@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Home</title>
|
||||
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: #000000;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
canvas {
|
||||
border: 1px solid red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello Emscripten</h1>
|
||||
|
||||
<canvas id="tutorial" width="300" height="300"></canvas>
|
||||
|
||||
<script type="text/javascript">
|
||||
window.Module = {};
|
||||
window.Module.canvas = document.getElementById('tutorial');
|
||||
|
||||
</script>
|
||||
<script src="./build/src/dawnhelloworld/HelloWorld.js"></script>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user