Commit 773edd10 authored by Simon Welsh's avatar Simon Welsh

:target style for .swear

git-svn-id: svn+ssh://lsgn/var/logbot-www@80 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent 580fca2e
......@@ -85,7 +85,7 @@ table.cal th {
padding: 0;
}
.logs :target {
.logs :target, .swear:target {
background: gold;
}
......@@ -112,11 +112,13 @@ div.swear {
float: none;
display: inline-block;
width: 260px;
margin-left: 10px;
margin-left: 6px;
margin-bottom: 10px;
padding: 3px;
}
div.swear h3 {
margin: 15px 0 10px;
margin: 0 0 10px;
}
......
......@@ -14,7 +14,7 @@ $body = <x:frag>
$stats = get_stats();
$d = <div class="swear"><h3>Top speakers</h3></div>;
$d = <div class="swear" id="top"><h3>Top speakers</h3></div>;
$tb = <tbody />;
foreach($stats[0] as $person => $count) {
$tb->appendChild(<tr><td>{$person}</td><td>{$count}</td></tr>);
......@@ -31,8 +31,9 @@ $d->appendChild(<table>
$body->appendChild($d);
foreach($stats[1] as $name => $values) {
$d = <div class="swear" />;
$d->appendChild(<h3 id={strtolower($name)}>{$name}</h3>);
$d = <div class="swear" id={strtolower($name)}>
<h3>{$name}</h3>
</div>;
$tb = <tbody />;
foreach($values as $person => $count) {
$tb->appendChild(<tr><td>{$person}</td><td>{$count}</td></tr>);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment