templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %} Arcángel GLS Córdoba{% endblock %}
  3. {% block stylesheets %}
  4.     {{ parent() }}
  5.     <link rel="stylesheet" href="{{ asset('assets/css/chatGLS.css') }}">
  6. {% endblock %}
  7. {% block javascripts %}
  8.     <script type="module">
  9.         document.addEventListener("DOMContentLoaded", function() {
  10.             const v = document.createElement('script'), s = document.getElementsByTagName('script')[0];
  11.             v.onload = function () {
  12.                 window.voiceflow.chat.load({
  13.                     verify: { projectID: '665891475102beca9507e96d' },
  14.                     url: 'https://general-runtime.voiceflow.com',
  15.                     versionID: 'production',
  16.                     assistant: {
  17.                         stylesheet: "https://glscordoba.tabulacion.com/assets/css/chatGLS.css"
  18.                     },
  19.                     render: {
  20.                         mode: 'embedded',
  21.                         target: document.getElementById('chat-container')
  22.                     },
  23.                     autostart: true
  24.                 });
  25.             };
  26.             v.src = "https://cdn.voiceflow.com/widget/bundle.mjs";
  27.             v.type = "text/javascript";
  28.             s.parentNode.insertBefore(v, s);
  29.         });
  30.     </script>
  31.     {# <script src="{{ asset('assets/js/respuestas.js') }}"></script> #}
  32. {% endblock %}
  33. {% block body %}
  34.     <div class="app">
  35.         <div id="chat-container" class="app__body"></div>
  36.     </div>
  37.        
  38. {% endblock %}