File tree 1 file changed +0
-35
lines changed
1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change 2
2
< html >
3
3
< head >
4
4
< 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
- / i n p u t / i. test ( form . children [ 0 ] . nodeName ) &&
14
- / i n p u t / 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 >
40
5
</ head >
41
6
< body > </ body >
42
7
</ html >
You can’t perform that action at this time.
0 commit comments