Repository navigation
Expand file tree
/
Copy pathexample.html
More file actions
95 lines (90 loc) · 2.6 KB
/
Copy pathexample.html
File metadata and controls
95 lines (90 loc) · 2.6 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>COIN Support Example</title>
<style>
.center-contents {
display: flex;
align-items: center;
justify-content: center;
}
.waves-effect {
position: relative;
cursor: pointer;
display: inline-block;
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
vertical-align: middle;
z-index: 1;
-webkit-transition: .3s ease-out;
transition: .3s ease-out;
}
.btn {
text-decoration: none;
color: #fff;
background-color: #26a69a;
text-align: center;
letter-spacing: .5px;
-webkit-transition: background-color .2s ease-out;
transition: background-color .2s ease-out;
cursor: pointer;
border: none;
border-radius: 2px;
display: inline-block;
height: 36px;
line-height: 36px;
padding: 0 16px;
text-transform: uppercase;
vertical-align: middle;
-webkit-tap-highlight-color: transparent;
}
.fab, .fas {
font-size: 22px!important;
}
</style>
<link
href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
as="style"
rel="stylesheet"
crossorigin="anonymous"
/>
</head>
<body>
<div id="support-root"></div>
<div class="center-contents" style="height: 100vh">
<button id="support-btn" class="waves-effect btn">Contact Support</button>
</div>
<script>
var process = { env: {} }
</script>
<script src="https://unpkg.com/react@16.12.0/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@16.12.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@xyo-network/tool-zen-support-react@latest/dist/support.js"></script>
<!-- <script src="./dist/support.js"></script> -->
<script>
var supportRoot = document.getElementById('support-root')
var supportBtn = document.getElementById('support-btn')
ZenSupport.renderCoinSupportForm(supportRoot, function (form) {
function openForm () {
form.setOpen(true)
}
function closeForm () {
form.setOpen(false)
}
supportBtn.addEventListener('click', openForm)
return function () {
supportBtn.removeEventListener('click', openForm)
}
}, {
open: true // INITIALLY SET TO OPEN
})
</script>
</body>
</html>