andreterron-openable_handler.web.val.run
1
2
3
4
5
6
7
8
9
import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown";
import { html } from "https://esm.town/v/stevekrouse/html?v=5";
export default modifyFetchHandler(async (req: Request): Promise<Response> => {
return html(`
<h4>Hello world!</h4>
<style>* { font-family: sans-serif } h4 { text-align: center; margin-top: 32px } html, body { background-color: #ECF7FD }</style>
`);
});
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v27
February 27, 2024