mirror of https://github.com/dirtbags/moth.git
Stop conflicting with js category
This commit is contained in:
parent
fadf42a3e8
commit
d0f74f97ec
|
@ -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>
|
||||||
|
|
|
@ -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 = {}
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -27,16 +27,24 @@ function koth.anchored_search(haystack, needle, anchor)
|
||||||
end
|
end
|
||||||
|
|
||||||
function koth.page(title, body)
|
function koth.page(title, body)
|
||||||
print("Content-type: text/html")
|
if (os.getenv("REQUEST_METHOD")) then
|
||||||
print()
|
print("Content-type: text/html")
|
||||||
|
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
|
|
@ -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>
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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;
|
Loading…
Reference in New Issue