Make the live-chat feature & option fully functional - Follow Up Deployment
Browse files- index.html +36 -3
- prompts.txt +2 -1
index.html
CHANGED
|
@@ -382,7 +382,7 @@
|
|
| 382 |
<script>
|
| 383 |
(function(w,d,v3){
|
| 384 |
w.chaportConfig = {
|
| 385 |
-
appId : '
|
| 386 |
visibility: 'hidden',
|
| 387 |
widgetStyle: {
|
| 388 |
primaryColor: '#1652f0',
|
|
@@ -397,16 +397,49 @@
|
|
| 397 |
</script>
|
| 398 |
|
| 399 |
<script>
|
| 400 |
-
// Initialize Chaport
|
| 401 |
window.chaportConfig = {
|
| 402 |
appId: '64f6a4c4e4b0b4a3d4a3b4a3',
|
| 403 |
-
visibility: '
|
| 404 |
widgetStyle: {
|
| 405 |
primaryColor: '#1652f0',
|
| 406 |
darkMode: false
|
| 407 |
}
|
| 408 |
};
|
| 409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 410 |
// Initialize AOS animations
|
| 411 |
AOS.init({
|
| 412 |
duration: 800,
|
|
|
|
| 382 |
<script>
|
| 383 |
(function(w,d,v3){
|
| 384 |
w.chaportConfig = {
|
| 385 |
+
appId : '64f6a4c4e4b0b4a3d4a3b4a3',
|
| 386 |
visibility: 'hidden',
|
| 387 |
widgetStyle: {
|
| 388 |
primaryColor: '#1652f0',
|
|
|
|
| 397 |
</script>
|
| 398 |
|
| 399 |
<script>
|
| 400 |
+
// Initialize Chaport with your app ID
|
| 401 |
window.chaportConfig = {
|
| 402 |
appId: '64f6a4c4e4b0b4a3d4a3b4a3',
|
| 403 |
+
visibility: 'hidden',
|
| 404 |
widgetStyle: {
|
| 405 |
primaryColor: '#1652f0',
|
| 406 |
darkMode: false
|
| 407 |
}
|
| 408 |
};
|
| 409 |
|
| 410 |
+
// Wait for Chaport to load and then show/hide based on user interaction
|
| 411 |
+
function initChaport() {
|
| 412 |
+
if (window.chaport) {
|
| 413 |
+
// Set up event listeners for chat buttons
|
| 414 |
+
const chatButtons = document.querySelectorAll('[onclick*="chaport"]');
|
| 415 |
+
chatButtons.forEach(button => {
|
| 416 |
+
button.onclick = function() {
|
| 417 |
+
window.chaport.q('show');
|
| 418 |
+
};
|
| 419 |
+
});
|
| 420 |
+
|
| 421 |
+
// Listen for Chaport ready event
|
| 422 |
+
window.chaport.on('ready', function() {
|
| 423 |
+
console.log('Chaport live chat is ready');
|
| 424 |
+
});
|
| 425 |
+
|
| 426 |
+
// Listen for chat events
|
| 427 |
+
window.chaport.on('show', function() {
|
| 428 |
+
console.log('Chat window opened');
|
| 429 |
+
});
|
| 430 |
+
|
| 431 |
+
window.chaport.on('hide', function() {
|
| 432 |
+
console.log('Chat window closed');
|
| 433 |
+
});
|
| 434 |
+
} else {
|
| 435 |
+
// Retry initialization if Chaport isn't loaded yet
|
| 436 |
+
setTimeout(initChaport, 100);
|
| 437 |
+
}
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
// Start initialization
|
| 441 |
+
initChaport();
|
| 442 |
+
|
| 443 |
// Initialize AOS animations
|
| 444 |
AOS.init({
|
| 445 |
duration: 800,
|
prompts.txt
CHANGED
|
@@ -4,4 +4,5 @@ Bring the wallet connect option to the top right of the website
|
|
| 4 |
Bring the connect button to the top of the site
|
| 5 |
Add chaport livechat feature to the site
|
| 6 |
Add support live chat option
|
| 7 |
-
Connect the live chat With my Chaport app ID installation code
|
|
|
|
|
|
| 4 |
Bring the connect button to the top of the site
|
| 5 |
Add chaport livechat feature to the site
|
| 6 |
Add support live chat option
|
| 7 |
+
Connect the live chat With my Chaport app ID installation code
|
| 8 |
+
Make the live-chat feature & option fully functional
|