summaryrefslogtreecommitdiff
path: root/static/index.html
diff options
context:
space:
mode:
authorDaniel Hader <[email protected]>2026-05-13 16:55:39 -0500
committerDaniel Hader <[email protected]>2026-05-13 16:55:39 -0500
commit30332cc3b6633f49f0c1ec1f8a7c83922f770d37 (patch)
tree701a61cd95b4664fb3ba5222f133cbb15d8688ec /static/index.html
parentf23c5dbb3b725dc481cc79d5d4096232963250dd (diff)
static serving using tower_httpHEADmain
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html12
1 files changed, 11 insertions, 1 deletions
diff --git a/static/index.html b/static/index.html
index d86f72d..37a831f 100644
--- a/static/index.html
+++ b/static/index.html
@@ -6,6 +6,15 @@
<title>Code Golf Leaderboard</title>
<link rel="stylesheet" href="default.css"/>
<script type="text/javascript">
+ async function fetch_problems() {
+ const response = await fetch("/problem");
+ if (!response.ok) {
+ console.log("ummm");
+ }
+
+ const result = await response.json();
+ console.log(result);
+ }
</script>
</head>
@@ -13,7 +22,8 @@
<div id="layout">
<div id="container">
<div id="holes">
-
+
+ <button onclick="fetch_problems()">Hello</button>
<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>