-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo.html
More file actions
55 lines (47 loc) · 1.49 KB
/
demo.html
File metadata and controls
55 lines (47 loc) · 1.49 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
<!doctype html>
<html>
<head>
<title>Intergram Demo Page</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<style type="text/css">
body {
background-color: #f0f0f2;
margin: 10px;
padding: 0;
font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.main {
max-width: 600px;
margin: 5em auto;
padding: 50px;
background-color: #fff;
border-radius: 1em;
}
</style>
</head>
<body>
<div class="main">
<h1>Intergram Demo Page</h1>
<p>Free live chat widget linked to your Telegram messenger. </p>
<p><a href="https://github.com/idoco/intergram">More information...</a></p>
</div>
<script>
(function(window) {
var localTime
try {
localTime = 'His local time is ' + new Intl.DateTimeFormat([], { timeZone: 'Asia/Bangkok', hour: 'numeric' }).format(new Date()) + '.'
} catch (error) {
localTime = 'He is in Thailand at the moment.'
}
window.intergramId = 312940879
window.intergramServer = window.location.origin
window.intergramCustomizations = {
autoResponse: 'Looking for Adriaan (this might take a minute). ' + localTime
}
})(window)
</script>
<script src="/js/widget.js"></script>
</body>
</html>