-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput-practice.html
39 lines (29 loc) · 919 Bytes
/
input-practice.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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=\, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<app-custom-input label="UserName"></app-custom-input>
<input type="text">
<app-custom-form ></app-custom-form>
<script type="module" src="./src/input-practice.js"></script>
<script type="module" src="./src/basic-form-practice.js"></script>
<script>
const test = () => {
console.log("test");
}
document.addEventListener('input', eve => {
console.log(eve.target);
});
document.addEventListener('input-element',eve => {
console .log("event form input", eve.target, eve.detail)
});
document.addEventListener('button-clicked', eve => {
console.log("event captured")
})
</script>
</body>
</html>