-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesm.html
More file actions
31 lines (28 loc) · 866 Bytes
/
esm.html
File metadata and controls
31 lines (28 loc) · 866 Bytes
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">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>form-repeatable via esm.sh</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<h1>esm.sh CDN sanity check</h1>
<p>
This page loads the component class from <code>esm.sh</code> and
registers it manually.
</p>
<form-repeatable>
<div>
<label for="email-1">Email 1</label>
<input id="email-1" type="email" name="emails[]" />
</div>
</form-repeatable>
<script type="module">
import { FormRepeatableElement } from 'https://esm.sh/@aarongustafson/form-repeatable@1.2.0/form-repeatable.js?bundle&target=es2022';
if (!customElements.get('form-repeatable')) {
customElements.define('form-repeatable', FormRepeatableElement);
}
</script>
</body>
</html>