-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbryan_iframe.html
More file actions
executable file
·39 lines (37 loc) · 2.01 KB
/
bryan_iframe.html
File metadata and controls
executable file
·39 lines (37 loc) · 2.01 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
</head>
<script src="http://b-chu-ltm.internal.salesforce.com:6109/lightning/lightning.out.js"></script>
<script>
var iframeEl = document.createElement('iframe');
var iframeScriptEl = iframeEl.contentWindow.document.createElement('script');
iframeScriptEl.type = "text/javascript";
iframeScriptEl.text = "$Lightning.use('embeddedService:liveAgentSidebarApp', function() {" +
"$Lightning.createComponent('embeddedService:liveAgentSidebar', {" +
"endpointURL : 'http://b-chu-ltm.internal.salesforce.com:8096/chat'," +
"deploymentId : '572xx0000000006'," +
"orgId : '00Dxx0000001gLD'," +
"buttonId : '573xx0000000006'," +
"avatarImgURL : ''," +
"prechatBackgroundImgURL : 'http://i.imgur.com/Ka1Upks.png'," +
"waitingStateBackgroundImgURL : 'http://i.imgur.com/Ka1Upks.png'," +
"chasitorContentServerEndpointURL : 'http://fitbit-1508677ca09-152612ecdc0.localhost.internal.salesforce.com:8095/content'," +
"chasitorSrcURL : ['http://b-chu-ltm.internal.salesforce.com:6109/jslibrary/1446053165000/ui-sfdc-javascript-impl/debug/SfdcCore.js','http://b-chu-ltm.internal.salesforce.com:8095/content/g/js/37.0/chasitor.js']" +
"}, 'button_goes_here');" +
"}, 'http://fitbit-1475b6fa058-14df87572-152612ecdc0.localhost.force.com:6109/help');";
var containerDiv = iframeEl.contentWindow.document.createElement('div');
containerDiv.id = 'button_goes_here';
iframeEl.contentWindow.document.body.appendChild(containerDiv);
iframeEl.contentWindow.document.head.appendChild(iframeScriptEl);
document.getElementById('iframe_goes_here').appendChild(iframeEl);
</script>
<body>
This is a page.
<!--[if IE 11]>
Special instructions for IE 6 here
<![endif]-->
<div id="iframe_goes_here"></div>
</body>
</html>