-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.html
38 lines (36 loc) · 1.18 KB
/
index2.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
<!DOCTYPE html>
<head>
<title>Zoid / Web Components</title>
<script type="module" src="https://unpkg.com/preact@latest/hooks/dist/hooks.module.js?module"></script>
<script type="module" src="./ui/components/payment/index.js"></script>
<script type="module" src="./ui/components/shipping/index.js"></script>
<style>
body {
font-family: 'Courier New', Courier, monospace;
}
#email, #shipping, #payment {
height: 110px;
width: 400px;
}
.wrapper {
display: flex;
justify-content: space-around;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="wc">
<h1>Web Components</h1>
<paypal-shipping></paypal-shipping>
<script>
document.querySelector('paypal-shipping').setAttribute('auth-token', sessionStorage.getItem('auth-token'));
</script>
<paypal-payment></paypal-payment>
<script>
document.querySelector('paypal-payment').setAttribute('auth-token', sessionStorage.getItem('auth-token'));
</script>
</div>
</div>
</body>
</html>