Demo cleanup/enhance
This commit is contained in:
parent
6bf172bf47
commit
de1a6103ca
2 changed files with 8 additions and 7 deletions
|
|
@ -44,7 +44,7 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* "Players". ;) */
|
/* "Players". ;) */
|
||||||
.player { position: absolute; top: 740; width: 46px; height: 46px; border: 2px solid #010101; padding: 10px; }
|
.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 span { background-color: #f9f9f9; padding: 5px; 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; }
|
||||||
|
|
|
||||||
11
index.html
11
index.html
|
|
@ -29,10 +29,10 @@
|
||||||
- Ryan McGrath
|
- Ryan McGrath
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div id="player_1" class="player">1</div>
|
<div id="player_1" class="player"><span>1</span></div>
|
||||||
<div id="player_2" class="player">2</div>
|
<div id="player_2" class="player"><span>2</span></div>
|
||||||
<div id="player_3" class="player">3</div>
|
<div id="player_3" class="player"><span>3</span></div>
|
||||||
<div id="player_4" class="player">4</div>
|
<div id="player_4" class="player"><span>4</span></div>
|
||||||
|
|
||||||
<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>
|
||||||
|
|
@ -110,7 +110,8 @@
|
||||||
p4.css({'top': parseInt(x[0].style.top) - 50});
|
p4.css({'top': parseInt(x[0].style.top) - 50});
|
||||||
});
|
});
|
||||||
|
|
||||||
Wii.listen();
|
try {
|
||||||
|
Wii.listen(); } catch(e) { }
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue