forked from flyover/box2d.ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
19 lines (19 loc) · 690 Bytes
/
index.html
File metadata and controls
19 lines (19 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
<head>
<meta charset="utf-8" />
<title>Box2D</title>
<script src="https://unpkg.com/systemjs@6.7.0/dist/system.js"></script>
<script type="text/javascript">
window.addEventListener('load', function(event) {
const args = window.location.search.substring(1).split('&').filter(v => !!v); // args from window location
console.log(args);
System.import("./build/index.js").then(function(b2) {
console.log(b2.version);
}).catch(console.error);
System.import("./build/box2d.js").then(function(box2d) {
console.log(box2d.b2_version);
}).catch(console.error);
});
</script>
</head>
</html>