-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (36 loc) · 872 Bytes
/
index.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=device-width, initial-scale=1.0" />
<title>@eventEmitter</title>
<script type="module" src="/lib/emitter-receiver-element.js"></script>
<style>
:root {
--base-gap: 1.5rem;
}
* {
font-family: Arial, Helvetica, sans-serif;
}
div {
display: flex;
gap: var(--base-gap);
}
emitter-element,
receiver-element {
text-align: center;
}
</style>
</head>
<body>
<h1>@eventEmitter demo</h1>
<p>
Below are two Web Components that communicate with each other using a
custom event called "counter-event".
</p>
<div>
<emitter-element></emitter-element>
<receiver-element></receiver-element>
</div>
</body>
</html>