forked from MartinSchoeler/external-livechat-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (37 loc) · 1.19 KB
/
index.html
File metadata and controls
40 lines (37 loc) · 1.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
// Function to show an alert
function showAlert() {
alert('Hello! This is a custom alert.');
}
</script>
</head>
<body>
<p>Click the button to show an alert:</p>
<!-- Button to trigger the alert -->
<button onclick="showAlert()">Show Alert</button>
</body>
<!-- Start of Rocket.Chat Livechat Script -->
<script type="text/javascript">
(function(w, d, s, u) {
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = 'http://localhost:3000/livechat/rocketchat-livechat.min.js?_=201903270000';
h.parentNode.insertBefore(j, h);
})(window, document, 'script', 'http://localhost:3000/livechat');
RocketChat(function() {
this.setTheme({
guestBubbleBackgroundColor: 'green',
agentBubbleBackgroundColor: 'pink',
background: 'rebeccapurple',
position: undefined,
hideAgentAvatar: false,
});
});
</script>
</html>