mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
made ragdoll demo iframeable
This commit is contained in:
parent
86063661db
commit
079811989b
1 changed files with 10 additions and 3 deletions
|
|
@ -12,10 +12,17 @@
|
|||
<script type="text/javascript" src="ragdoll-min.js"></script>
|
||||
<script type="text/javascript" src="ragdoll.js"></script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div style="text-align:center">
|
||||
<canvas id="canvas" width="640" height="480" tabindex='1'></canvas>
|
||||
<div style="display: none;text-align:center">
|
||||
<br>
|
||||
Try the latest version of Chrome or Firefox for best performance.<br>
|
||||
<br>
|
||||
|
|
@ -24,7 +31,7 @@
|
|||
If you change the size of the canvas, you'll also need to change
|
||||
the value of 'viewCenterPixel' in testbed.js
|
||||
-->
|
||||
<canvas id="canvas" width="640" height="480" tabindex='1'></canvas>
|
||||
|
||||
<div style="width:636px;padding:2px;background-color:#ddd">
|
||||
<div style="text-align:center">
|
||||
Select test: <select id="testSelection" onchange="changeTest();">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue