templates/Frontend/Templates/Partials/foot.html.twig line 1

Open in your IDE?
  1. <!-- Popper -->
  2. <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
  3. <!-- Boostrap -->
  4. <script src="/assets/frontend/thirdparty/bootstrap/js/bootstrap.min.js"></script>
  5. <!-- Cookie consent -->
  6. <script src="/assets/frontend/thirdparty/cookieconsent/js/cookieconsent.min.js" data-cfasync="false"></script>
  7. <script>
  8.     window.cookieconsent.initialise({
  9.         "palette": {
  10.             "popup": {
  11.                 "background": "#aab4b9"
  12.             },
  13.             "button": {
  14.                 "background": "#e45a09"
  15.             }
  16.         },
  17.             "content": {
  18.             "href": "/privacy-policy"
  19.         }
  20.     });
  21. </script>
  22. <script type="text/javascript">
  23.     $(document).ready(function(){
  24.         $(".carousel").carousel();
  25.         // Focus on quote input
  26.         $('.quote-input .form-control').focus(function() {
  27.             $(this).parents('.quote-input').addClass('active');
  28.         });
  29.         // Leave quote input
  30.         $('.quote-input .form-control').focusout(function() {
  31.             $(this).parents('.quote-input').removeClass('active');
  32.         });
  33.         // Handle recaptcha form
  34.         $('[data-action="handle-recaptcha-form"]').click(function(e){
  35.             e.preventDefault();
  36.             let button = $(this);
  37.             grecaptcha.ready(function() {
  38.                 grecaptcha.execute('{{ config_helper.value('recaptcha_sitekey') }}', {action: 'submit'}).then(function(token) {
  39.                     // Embed the token
  40.                     button.parents('form').first().append('<input type="hidden" name="recaptcha_token" value="' + token + '"/>');
  41.                     // Embed the button action
  42.                     button.parents('form').first().append('<input type="hidden" name="' + button.attr("name") + '" value="' + button.attr("value") + '"/>');
  43.                     // Submit the form
  44.                     button.parents('form').first().trigger("submit");
  45.                 });
  46.             });
  47.         });
  48.     })
  49. </script>