Repository navigation
Expand file tree
/
Copy pathtest-widget.html
More file actions
66 lines (63 loc) · 1.96 KB
/
Copy pathtest-widget.html
File metadata and controls
66 lines (63 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Raven Support Widget Test</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 50px auto;
padding: 20px;
background: #f5f5f5;
}
.test-box {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
}
.status {
margin-top: 20px;
padding: 15px;
border-radius: 5px;
background: #e3f2fd;
border-left: 4px solid #2196f3;
}
</style>
</head>
<body>
<div class="test-box">
<h1>🧪 Raven Support Widget Test</h1>
<p>This page tests if the Raven Support widget is working correctly.</p>
<div class="status">
<strong>Expected behavior:</strong>
<ul>
<li>A chat widget button should appear in the bottom-right corner</li>
<li>Clicking it should open the Raven Support chat</li>
<li>The welcome message should appear</li>
</ul>
</div>
<h2>Test Instructions</h2>
<ol>
<li>Open this page in your browser</li>
<li>Look for the chat widget in the bottom-right corner</li>
<li>Click the widget to open it</li>
<li>You should see: "👋 Welcome to Raven Support! How can I help you?"</li>
</ol>
</div>
<!-- Raven Support Widget -->
<script>
// Configure the widget
window.RAVEN_CONFIG = {
businessId: 'f2939e5f-9367-4110-9113-60748fc2cddb',
apiUrl: 'http://localhost:8000'
};
</script>
<script src="http://localhost:8000/static/raven-widget.js"></script>
</body>
</html>