Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. <!-- Carrot quest BEGIN -->
  2. <script type="text/javascript">
  3. !function(){function t(t,e){return function(){window.carrotquestasync.push(t,arguments)}}if("undefined"==typeof carrotquest){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//cdn.carrotquest.io/api.min.js",document.getElementsByTagName("head")[0].appendChild(e),window.carrotquest={},window.carrotquestasync=[],carrotquest.settings={};for(var n=["connect","track","identify","auth","oth","onReady","addCallback","removeCallback","trackMessageInteraction"],a=0;a<n.length;a++)carrotquest[n[a]]=t(n[a])}}();
  4.  
  5. var config;
  6. if (location.href.indexOf('/чать url, которая есть только на этой странице/') > -1) {
  7. //если проверять нужно сам домен, то так - if (location.host.split('.').indexOf('часть домена. которая меняется в зависимости от языка - к примеру com')>-1) {
  8. config = {
  9. 'i18n':{
  10. 'thanks': 'Thank you',
  11. 'dialogs_history': 'Conversation history',
  12. 'new_message': 'New message',
  13. 'enter_message': 'Type your message and press Enter',
  14. 'dialogs_zerodata': 'There are no conversations yet. We have never talked before',
  15. 'enter_email': 'Enter your email',
  16. 'enter_phone': 'Enter phone number',
  17. 'leave_email': 'You can leave your email and we will continue this conversation through email:',
  18. 'page_title_new_message': 'New message',
  19. 'privacy_policy': 'Privacy Policy',
  20. 'close': 'Close',
  21. 'button_title_vk': 'Contact us on VK',
  22. 'button_title_viber': 'Contact us on Viber',
  23. 'button_title_telegram': 'Contact us on Telegram',
  24. 'button_title_facebook': 'Contact us on Facebook',
  25. 'bumperText': 'We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. By using this site or clicking I agree, you consent to our use of cookies. You can read our policy <a href="{{privacy-policy-link}}" target="_blank">here</a>.',
  26. 'bumperButton': 'I agree',
  27. 'confirmSubscription': 'I agree <a href="{{subscription-policy}}" target="_blank">with terms of service</a>',
  28. 'appeal': 'You',
  29. 'vote_comment': 'What happened?',
  30. 'vote_text': 'Please rate the operator',
  31. 'vote_thanks': 'Thank you for rating!',
  32. 'web_push': {
  33. 'thanks': 'Thanks for subscribing!',
  34. 'error': 'Sorry, error :(',
  35. 'not_supported': 'Web Push notifications are not supported: :(',
  36. 'time_close': 'The window closes in',
  37. 'page_titel': 'Subscribe!'
  38. }
  39. },
  40. 'settings': {
  41. 'messenger_collapsed_text': "Ask me...",
  42. 'messenger_offline_message': "Тhere are no operators ready to answer now, but you can leave your question, and we will help you during business hours.",
  43. 'messenger_welcome_message': "Ask your question and we will respond. Write to us!"
  44. }
  45. };
  46. };
  47.  
  48. carrotquest.connect("2619-1c764cffbf67a3fbdb652721e9b", config);
  49. </script>
  50. <!-- Carrot quest END -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement