summaryrefslogtreecommitdiff
path: root/static/index.html
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-05-20 22:04:16 -0500
committerDaniel Hader <[email protected]>2026-05-20 22:04:16 -0500
commit92436c8bb9eafcc56219e784f8b374edfb1907a3 (patch)
tree45c9ebc50220414c20700e653cb17dd0c21ec00f /static/index.html
parent74bc939843ae5c35fbd367c1ef0144b6074cfefe (diff)
basic login route with JWT
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/static/index.html b/static/index.html
index 8162ac9..69c19a5 100644
--- a/static/index.html
+++ b/static/index.html
@@ -34,14 +34,23 @@
problem_div.appendChild(description);
}
}
+
+ async function on_load() {
+ const login_anchor = document.createElement("a");
+ login_anchor.innerText = "Login / Register";
+ login_anchor.href="google.com";
+ document.getElementById("login-notice").appendChild(login_anchor);
+
+ }
</script>
</head>
- <body onload="fetch_problems()">
+ <body onload="on_load()">
<div id="layout">
<div id="container">
<div id="content">
-
+ <span id="login-notice"></span>
+
<h1>C&amp;! Code Golf Leaderboard</h1>
<p>In golf, the goal is to get a ball into a hole in as few swings as possible. The goal of code golf is similarly to solve a problem in as few bytes (of source code) as possible. The following is a list of programming challenges. Your task is to try and solve them in Python with as little code as possible measured in bytes.</p>