Browse Source

Everybody's a critic

Kirk Trombley 3 years ago
parent
commit
288bfcfe6c
1 changed files with 5 additions and 3 deletions
  1. 5 3
      server/app.py

+ 5 - 3
server/app.py

@@ -151,6 +151,8 @@ def get_status():
 
 @app.route("/page")
 def get_page():
+    bg = request.args.get("bg", "111")
+    tc = request.args.get("tc", "ddd")
     return render_template_string("""
     <!DOCTYPE html>
     <html lang="en">
@@ -166,8 +168,8 @@ def get_page():
             -moz-osx-font-smoothing: grayscale;
             margin: 0px 0px 0px 0px;
             padding: 0px 0px 0px 0px;
-            color: #ddd;
-            background-color: #111;
+            color: #{{ tc }};
+            background-color: #{{ bg }};
         }
         .users {
             list-style-type: none;
@@ -190,7 +192,7 @@ def get_page():
         </ul>
     </body>
     </html>
-    """, users=[u.replace(r"\s", " ") for u in get_users()[0]])
+    """, users=[u.replace(r"\s", " ") for u in get_users()[0]], tc=tc, bg=bg)
 
 
 @app.route("/audiobot", methods=["POST"])