-
Notifications
You must be signed in to change notification settings - Fork 0
/
SP_ash_test.html
40 lines (38 loc) · 1.07 KB
/
SP_ash_test.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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<script>
(function(s,u,r,f,l,y){s[f]=s[f]||{init:function(){s[f].q=arguments}};
l=u.createElement(r);y=u.getElementsByTagName(r)[0];l.async=1;
l.src='https://surfly.com/surfly.js';y.parentNode.insertBefore(l,y);})
(window,document,'script','Surfly');
var settings = {
// Surfly session options can be set here, or at the Company/Plan levels.
widget_key: '5fcef194489542c4955bd04bba041ffb',
private_session: false,
password_required: false,
new_urls_allowed: false,
block_until_agent_joins: false,
start_with_loading_screen: false,
start_with_invite_modal: false,
videochat: true,
start_with_videochat_on: false,
start_with_fullscreen_videochat: false,
videochat_prompt: true
};
Surfly.init(settings, function(initResult) {
if (initResult.success) {
// API calls can now be made!
if (!Surfly.isInsideSession) {
Surfly.button();
}
}
else{
console.log("Surfly was unable to initialize properly.")
}
});
</script>
<body>
</html>