Demo cleanup/enhance

This commit is contained in:
Ryan McGrath 2011-07-10 04:07:53 -04:00
parent de1a6103ca
commit 38fe80cfbd
2 changed files with 4 additions and 4 deletions

View file

@ -37,6 +37,7 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script src="js/wii.js"></script>
<script>
try {
var wiimote = new Wii.Remote(1, {horizontal: true}),
wiimote2 = new Wii.Remote(2, {horizontal: true}),
wiimote3 = new Wii.Remote(3, {horizontal: true}),
@ -110,8 +111,7 @@
p4.css({'top': parseInt(x[0].style.top) - 50});
});
try {
Wii.listen(); } catch(e) { }
Wii.listen(); } catch(e) { alert(e.message); }
</script>
</body>
</html>