-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (39 loc) · 1.53 KB
/
index.html
File metadata and controls
46 lines (39 loc) · 1.53 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>My first HTML document</TITLE>
<script>
!function(e,t,n,r){
function s(){
try{
var e;
if((e="string"==typeof this.response?JSON.parse(this.response):this.response).url){
var n=t.getElementsByTagName("script")[0],r=t.createElement("script");
r.async=!0,r.src=e.url,n.parentNode.insertBefore(r,n)
}
}
catch(e){}}var o,p,a,i=[],c=[];e[n]={init:function(){o=arguments;
var e={then:function(t){
return c.push({type:"t",next:t}),e
} ,catch:function(t){return c.push({type:"c",next:t}),e}};
return e},on:function(){
i.push(arguments)},render:function(){p=arguments},destroy:function(){a=arguments}
} ,e.__onWebMessengerHostReady__=function(t){
if(delete e.__onWebMessengerHostReady__,e[n]=t,o)for(var r=t.init.apply(t,o),s=0;s<c.length;s++){
var u=c[s];
r="t"===u.type?r.then(u.next):r.catch(u.next)
} p&&t.render.apply(t,p),a&&t.destroy.apply(t,a);
for(s=0;s<i.length;s++)t.on.apply(t,i[s])};
var u=new XMLHttpRequest;u.addEventListener("load",s),u.open("GET",r+"/loader.json",!0),u.responseType="json",u.send()
}
(window,document,"Bots", "https://gaston-arg.github.io/chatbothtml/static");
</script>
</HEAD>
<BODY>
<body style="background-color:red;">
<script>
Bots.init({appId:'5bf46dde82603a00228b14b2'});
</script>
</BODY>
</HTML>