# HG changeset patch # User John "Elwin" Edwards # Date 1346909640 25200 # Node ID 17f656035775c4d59dc23fd8a480f71fe3ec3e63 # Parent 84c8e2c0b7f3c3274127e85a93cf0e6ad5b477eb Import the web/scoring/ files. diff -r 84c8e2c0b7f3 -r 17f656035775 web/scoring/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/scoring/index.html Wed Sep 05 22:34:00 2012 -0700 @@ -0,0 +1,19 @@ + + + +Scoring + + + + +

Yendor Guild

+ +
+

The Guild keeps a record of all brave Rogues who venture into the Dungeons of Doom.

+ +
+ + diff -r 84c8e2c0b7f3 -r 17f656035775 web/scoring/players/index.cgi --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/scoring/players/index.cgi Wed Sep 05 22:34:00 2012 -0700 @@ -0,0 +1,32 @@ +#!/usr/bin/python + +import os +import sys +import rlgall + +playerdir = "/var/www/lighttpd/scoring/players/" +linkstr = '
  • {0}
  • \n' + +filelist = os.listdir(playerdir) +namelist = [] + +for filename in filelist: + if filename.endswith(".html"): + namelist.append(filename.rsplit(".html", 1)[0]) +namelist.sort() + +sys.stdout.write("Content-type: text/html\r\n\r\n") +sys.stdout.write(rlgall.phead.format("Players")) +sys.stdout.write(rlgall.ptop) +sys.stdout.write(rlgall.navscore.format("Players")) +sys.stdout.write(rlgall.pti.format("Players")) + +if not namelist: + sys.stdout.write("

    No one is here.

    \n") +else: + sys.stdout.write("\n") + +sys.stdout.write(rlgall.pend) diff -r 84c8e2c0b7f3 -r 17f656035775 web/scoring/scores.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/scoring/scores.css Wed Sep 05 22:34:00 2012 -0700 @@ -0,0 +1,44 @@ +@import url("/main.css"); + +div.stable { + display: table; + border-width: 1px; + border-color: #101040; + border-style: solid; + border-collapse: collapse; +} + +div.sentry { + display: table-row; + border-width: 1px 0; + border-color: #101040; + border-style: solid; +} + +div.sentry:first-child { + background-color: #E0E0E0; +} + +div.sentry:nth-child(3n) { + background-color: #E0E0FF; +} + +div.sentry:nth-child(3n+4) { + background-color: #E0FFE0; +} + +div.sentry:nth-child(3n+2) { + background-color: #FFE0E0; +} + +span.shdata { + display: table-cell; + font-weight: bold; + text-align: center; + padding: 0 1em; +} + +span.sdata { + display: table-cell; + padding: 0 1em; +}