-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSuitSupply_Demo.html
More file actions
executable file
·56 lines (47 loc) · 3.22 KB
/
SuitSupply_Demo.html
File metadata and controls
executable file
·56 lines (47 loc) · 3.22 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
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0">
</head>
<title> Suit Supply </title>
<body>
<a href=“www.google.com id='someId' style="display: none">ONLINE</a>
<div id ='empty'> </div>
<script type='text/javascript' src='https://service.force.com/lightning/lightning.out.js'></script>
<script type='text/javascript' src='https://service.force.com/embeddedservice/204.0/esw.min.js'></script>
<script type='text/javascript'>
var initESW = function(gslbBaseUrl) {
embedded_svc.settings.avatarImgURL = 'avatar3.png';
embedded_svc.settings.prechatBackgroundImgURL = 'SuitSupplyPC.png';
embedded_svc.settings.waitingStateBackgroundImgURL = 'WaitingState2.png';
embedded_svc.settings.smallCompanyLogoImgURL = 'SFDCLogo-small.png';
embedded_svc.settings.elementForOnlineDisplay = document.getElementById('someId');
embedded_svc.settings.elementForOfflineDisplay = document.getElementById('empty');
//embedded_svc['settings'].extraPrechatFormDetails = [{'label':'FirstName','value':'Peter','transcriptFields':[],'displayToAgent':false}];
embedded_svc.settings.displayHelpButton = false; //Or false
embedded_svc.settings.initialInteractionState = 'PRECHAT'; //Or 'WAITING'
embedded_svc.settings.onlineText = 'Chat with a Stylist'; //(defaults to Chat with an Expert, localized)
embedded_svc.settings.offlineText = 'Stylists Offline'; //(defaults to Agent Offline, localized)
embedded_svc.init('https://servicecloudpm.my.salesforce.com', 'https://d.la.gus.salesforce.com/chat', 'https://c.la.gus.salesforce.com/content', 'https://stanleyhcdf15-14fa5059341.secure.force.com', '572B00000000Ksw', '00DB00000002V3P', '573B00000000S6c', '1.0', gslbBaseUrl, '39.0', 'Suit_Supply_Deployment_Release_Readiness', 'EmbeddedServiceLiveAgent_Parent04IB00000004CFBMA2_159af36e180'); }; if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://servicecloudpm.my.salesforce.com/embeddedservice/1.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s);} else { initESW('https://servicecloudpm.my.salesforce.com'); }</script>
</body>
<!--
embedded_svc.settings.avatarImgURL = 'avatar3.png';
embedded_svc.settings.prechatBackgroundImgURL = 'SuitSupplyPC.png';
embedded_svc.settings.waitingStateBackgroundImgURL = 'WaitingState2.png';
embedded_svc.settings.smallCompanyLogoImgURL = 'SFDCLogo-small.png';
embedded_svc.settings.displayHelpButton = true; //Or false
embedded_svc.settings.initialInteractionState = 'PRECHAT'; //Or 'WAITING'
embedded_svc.settings.onlineText = 'Chat with a Stylist'; //(defaults to Chat with an Expert, localized)
embedded_svc.settings.offlineText = 'Stylists Offline'; //(defaults to Agent Offline, localized)
-->
<style>
.embeddedServiceLiveAgentChatButton .helpButton .uiButton.agentoffline {visibility: hidden}
.embeddedServiceLiveAgentPrechat .startButton {
background: #3376c9;
}
.embeddedServiceLiveAgentChatMessage .visitorContent {
background: #3376c9;
}
.embeddedServiceLiveAgentChatWindow .messageOverlay .messageOverlayTopButton {
background: #3376c9;
}
.embeddedServiceLiveAgentChatButton .uiButton.agentOnline:hover, .uiButton.agentOnline:focus, .uiButton.agentOnline.is-selected {background:#3376c9;}
</style>