Skip to content

Commit 2f7cdcb

Browse files
committed
cleaned up lib.html
1 parent b31e7f2 commit 2f7cdcb

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed

test/lib.html

-35
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,6 @@
22
<html>
33
<head>
44
<script src="../index.js"></script>
5-
<script>
6-
this.onload = () => {
7-
function onsubmit(e) {
8-
e.preventDefault();
9-
console.log('not working')
10-
}
11-
function check(form) {
12-
return form.children.length === 2 &&
13-
/input/i.test(form.children[0].nodeName) &&
14-
/input/i.test(form.children[1].nodeName)
15-
}
16-
hyperHTML.bind(document.body)`${[
17-
hyperHTML.wire()`
18-
<form onsubmit=${onsubmit}>
19-
<input type="email" placeholder="email">
20-
<button>Button</button>
21-
</form>`,
22-
hyperHTML.wire()`
23-
<form onsubmit=${onsubmit}>
24-
<input type="email" placeholder="email"/>
25-
<button>Button</button>
26-
</form>`,
27-
hyperHTML.wire()`
28-
<form onsubmit="${onsubmit}">
29-
<input type="email" placeholder="email">
30-
<button>Button</button>
31-
</form>`,
32-
hyperHTML.wire()`
33-
<form onsubmit="${onsubmit}">
34-
<input type="email" placeholder="email"/>
35-
<button>Button</button>
36-
</form>`
37-
]}`;
38-
};
39-
</script>
405
</head>
416
<body></body>
427
</html>

0 commit comments

Comments
 (0)