forked from webex/EmbeddedAppKitchenSink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (60 loc) · 2.85 KB
/
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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>HOST - Embedded Apps Kitchen Sink</title>
<!-- Import the app's stylesheet -->
<link rel="stylesheet" href="./style.css" />
<script src="https://binaries.webex.com/static-content-pipeline/webex-embedded-app/v1/webex-embedded-app-sdk.js" defer></script>
<!-- Import the app's javascript file -->
<script src="./index.js" defer></script>
</head>
<body>
<div>
<h2>Embedded App Kitchen Sink</h2>
<div>
You're the HOST... On this page you will configure the embedded application and launch it for everyone. This sample application shows how to utilize the Webex Embedded App Emulator Framework to build an app. <a href="https://github.com/WebexSamples/EmbeddedAppSample">Click Here</a> to see the source.
</div>
<h4>Launch the embedded app to participants</h4>
<div>
<input id="shareUrl" placeholder="URL to open on participant" size="45" value="https://webexsamples.github.io/EmbeddedAppSample/participant.html" />
</div>
<div>
<button onclick="handleSetShare()">setShareUrl()</button>
<button onclick="handleClearShare()">clearShareUrl()</button>
</div>
<h4>Methods</h4>
<button onclick="handleGetUser()">getUser()</button>
<button onclick="handleGetMeeting()">getMeeting()</button>
<button onclick="handleGetSpace()">getSpace()</button>
<button onclick="handleDisplayAppInfo()">Log Application Object</button>
<h3>Storage Choices</h3>
<div>
<h4>Cookies!</h4>
<input id="cookieField" placeholder="Enter a cookie value"><br/><br/>
<button onclick="handleSetCookie()">Set Cookie</button>
<button onclick="handleGetCookie()">Get Cookie</button>
<button onclick="handleClearCookie()">Clear Cookie</button>
</div>
<div>
<h4>localStorage!</h4>
<input id="localField" placeholder="Enter a localStorage value"><br/><br/>
<button onclick="handleSetLocalStorage()">Set localStorage</button>
<button onclick="handleGetLocalStorage()">Get localStorage</button>
<button onclick="handleClearLocalStorage()">Clear localStorage</button>
</div>
<div>
<h4>sessionStorage!</h4>
<input id="sessionField" placeholder="Enter a sessionStorage value"><br/><br/>
<button onclick="handleSetSessionStorage()">Set sessionStorage</button>
<button onclick="handleGetSessionStorage()">Get sessionStorage</button>
<button onclick="handleClearSessionStorage()">Clear sessionStorage</button>
</div>
</div>
<h4>Recent Event Logs</h4>
<div>
<ul id="console" />
</div>
</body>
</html>