Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/** @jsxImportSource npm:hono/jsx */
import { Hono } from "npm:hono";
import { FC } from "npm:hono/jsx";
const app = new Hono();
const StyleTag: FC = ({ css }) => <style dangerouslySetInnerHTML={{ __html: css }}>{}</style>;
const css = `body {
font-family: system-ui, sans-serif;
}
button {
border-radius: .5em;
padding: .25em;
font-size: 1.5em;
line-height: 1;
}`;
app.get("/", c => {
return c.html(
<html>
<head>
<meta charset="utf-8" />
<script
type="module"
src="https://unpkg.com/@github/task-lists-element@latest"
>
</script>
<title>task-lists-element demo</title>
</head>
<body>
<task-lists sortable>
<ul class="contains-task-list">
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
Hubot
</label>
</li>
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
Bender
</label>
</li>
</ul>
<ul>
<li>
Nested
<ul class="contains-task-list">
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
WALL-E
</label>
</li>
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
R2-D2
</label>
<ul class="contains-task-list">
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
Baymax
</label>
</li>
</ul>
</li>
<li class="task-list-item">
<label>
<input type="checkbox" class="task-list-item-checkbox" />
BB-8
</label>
</li>
</ul>
</li>
</ul>
</task-lists>
<pre class="events"></pre>
</body>
</html>,
);
});
export default app.fetch;
nbbaier-tealearthworm.web.val.run
February 21, 2024