-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
24 lines (23 loc) · 965 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
<script src="https://rawgit.com/web-animations/web-animations-js/master/web-animations-next-lite.min.js"></script>
<title>Emoji Clap Element</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta charset="UTF-8">
</head>
<body>
<script type="module" src="src/emoji-claps.ts"></script>
<emoji-claps emoji="👏" currentcount="30" maxcount="50" bullets='["😍","🎉","🔥","😆"]' bulletcount="6" prefix="+"></emoji-claps>
<script>
const emojiClaps = document.querySelector('emoji-claps');
emojiClaps.addEventListener('full', () => {
console.log("Full")
})
emojiClaps.addEventListener('click', () => {
console.log('send beacon... current count is', emojiClaps.currentcount)
})
</script>
</body>