Skip to content

Instantly share code, notes, and snippets.

@walesmd
Created January 21, 2009 04:45
Show Gist options
  • Save walesmd/49854 to your computer and use it in GitHub Desktop.
Save walesmd/49854 to your computer and use it in GitHub Desktop.
Coded xHTML/CSS for online poker tournament manager, screenshot at http://twitpic.com/15ebp
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<title>Poker</title>
<link rel="stylesheet" href="http://localhost/poker/assets/css/reset.css" media="screen,projection" type="text/css" />
<link rel="stylesheet" href="http://localhost/poker/assets/css/manager.css" media="screen,projection" type="text/css" />
<link rel="stylesheet" href="" media="print" type="text/css" />
<link rel="alternate" href="" title="RSS Feed" type="application/rss+xml" />
</head>
<body>
<div id="wrapper">
<div id="blinds">
<ol>
<li class="smallest">100,000 / 200,000</li>
<li class="smallest">50,000 / 100,000</li>
<li class="break">Break: 15 min</li>
<li class="smaller">40,000 / 80,000</li>
<li class="smaller">20,000 / 40,000</li>
<li class="smaller">10,000 / 20,000</li>
<li class="small">5,000 / 10,000</li>
<li>2,000 / 5,000</li>
<li class="active">1,000 / 2,000</li>
<li>500 / 1,000</li>
<li class="break">Break: 15 min</li>
<li>200 / 400</li>
<li>100 / 200</li>
<li>50 / 100</li>
<li class="break">Break: 15 min</li>
<li>20 / 40</li>
<li>10 / 20</li>
</ol>
</div><!-- end #blinds -->
<div id="clock">
<p><em id="remaining">7:32</em> remaining</p>
</div><!-- end #clock -->
<div id="players">
<table summary="This table contains the currently active players within the tournament.">
<thead id="player_headings">
<tr>
<td class="player_actions"></td>
<td class="player_name">Name</td>
<td class="player_table">Table</td>
<td class="player_seat">Seat</td>
</tr>
</thead>
<tbody>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Mike</td>
<td class="player_table">1</td>
<td class="player_seat">1</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Shannon</td>
<td class="player_table">1</td>
<td class="player_seat">2</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Pedro</td>
<td class="player_table">1</td>
<td class="player_seat">3</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Jose</td>
<td class="player_table">1</td>
<td class="player_seat">4</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Chris</td>
<td class="player_table">1</td>
<td class="player_seat">5</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Dave M.</td>
<td class="player_table">1</td>
<td class="player_seat">6</td>
</tr>
<tr>
<td class="player_actions"><a href="http://localhost/poker/index.php/tournament/player_exit" class="player_exit">E</a> <a href="http://localhost/poker/index.php/tournament/player_rebuy" class="player_rebuy">R</a></td>
<td class="player_name">Dave B.</td>
<td class="player_table">1</td>
<td class="player_seat">7</td>
</tr>
</tbody>
</table>
<div id="tables">
<h3>All Tables</h3>
<ul>
<li class="active">Table 1</li>
<li><a href="http://localhost/poker/index.php/tournament/table/2">Table 2</a></li>
<li><a href="http://localhost/poker/index.php/tournament/table/3">Table 3</a></li>
</ul>
</div>
</div><!-- end #players -->
</div><!-- end #wrapper -->
</body>
</html>
/* Structure */
#wrapper {height:600px;margin:0 auto;overflow:hidden;width:800px;}
#blinds {float:left;margin:7px 10px;width:120px;}
#blinds li {margin:6px 0;}
#clock {float:right;margin:10px;width:640px;}
#players {float:right;margin:10px;padding:5px 10px;width:620px;}
#players table {float:left;width:400px;}
.player_actions {width:40px;}
.player_name {width:160px;}
.player_table {width:80px;}
.player_seat {width:80px;}
#players #tables {float:right;width:100px;}
/* Links */
a:link, a:visited, a:hover, a:active {color:#9ecd8c;}
/* Fonts & Text */
body {font-family:'Segoe UI';font-size:1.2em;line-height:1.8em;text-align:center;}
#wrapper {text-align:left;}
#blinds, #clock, #players {text-align:center;}
#blinds .break {font-size:0.9em;}
#blinds .small {font-size:0.9em;}
#blinds .smaller {font-size:0.85em;}
#blinds .smallest {font-size:0.75em;}
#clock em {display:block;font-weight:bold;line-height:0.8em;font-size:4em;}
#players thead {font-weight:bold;}
#players tbody {font-size:0.8em;}
#players #tables h3 {font-size:1em;font-weight:bold;}
#players #tables {font-size:0.8em;}
#players #tables .active {font-weight:bold;}
/* Colors and Backgrounds */
body {color:#FFF;}
#wrapper {background:transparent url(../images/manager/bg.jpg) no-repeat center center;}
#blinds li {background:transparent url(../images/manager/black_bg.png) repeat center center;border:1px solid #2c6c49;color:#AAA;}
#blinds .active {background:transparent url(../images/manager/active_bg.png) no-repeat center bottom;border:none;color:#9ecd8c;font-weight:bold;}
#players {background:transparent url(../images/manager/black_bg.png) repeat center center;}
#players thead {border-bottom:1px solid #FFF;}
#players #tables h3 {border-bottom:1px solid #FFF;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment