25 lines
No EOL
840 B
HTML
25 lines
No EOL
840 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<my-head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Cozy</title>
|
|
<link rel="stylesheet" href="/prism.css" />
|
|
<script src="/prism.js" defer></script>
|
|
<script server:setup>
|
|
const url = McFly.query.url
|
|
</script>
|
|
</my-head>
|
|
<body>
|
|
<awesome-header>A Cozy test page.</awesome-header>
|
|
<p>
|
|
On this page is a demonstration of form submission handing in McFly. A <code>McFly</code> object is accessible on the page which contains request event properties: path, method, query, body.
|
|
</p>
|
|
<form method="get">
|
|
<input required type="url" name="url" id="url" value={{ url }} />
|
|
<button type="submit">Extract</button>
|
|
</form>
|
|
<code-block language="js">
|
|
{{ McFly }}
|
|
</code-block>
|
|
</body>
|
|
</html> |