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

@ -44,8 +44,8 @@ p {
} }
/* "Players". ;) */ /* "Players". ;) */
.player { position: absolute; top: 680px; width: 46px; height: 46px; border: 2px solid #010101; padding: 10px; } .player { position: absolute; top: 680px; width: 26px; height: 26px; text-align: center; border: 2px solid #010101; padding: 10px; }
.player span { background-color: #f9f9f9; padding: 5px; font-weight: bold; } .player span { background-color: #f9f9f9; padding: 5px 5px 4px; font-weight: bold; }
#player_1 { background-color: #ef1419; color: #ef1419; left: 500px; } #player_1 { background-color: #ef1419; color: #ef1419; left: 500px; }
#player_2 { background-color: #13c32c; color: #13c32c; left: 580px; } #player_2 { background-color: #13c32c; color: #13c32c; left: 580px; }
#player_3 { background-color: #e6d01a; color: #e6d01a; left: 660px; } #player_3 { background-color: #e6d01a; color: #e6d01a; left: 660px; }

View file

@ -37,6 +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}),
@ -110,8 +111,7 @@
p4.css({'top': parseInt(x[0].style.top) - 50}); p4.css({'top': parseInt(x[0].style.top) - 50});
}); });
try { Wii.listen(); } catch(e) { alert(e.message); }
Wii.listen(); } catch(e) { }
</script> </script>
</body> </body>
</html> </html>