tweak scoreboard

This commit is contained in:
Neale Pickett 2012-02-02 16:51:19 -07:00
parent b718971b0d
commit 2b33b218e9
3 changed files with 27 additions and 7 deletions

2
.gitignore vendored
View File

@ -2,7 +2,7 @@
*#
*.pyc
*.o
bin/
./bin/
build/
cache/
target/

View File

@ -134,7 +134,7 @@ BEGIN {
# Now we can start writing the document
print "<!DOCTYPE html>"
print "<html>"
print "<html class=\"scoreboard\">"
print " <head>"
print " <title>Scoreboard</title>"
print " <link rel=\"stylesheet\" href=\"ctf.css\" type=\"text/css\">"
@ -242,8 +242,7 @@ BEGIN {
print " </tr>"
print " </table>"
print " <canvas id=\"chart\" width=\"800\" height=\"300\"></canvas>"
print " <p><a href=\"scoring.html\">About scoring</a></p>"
print " <canvas id=\"chart\" width=\"1024\" height=\"240\"></canvas>"
print " </body>"
print "</html>"
}

View File

@ -46,7 +46,7 @@ h1:first-child {
h1:first-child:before {
letter-spacing: -0.1em;
content: "NSM FIRE: ";
content: "Tracer FIRE: ";
}
/**** body ****/
@ -134,10 +134,31 @@ nav li + li:before {
text-align: center;
}
#scoreboard td {
height: 300px;
/* Scoreboard stuff */
.scoreboard, .scoreboard body {
height: 100%;
margin: 0;
padding: 0;
max-width: none;
}
#scoreboard {
height: 60%;
font-size: 75%;
}
#scoreboard td {
height: 100%;
}
#chart {
height: 30%;
width: 100%;
}
/* Tanks stuff */
#battlefield {
border: 2px solid green;
}