-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
32 lines (24 loc) · 913 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
<!doctype html>
<html>
<head>
<title>Popup Demo</title>
<!-- <link rel="stylesheet" href="/css/aftermarket.css"> -->
</head>
<body>
<script type="module">
import 'https://web3.chainparency.com/components/after-market-popup.js'
</script>
<div>
<button id="popup-button" type="button" onclick="function pop(e) { console.log('pop clicked'); document.querySelector('#popup').show(); }; pop(); return false;">View Certificate</button>
<after-market-popup id="popup" orgID="aHtm782bf4B1so7sCXuj" amID="EMqsuSZXXfsPiPwS0QfL"></after-market-popup>
</div>
<script>
// This way works and the inline way above works
document.querySelector("#popup-button").addEventListener("click", () => {
console.log('click2')
// let pop = document.querySelector("#popup")
// pop.show()
})
</script>
</body>
</html>