Stop conflicting with js category

This commit is contained in:
Neale Pickett 2015-04-19 23:14:31 -06:00
parent 4c0dc116a5
commit 0672e552b6
14 changed files with 21 additions and 16 deletions

View File

@ -27,7 +27,7 @@ template () {
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>$cat $points</title> <title>$cat $points</title>
<link rel="stylesheet" href="/../../css/style.css" type="text/css"> <link rel="stylesheet" href="../../style.css">
</head> </head>
<body> <body>
<h1>$cat for $points points</h1> <h1>$cat for $points points</h1>

View File

@ -1,6 +1,6 @@
#! /usr/bin/lua #! /usr/bin/lua
package.path = "cgi/?.lua" package.path = "www/?.lua"
local koth = require "koth" local koth = require "koth"
local max_by_cat = {} local max_by_cat = {}

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>The Credits</title> <title>The Credits</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script> <script>
function shuf (ul) { function shuf (ul) {
var lists = document.getElementsByClassName("shuf"); var lists = document.getElementsByClassName("shuf");

View File

@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Welcome</title> <title>Welcome</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
</head> </head>
<body> <body>
<h1>Tracer FIRE</h1> <h1>Tracer FIRE</h1>

View File

@ -27,16 +27,24 @@ function koth.anchored_search(haystack, needle, anchor)
end end
function koth.page(title, body) function koth.page(title, body)
if (os.getenv("REQUEST_METHOD")) then
print("Content-type: text/html") print("Content-type: text/html")
print() print()
end
print("<!DOCTYPE html>") print("<!DOCTYPE html>")
print("<html><head><title>" .. title .. "</title><link rel=\"stylesheet\" href=\"css/style.css\"></head>") print("<html><head><title>" .. title .. "</title><link rel=\"stylesheet\" href=\"style.css\"></head>")
print("<body><h1>" .. title .. "</h1>") print("<body><h1>" .. title .. "</h1>")
if (body) then if (body) then
print("<section>") print("<section>")
print(body) print(body)
print("</section>") print("</section>")
end end
print([[<section id="sponsors">
<img src="images/lanl.png" alt="Los Alamos National Laboratory">
<img src="images/doe.png" alt="US Department Of Energy">
<img src="images/sandia.png" alt="Sandia National Laboratories">
</section>]])
print("</body></html>") print("</body></html>")
os.exit(0) os.exit(0)
end end

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Team Registration</title> <title>Team Registration</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
</head> </head>
<body> <body>
<h1>Team Registration</h1> <h1>Team Registration</h1>

View File

@ -2,8 +2,8 @@
<html> <html>
<head> <head>
<title>Scoreboard</title> <title>Scoreboard</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<script src="js/scoreboard.js" async></script> <script src="scoreboard.js" async></script>
<script> <script>
function init() { function init() {
var sb = document.getElementById("scoreboard"); var sb = document.getElementById("scoreboard");

View File

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>About scoring</title> <title>About scoring</title>
<link rel="stylesheet" href="css/style.css" type="text/css"> <link rel="stylesheet" href="style.css" type="text/css">
<meta charset="utf-8"> <meta charset="utf-8">
</head> </head>
<body> <body>

View File

@ -6,10 +6,10 @@ Light brown: #432115
Tan: #e1caa5 Tan: #e1caa5
*/ */
@import "../fonts/maven_pro.css"; @import "fonts/maven_pro.css";
html { html {
background: #35170c url(../images/brown-circles.jpg) repeat left bottom; background: #35170c url(images/brown-circles.jpg) repeat left bottom;
min-height: 100%; min-height: 100%;
font-family: "Maven Pro", Ubuntu, sans-serif; font-family: "Maven Pro", Ubuntu, sans-serif;
overflow-y: scroll; overflow-y: scroll;

View File

@ -77,9 +77,6 @@ git ls-files | while read fn; do
bin/*) bin/*)
copy $fn copy $fn
;; ;;
cgi/*)
copy $fn
;;
*) *)
echo "??? $fn" echo "??? $fn"
;; ;;