You are here

tawk-to.html.twig in Tawk.to - Live chat application (Drupal 8) 8.2

Same filename and directory in other branches
  1. 8 templates/tawk-to.html.twig
<!--Start of Tawk.to Script-->
<script type="text/javascript">
  var Tawk_API=Tawk_API||{};
  Tawk_API.visitor = {
    name: "{{ items.user_name }}",
    email: "{{ items.user_email }}",
  };
  var $_Tawk_LoadStart = new Date();
  (function () {
    var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
    s1.async = true;
    {% autoescape false %}
    s1.src = "{{ items.embed_url }}/{{ items.page_id }}/{{ items.widget_id }}";
    {% endautoescape %}
    s1.charset = "UTF-8";
    s1.setAttribute("crossorigin", "*");
    s0.parentNode.insertBefore(s1, s0);
  })();
</script>
<!--End of Tawk.to Script-->

File

templates/tawk-to.html.twig
View source
  1. <!--Start of Tawk.to Script-->
  2. <script type="text/javascript">
  3. var Tawk_API=Tawk_API||{};
  4. Tawk_API.visitor = {
  5. name: "{{ items.user_name }}",
  6. email: "{{ items.user_email }}",
  7. };
  8. var $_Tawk_LoadStart = new Date();
  9. (function () {
  10. var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
  11. s1.async = true;
  12. {% autoescape false %}
  13. s1.src = "{{ items.embed_url }}/{{ items.page_id }}/{{ items.widget_id }}";
  14. {% endautoescape %}
  15. s1.charset = "UTF-8";
  16. s1.setAttribute("crossorigin", "*");
  17. s0.parentNode.insertBefore(s1, s0);
  18. })();
  19. </script>
  20. <!--End of Tawk.to Script-->