Difference between revisions of "Test LiveChat"
Line 18: | Line 18: | ||
</script> | </script> | ||
</apex:page></html> | </apex:page></html> | ||
+ | ==SnapIn Test== | ||
+ | <html><style type='text/css'> | ||
+ | .embeddedServiceHelpButton .helpButton .uiButton { background-color: #005290; font-family: "Salesforce Sans", sans-serif; } | ||
+ | .embeddedServiceHelpButton .helpButton .uiButton:focus { outline: 1px solid #005290; } | ||
+ | @font-face { | ||
+ | font-family: 'Salesforce Sans'; | ||
+ | src: url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.woff') format('woff'), | ||
+ | url('https://www.sfdcstatic.com/system/shared/common/assets/fonts/SalesforceSans/SalesforceSans-Regular.ttf') format('truetype'); | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <script type='text/javascript' src='https://service.force.com/embeddedservice/5.0/esw.min.js'></script> | ||
+ | <script type='text/javascript'> | ||
+ | var initESW = function(gslbBaseURL) { | ||
+ | embedded_svc.settings.displayHelpButton = true; //Or false | ||
+ | embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US' | ||
+ | |||
+ | //embedded_svc.settings.defaultMinimizedText = '...'; //(Defaults to Chat with an Expert) | ||
+ | //embedded_svc.settings.disabledMinimizedText = '...'; //(Defaults to Agent Offline) | ||
+ | |||
+ | //embedded_svc.settings.loadingText = ''; //(Defaults to Loading) | ||
+ | //embedded_svc.settings.storageDomain = 'yourdomain.com'; //(Sets the domain for your deployment so that visitors can navigate subdomains during a chat session) | ||
+ | |||
+ | // Settings for Live Agent | ||
+ | //embedded_svc.settings.directToButtonRouting = function(prechatFormData) { | ||
+ | // Dynamically changes the button ID based on what the visitor enters in the pre-chat form. | ||
+ | // Returns a valid button ID. | ||
+ | //}; | ||
+ | //embedded_svc.settings.prepopulatedPrechatFields = {}; //Sets the auto-population of pre-chat form fields | ||
+ | //embedded_svc.settings.fallbackRouting = []; //An array of button IDs, user IDs, or userId_buttonId | ||
+ | //embedded_svc.settings.offlineSupportMinimizedText = '...'; //(Defaults to Contact Us) | ||
+ | |||
+ | embedded_svc.settings.enabledFeatures = ['LiveAgent']; | ||
+ | embedded_svc.settings.entryFeature = 'LiveAgent'; | ||
+ | |||
+ | embedded_svc.init('https://cs72.salesforce.com', 'https://na2-dahuasecurity.cs72.force.com/LiveChat', gslbBaseURL, '00D5D0000008lNR', 'DNA_LiveChat', { baseLiveAgentContentURL: 'https://c.la1-c1cs-ukb.salesforceliveagent.com/content', deploymentId: '5725D0000008OOI', buttonId: '5735D0000008OON', baseLiveAgentURL: 'https://d.la1-c1cs-ukb.salesforceliveagent.com/chat', eswLiveAgentDevName: 'EmbeddedServiceLiveAgent_Parent04I5D000000001EUAQ_1644c125987', isOfflineSupportEnabled: true}); };if (!window.embedded_svc) { var s = document.createElement('script'); s.setAttribute('src', 'https://cs72.salesforce.com/embeddedservice/5.0/esw.min.js'); s.onload = function() { initESW(null); }; document.body.appendChild(s); } else { initESW('https://service.force.com'); }</script></html> |
Revision as of 15:09, 29 June 2018
LiveChat Sandbox Test
Let’s start chatting...
Click the big button to start a chat.
SnapIn Test