diff --git a/www/images/brown-circles.jpg b/www/images/brown-circles.jpg deleted file mode 100644 index 9a753dc..0000000 Binary files a/www/images/brown-circles.jpg and /dev/null differ diff --git a/www/images/doe.png b/www/images/doe.png deleted file mode 100644 index 3d033ca..0000000 Binary files a/www/images/doe.png and /dev/null differ diff --git a/www/images/lanl.png b/www/images/lanl.png deleted file mode 100644 index acd5f81..0000000 Binary files a/www/images/lanl.png and /dev/null differ diff --git a/www/images/sandia.png b/www/images/sandia.png deleted file mode 100644 index 149d217..0000000 Binary files a/www/images/sandia.png and /dev/null differ diff --git a/www/images/tf6.png b/www/images/tf6.png deleted file mode 100644 index bdce56b..0000000 Binary files a/www/images/tf6.png and /dev/null differ diff --git a/www/images/tf6bg.png b/www/images/tf6bg.png deleted file mode 100644 index 004e817..0000000 Binary files a/www/images/tf6bg.png and /dev/null differ diff --git a/www/index.html b/www/index.html index 962de79..0aff389 100644 --- a/www/index.html +++ b/www/index.html @@ -1,75 +1,19 @@ - - - - Welcome - - - -

Tracer FIRE

+ + + + + + - - -
-

Getting Started

- -

- Here is what you need to do: -

+ + -
    -
  1. - Register your team. - This only needs to happen once per team, - so if somebody else on your team has already done it, - you don't need to. -
  2. - -
  3. - Get an overview of puzzles, - and start working on something. - The list of open puzzles changes over time, - you need to reload the page to get the current version! -
  4. - -
  5. - Check the scoreboard - in another tab, - to see how your team is doing. -
  6. -
-
- -
-

Reading Material

- -

- Stuck? Taking a break? - Here are some things to read. -

- - -
- -
- Los Alamos National Laboratory - US Department Of Energy - Sandia National Laboratories -
- + MOTH Dashboard + + +
+
+ diff --git a/www/projections.json b/www/projections.json deleted file mode 100644 index 133ffe4..0000000 --- a/www/projections.json +++ /dev/null @@ -1,3 +0,0 @@ -[ - "scoreboard.html" -] diff --git a/www/projector.html b/www/projector.html deleted file mode 100644 index 7366521..0000000 --- a/www/projector.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - Scoreboard - - - - - - - - - diff --git a/www/fonts/MicroFLF-Bold.ttf b/www/res/MicroFLF-Bold.ttf similarity index 100% rename from www/fonts/MicroFLF-Bold.ttf rename to www/res/MicroFLF-Bold.ttf diff --git a/www/fonts/MicroFLF-BoldItalic.ttf b/www/res/MicroFLF-BoldItalic.ttf similarity index 100% rename from www/fonts/MicroFLF-BoldItalic.ttf rename to www/res/MicroFLF-BoldItalic.ttf diff --git a/www/fonts/MicroFLF-Italic.ttf b/www/res/MicroFLF-Italic.ttf similarity index 100% rename from www/fonts/MicroFLF-Italic.ttf rename to www/res/MicroFLF-Italic.ttf diff --git a/www/fonts/MicroFLF.css b/www/res/MicroFLF.css similarity index 100% rename from www/fonts/MicroFLF.css rename to www/res/MicroFLF.css diff --git a/www/fonts/MicroFLF.ttf b/www/res/MicroFLF.ttf similarity index 100% rename from www/fonts/MicroFLF.ttf rename to www/res/MicroFLF.ttf diff --git a/www/res/luna-moth.png b/www/res/luna-moth.png new file mode 100644 index 0000000..0e34114 Binary files /dev/null and b/www/res/luna-moth.png differ diff --git a/www/res/luna-moth.svg b/www/res/luna-moth.svg new file mode 100644 index 0000000..337ce04 --- /dev/null +++ b/www/res/luna-moth.svg @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + Openclipart + + + + 2012-05-15T03:53:14 + luna moth, moon, night, butterfly + https://openclipart.org/detail/170025/papillon-lune-by-presquesage + + + presquesage + + + + + butterfly + luna moth + lune + moon + night + nuit + papillon + + + + + + + + + + + diff --git a/www/fonts/maven_pro.css b/www/res/maven_pro.css similarity index 100% rename from www/fonts/maven_pro.css rename to www/res/maven_pro.css diff --git a/www/fonts/maven_pro_black-webfont.eot b/www/res/maven_pro_black-webfont.eot similarity index 100% rename from www/fonts/maven_pro_black-webfont.eot rename to www/res/maven_pro_black-webfont.eot diff --git a/www/fonts/maven_pro_black-webfont.svg b/www/res/maven_pro_black-webfont.svg similarity index 100% rename from www/fonts/maven_pro_black-webfont.svg rename to www/res/maven_pro_black-webfont.svg diff --git a/www/fonts/maven_pro_black-webfont.ttf b/www/res/maven_pro_black-webfont.ttf similarity index 100% rename from www/fonts/maven_pro_black-webfont.ttf rename to www/res/maven_pro_black-webfont.ttf diff --git a/www/fonts/maven_pro_black-webfont.woff b/www/res/maven_pro_black-webfont.woff similarity index 100% rename from www/fonts/maven_pro_black-webfont.woff rename to www/res/maven_pro_black-webfont.woff diff --git a/www/fonts/maven_pro_bold-webfont.eot b/www/res/maven_pro_bold-webfont.eot similarity index 100% rename from www/fonts/maven_pro_bold-webfont.eot rename to www/res/maven_pro_bold-webfont.eot diff --git a/www/fonts/maven_pro_bold-webfont.svg b/www/res/maven_pro_bold-webfont.svg similarity index 100% rename from www/fonts/maven_pro_bold-webfont.svg rename to www/res/maven_pro_bold-webfont.svg diff --git a/www/fonts/maven_pro_bold-webfont.ttf b/www/res/maven_pro_bold-webfont.ttf similarity index 100% rename from www/fonts/maven_pro_bold-webfont.ttf rename to www/res/maven_pro_bold-webfont.ttf diff --git a/www/fonts/maven_pro_bold-webfont.woff b/www/res/maven_pro_bold-webfont.woff similarity index 100% rename from www/fonts/maven_pro_bold-webfont.woff rename to www/res/maven_pro_bold-webfont.woff diff --git a/www/fonts/maven_pro_medium-webfont.eot b/www/res/maven_pro_medium-webfont.eot similarity index 100% rename from www/fonts/maven_pro_medium-webfont.eot rename to www/res/maven_pro_medium-webfont.eot diff --git a/www/fonts/maven_pro_medium-webfont.svg b/www/res/maven_pro_medium-webfont.svg similarity index 100% rename from www/fonts/maven_pro_medium-webfont.svg rename to www/res/maven_pro_medium-webfont.svg diff --git a/www/fonts/maven_pro_medium-webfont.ttf b/www/res/maven_pro_medium-webfont.ttf similarity index 100% rename from www/fonts/maven_pro_medium-webfont.ttf rename to www/res/maven_pro_medium-webfont.ttf diff --git a/www/fonts/maven_pro_medium-webfont.woff b/www/res/maven_pro_medium-webfont.woff similarity index 100% rename from www/fonts/maven_pro_medium-webfont.woff rename to www/res/maven_pro_medium-webfont.woff diff --git a/www/fonts/maven_pro_regular-webfont.eot b/www/res/maven_pro_regular-webfont.eot similarity index 100% rename from www/fonts/maven_pro_regular-webfont.eot rename to www/res/maven_pro_regular-webfont.eot diff --git a/www/fonts/maven_pro_regular-webfont.svg b/www/res/maven_pro_regular-webfont.svg similarity index 100% rename from www/fonts/maven_pro_regular-webfont.svg rename to www/res/maven_pro_regular-webfont.svg diff --git a/www/fonts/maven_pro_regular-webfont.ttf b/www/res/maven_pro_regular-webfont.ttf similarity index 100% rename from www/fonts/maven_pro_regular-webfont.ttf rename to www/res/maven_pro_regular-webfont.ttf diff --git a/www/fonts/maven_pro_regular-webfont.woff b/www/res/maven_pro_regular-webfont.woff similarity index 100% rename from www/fonts/maven_pro_regular-webfont.woff rename to www/res/maven_pro_regular-webfont.woff diff --git a/www/res/moth.js b/www/res/moth.js new file mode 100644 index 0000000..dc6430e --- /dev/null +++ b/www/res/moth.js @@ -0,0 +1,12 @@ +// Moth dashboard +// requires: terminal.js + +function start() { + var t = new Terminal(document.getElementById("output")); + + t.par("This is a paragraph, bitches!"); + t.pre("This is pre"); + t.par("Another par"); +} + +window.addEventListener("load", start); diff --git a/www/scoreboard.js b/www/res/scoreboard.js similarity index 100% rename from www/scoreboard.js rename to www/res/scoreboard.js diff --git a/www/res/style.css b/www/res/style.css new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/www/res/style.css @@ -0,0 +1 @@ + diff --git a/www/res/terminal.js b/www/res/terminal.js new file mode 100644 index 0000000..cf2a8ac --- /dev/null +++ b/www/res/terminal.js @@ -0,0 +1,71 @@ +function tx(element, text, bps) { + var drawTimer; + + var sp = false; + function draw() { + c = text[0]; + if ((c == " ") || (c == "\n")) { + sp = true; + c = " "; + } else if (sp) { + c = " " + c; + sp = false; + } + element.textContent += c; + text = text.substr(1); + if (text == "") { + clearInterval(drawTimer); + return; + } + } + + // N81 uses 1 stop bit, and 1 parity bit. + // That works out to exactly 10 bits per byte. + msec = 10000 / bps; + + drawTimer = setInterval(draw, msec); + draw(); +} + +function Terminal(target, bps) { + bps = bps || 1200; + + var outq = []; + var outTimer; + + function drawElement() { + var next = outq.shift(); + var out = document.createElement(next[0]); + + target.appendChild(out); + tx(out, next[1], bps); + + if (outq.length == 0) { + clearInterval(outTimer); + } + } + + this.enqueue = function(tag, txt) { + outq.push([tag, txt]); + if (! outTimer) { + outTimer = setInterval(drawElement, 150); + } + } + + this.par = function(txt) { + this.enqueue("p", txt); + } + + this.pre = function(txt) { + this.enqueue("pre", txt); + } +} + +// +// Usage: +// +// var e = Terminal(document.getElementById("output")); +// e.output("This is a paragraph. It has sentences."); +// e.output("This is a second paragraph."); +// + diff --git a/www/style.css b/www/style.css deleted file mode 100644 index 89f52aa..0000000 --- a/www/style.css +++ /dev/null @@ -1,263 +0,0 @@ -/* -Light blue: #96d1e3 -Off-white blue: #b9e0ef -Dark brown: #35170c -Light brown: #432115 -Tan: #e1caa5 -*/ - -@import "fonts/maven_pro.css"; - -html { -/* background: #35170c url(images/tf6bg.png) center top;*/ -/* background-repeat: repeat-x;*/ - background: #35170c url(images/tf6bg.png) no-repeat center center fixed; - -webkit-background-size: cover; - -moz-background-size: cover; - -o-background-size: cover; - background-size: cover; -/* min-height: 100%;*/ - font-family: "Maven Pro", Ubuntu, sans-serif; - overflow-y: auto; -} - -h1, h2, h3 { - color: #AD6F15; - font-family: "Maven Pro", Ubuntu, sans-serif; - font-weight: bold; -} - -body > h1:first-child { - color: #96d1e3; - font-size: 3em; - border-radius: 0.2em; - padding: 0 0.3em; - text-align: center; - max-width: 66%; - margin: 0.5em auto; -} - -body > h1:first-child img { - max-width: 66%; -} - -.readme, pre { - background-color: #FFDAA3; - border-radius: 0.5em; -} - - - - - - -input { - font-family: "Maven Pro", Ubuntu, sans-serif; -} - -a { - color: #432115; - text-decoration: underline; -} - -a:hover { - color: #9E1336; -} - -a img { - border: 0px; -} - -pre { - border: solid #ddc 2px; - padding: 0.25em; - font-family: "Ubuntu Mono", monospace; - overflow: auto; -} - -code, kbd, samp { - font-family: "Ubuntu Mono", monospace; -} - - -th { - vertical-align: top; - text-align: center; -} -td { - vertical-align: top; - text-align: left; -} - -dt { - font-weight: bold; -} - -p { - line-height: 1.4em; - margin-bottom: 20px; -} - -hr { - border: 1px solid #ddc; -} - -#prompt { - color: #0E7450; - border-radius: 0.2em; -} - -#cli { - background: rgba(14, 116, 80, 0.2); - color: #00120C; - width: 100%; - border: 0px; - padding: 0.1em 0.1em; -} - -#readme img { - max-width: 100%; - transition: all .2s ease; -} - -#readme img:hover { - transform: scale(1.5); -} - -/**** Section ****/ - -section, nav, address { - color: #35170c; - max-width: 35em; - border-radius: 0.6em; - margin: 1em auto; - padding: 0.5em; -} - -section, address { - background: #e1caa5; -} - -/*** navigation bar ***/ - -nav { - background: #b9e0ef; -} - -nav h2 { - display: none; -} - -nav ul { - list-style: none; - text-align: center; - padding: 0; -} - -nav li { - display: inline; -} - -nav li a { - text-transform: lowercase; - font-size: 0.9em; -} - -nav li + li:before { - content: " | "; -} - -#sponsors { - background: #b9e0ef; - text-align: center; - opacity: 0.8; -} - -#sponsors img { - max-width: 33%; - max-height: 5em; - margin: 1em; -} - - -/**** Terminal ****/ - -#terminal { - padding: 10px; - max-width: 35em; - margin: 1em auto; - border-radius: 1em; - -} - -#terminal #output { - max-height: 20em; - overflow-y: scroll; -} - -#terminal #output::-webkit-scrollbar -{ - width: 0.7em; -} - -#terminal #output::-webkit-scrollbar-track -{ - border-radius: 0.7em; - background-color: rgba(173, 111, 21, 0.4); -} - -#terminal #output::-webkit-scrollbar-thumb -{ - border-radius: 0.7em; - background-color: #FFDAA3; - border: solid rgba(173, 111, 21, 0.4) 1px; -} - -/**** Scoreboard ****/ - -#scoreboard { - width: 100%; - clear: both; - background: rgba(25, 0, 6, 0.8); - border-radius: 2em; -} - -#scoreboard span { - font-size: 75%; - display: inline-block; - margin: 0; - border: 0; - overflow: hidden; - height: 2.2em; -} - -#scoreboard .teamname { - font-size: 133%; - color: #D84B6E; - opacity: 0.8; - position: absolute; - right: 1em; - height: 1.1em; -} - -#scoreboard div * {white-space: nowrap;} -.cat0, .cat8, .cat16 {background-color: #a6cee3; color: black;} -.cat1, .cat9, .cat17 {background-color: #1f78b4; color: white;} -.cat2, .cat10, .cat18 {background-color: #b2df8a; color: black;} -.cat3, .cat11, .cat19 {background-color: #33a02c; color: white;} -.cat4, .cat12, .cat20 {background-color: #fb9a99; color: black;} -.cat5, .cat13, .cat21 {background-color: #e31a1c; color: white;} -.cat6, .cat14, .cat22 {background-color: #fdbf6f; color: black;} -.cat7, .cat15, .cat23 {background-color: #ff7f00; color: black;} - - -.wide { - max-width: inherit; -} - -.figure { - margin: 0.5em 1em; - float: right; - font-size: small; - text-align: center; -} diff --git a/www/terminal.js b/www/terminal.js deleted file mode 100644 index 12c5d37..0000000 --- a/www/terminal.js +++ /dev/null @@ -1,54 +0,0 @@ -var baud = 1200; - -function tx(element, text, baud_) { - var drawTimer; - baud_ = baud_ || baud; - - var sp = false; - function draw() { - c = text[0]; - if ((c == " ") || (c == "\n")) { - sp = true; - c = " "; - } else if (sp) { - c = " " + c; - sp = false; - } - element.textContent += c; - text = text.substr(1); - if (text == "") { - clearInterval(drawTimer); - return; - } - } - - // N81 uses 1 stop bit, and 1 parity bit. - // That works out to exactly 10 bits per byte. - msec = 10000 / baud_; - - drawTimer = setInterval(draw, msec); - draw(); -} - - -var outq = []; -var outTimer; - -function drawPar() { - oute = document.getElementById("output"); - outp = document.createElement("p"); - - oute.appendChild(outp); - tx(outp, outq.shift()); - if (outq.length == 0) { - clearInterval(outTimer); - } -} - -function output(par) { - outq = outq.concat(par); - if (! outTimer) { - outTimer = setInterval(drawPar, 150); - } -} -