Skip to content

Commit 2e60917

Browse files
authored
Update wsi.html
1 parent 8696c45 commit 2e60917

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

npachpande/cwc/sdb3/wsi.html

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21,55 +21,13 @@
2121
</style>
2222

2323

24-
<style>
25-
.agentforce-messaging > .agentforce-messaging-frame[class~="initial"],
26-
.agentforce-messaging > .agentforce-messaging-frame[class~="minimized"],
27-
.custom-fab
28-
{
29-
display: none;
30-
}
31-
32-
.custom-fab {
33-
position: fixed;
34-
bottom: 24px;
35-
right: 24px;
36-
}
37-
38-
/* mobile phones (240px-767px) */
39-
@media only screen and (min-width: 15em) and (max-width: 47.9375em) {
40-
/* do not allow background clicks or scrolling on mobile devices when client is maximized */
41-
.prevent-background-scrolling {
42-
overflow: hidden;
43-
cursor: none;
44-
}
45-
}
46-
47-
</style>
48-
49-
5024
<div class="background-container">
5125
<img src="https://esw1234.github.io/wsi.png" alt="Background">
5226
</div>
5327

5428
<button type="button" class="custom-fab" onclick="onCustomFabClick()">my custom fab</button>
5529

5630
<script type="text/javascript">
57-
window.addEventListener("onEmbeddedMessagingReady", (event) => {
58-
document.querySelector(".custom-fab").style.display = "block";
59-
});
60-
window.addEventListener("onEmbeddedMessagingWindowMaximized", (event) => {
61-
document.querySelector(".custom-fab").style.display = "none";
62-
document.body.classList.add("prevent-background-scrolling");
63-
});
64-
65-
window.addEventListener("onEmbeddedMessagingWindowMinimized", (event) => {
66-
document.querySelector(".custom-fab").style.display = "block";
67-
document.body.classList.remove("prevent-background-scrolling");
68-
});
69-
70-
function onCustomFabClick() {
71-
embeddedservice_bootstrap.utilAPI.launchChat();
72-
}
7331
function initEmbeddedMessaging() {
7432
try {
7533
embeddedservice_bootstrap.settings.language = 'en_US'; // For example, enter 'en' or 'en-US'

0 commit comments

Comments
 (0)