Demo cleanup/enhance
This commit is contained in:
parent
de1a6103ca
commit
38fe80cfbd
2 changed files with 4 additions and 4 deletions
|
|
@ -44,8 +44,8 @@ p {
|
|||
}
|
||||
|
||||
/* "Players". ;) */
|
||||
.player { position: absolute; top: 680px; width: 46px; height: 46px; border: 2px solid #010101; padding: 10px; }
|
||||
.player span { background-color: #f9f9f9; padding: 5px; font-weight: bold; }
|
||||
.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 5px 4px; font-weight: bold; }
|
||||
#player_1 { background-color: #ef1419; color: #ef1419; left: 500px; }
|
||||
#player_2 { background-color: #13c32c; color: #13c32c; left: 580px; }
|
||||
#player_3 { background-color: #e6d01a; color: #e6d01a; left: 660px; }
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue