]> git.cworth.org Git - zombocom-ai/commitdiff
Route /tardis to another page
authorCarl Worth <cworth@cworth.org>
Wed, 21 Dec 2022 03:24:28 +0000 (19:24 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Dec 2022 03:26:33 +0000 (19:26 -0800)
The page is just a placeholder for now, but later we'll put an actual
puzzle here.

index.js
tardis.html [new file with mode: 0644]

index e573fdb7ba89e35ced01b398c4e6d61bcbfdbc38..46b536b854f1d659aede3e621e6e8077c24eca8f 100644 (file)
--- a/index.js
+++ b/index.js
@@ -68,6 +68,18 @@ app.get('/index.html', (req, res) => {
     res.sendFile(__dirname + '/index.html');
 });
 
+app.get('/tardis', (req, res) => {
+    res.sendFile(__dirname + '/tardis.html');
+});
+
+app.get('/tardis/', (req, res) => {
+    res.sendFile(__dirname + '/tardis.html');
+});
+
+app.get('/tardis/index.html', (req, res) => {
+    res.sendFile(__dirname + '/tardis.html');
+});
+
 io.on('connection', (socket) => {
 
     // First things first, tell the client their name (if any)
diff --git a/tardis.html b/tardis.html
new file mode 100644 (file)
index 0000000..2739b94
--- /dev/null
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+  <title>ZOMBO</title>
+  <link href="/zombo.css" rel="stylesheet" type="text/css">
+  <meta name="viewport" content="width=device-width,initial-scale=1">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+  <meta name="HandheldFriendly" content="true">
+</head>
+
+<body>
+  <div id="content">
+
+    <div id="header" align="center">
+      <p>
+        <img src="/images/928785925_A_Van_Gogh_painting_of_the_Tardis.png">
+      </p>
+    </div>
+
+    <p>
+      This tardis is locked. Do you have a sonic screwdriver?
+    </p>
+
+  </div>
+</body>
+</html>