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>
<meta charset="UTF-8">
<title>$cat $points</title>
<link rel="stylesheet" href="/../../css/style.css" type="text/css">
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<h1>$cat for $points points</h1>

View File

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

View File

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

View File

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

View File

@ -27,16 +27,24 @@ function koth.anchored_search(haystack, needle, anchor)
end
function koth.page(title, body)
print("Content-type: text/html")
print()
if (os.getenv("REQUEST_METHOD")) then
print("Content-type: text/html")
print()
end
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>")
if (body) then
print("<section>")
print(body)
print("</section>")
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>")
os.exit(0)
end

View File

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

View File

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

View File

@ -2,7 +2,7 @@
<html>
<head>
<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">
</head>
<body>

View File

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

View File

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