Demo cleanup/enhance

This commit is contained in:
Ryan McGrath 2011-07-10 04:17:46 -04:00
parent 8445a4bdc8
commit 95e7b6644c

View file

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