-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
31 lines (30 loc) · 900 Bytes
/
demo.html
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
<!doctype html>
<html lang="en-ca">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<script type="module">
import { LogFormElement } from "./log-form-element.js";
LogFormElement.define();
</script>
</head>
<body>
<h1><code><log-form></code> element demonstration</h1>
<p>Open up the console in your browser’s developer tools to see the logged submissions.</p>
<log-form>
<form>
<div>
<label for="field-name">Name</label>
<input id="field-name" name="name">
</div>
<div>
<label>
<input id="field-pineapple" type="checkbox" name="pineapple"> Pineapple on pizza?
</label>
</div>
<button>Submit</button>
</form>
</log-form>
</body>
</html>