-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-bubble.html
More file actions
59 lines (57 loc) · 2.66 KB
/
test-bubble.html
File metadata and controls
59 lines (57 loc) · 2.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Padyna Bubble Widget</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
background-color: #f5f5f5;
}
.content {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
margin-bottom: 20px;
}
p {
line-height: 1.6;
margin-bottom: 16px;
color: #666;
}
.test-content {
height: 200vh;
color: white;
padding: 40px;
margin: 20px 0;
border-radius: 8px;
}
</style>
</head>
<body>
<div class="content">
<h1>Test Page for Padyna Bubble Widget</h1>
<p>This is a test page to verify that the padyna bubble widget works correctly when embedded on external websites.</p>
<p>The chat bubble should appear in the bottom-right corner of the page. Click on it to open the chat interface.</p>
<div class="test-content">
<h2>Scrollable Content</h2>
<p>This is a long page to test the bubble widget positioning and behavior during scrolling.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
<p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
<script>
(function(){if(!window.PadynaWidget||!window.PadynaWidget._initialized){window.PadynaWidget=window.PadynaWidget||{};window.PadynaWidget.config={embedToken:"embed_zXxw",mode:"bubble",position:"bottom-right",baseUrl:"http://localhost:3001",bubbleSize:"medium",showWelcomePopup:true,showBadge:true,autoOpen:false};const onLoad=function(){const script=document.createElement("script");script.src="http://localhost:3001/embed.js";script.id="padyna-embed-script";script.async=true;document.body.appendChild(script)};if(document.readyState==="complete"||document.readyState==="interactive"){onLoad()}else{window.addEventListener("DOMContentLoaded",onLoad)}}})();
</script>
</body>
</html>