-
Notifications
You must be signed in to change notification settings - Fork 0
/
customer.html
42 lines (39 loc) · 1.75 KB
/
customer.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
40
41
42
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="src/style.css" />
<title>Cobrowse SDK Demo</title>
<script type="module">
const ZOOM_SDK_KEY = import.meta.env.VITE_ZOOM_SDK_KEY;
(function (r, a, b, f, c, d) { r[f] = r[f] || { init: function () { r.ZoomCobrowseSDKInitArgs = arguments } }; var fragment = a.createDocumentFragment(); function loadJs(url) { c = a.createElement(b); d = a.getElementsByTagName(b)[0]; c["async"] = false; c.src = url; fragment.appendChild(c) } loadJs(`https://us01-zcb.zoom.us/static/resource/sdk/${ZOOM_SDK_KEY}/js`); d.parentNode.insertBefore(fragment, d) })(window, document, "script", "ZoomCobrowseSDK");
</script>
<script type="module" src="/src/customer.js"></script>
</head>
<body>
<div id="app">
<h2>Zoom Cobrowse SDK Demo</h2>
<h1>Acme Bank: Customer Form</h1>
<button id="cb-btn" disabled style="width: 50%; margin-left: auto;">Loading...</button>
<br />
<div style="display: flex; flex-direction: column; gap: 1rem;">
<input type="text" id="name" placeholder="First Name">
<label>will be visible</label>
</div>
<br />
<div style="display: flex; flex-direction: column; gap: 1rem;">
<input type="text" id="name" placeholder="Last Name">
<label>will be visible</label>
</div>
<br />
<div style="display: flex; flex-direction: column; gap: 1rem;">
<input type="text" id="secret" placeholder="Secret" class="hide-me">
<label>Secret will be <b>hidden</b> from the agent</label>
</div>
<br />
<button id="submit" disabled>Submit</button>
</div>
</body>
</html>