-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSophiaESW204Blitz01.html
More file actions
executable file
·44 lines (39 loc) · 1.66 KB
/
SophiaESW204Blitz01.html
File metadata and controls
executable file
·44 lines (39 loc) · 1.66 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
<html>
<h1>Dummy ESW page</h1>
<a href="204_main_custom.html">Navigate to custom styled widget</a>
<br/>
<br/>
<a href="204_main_hidden.html">Navigate to page with hidden widget</a>
<div id="button_goes_here">
</div>
<script src="https://service.force.com/lightning/lightning.out.js"></script>
<script src="https://service.force.com/embeddedservice/204.0/esw.js"></script>
<script>
var initESW = function(gslbBaseUrl) {
embedded_svc.settings.avatarImgURL = '../avatar.png';
embedded_svc.settings.prechatBackgroundImgURL = '../Prechat_image.png';
embedded_svc.settings.waitingStateBackgroundImgURL = '../waitingStateImage.png';
embedded_svc.settings.smallCompanyLogoImgURL = '../1smallCompanyLogoImg.png';
embedded_svc.init('https://na1-blitz01.soma.salesforce.com', 'https://d.la-blitz01.soma.salesforce.com/chat', 'https://d.la-blitz01.soma.salesforce.com/content', 'https://eswperf.blitz01.soma.force.com/perf2',
'572R0000000001i', '00DR00000008hKT', '573R00000000030', '204.0', gslbBaseUrl);
}
if (!window.embedded_svc) {
var s = document.createElement('script');
s.setAttribute('src', 'https://na1-blitz01.soma.salesforce.com/embeddedservice/204.0/esw.js');
s.onload=function(){ initESW(null) };
document.body.appendChild(s);
} else {
initESW('https://service.force.com');
}
</script>
</html>
<style>
#button_goes_here{
width: 100%;
height: 100%;
top: 60px;
margin: 0 auto;
background: url("http://esw1234.github.io/Spotify-large.png") no-repeat;
position: relative;
}
</style>