templates/public.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6.     <meta http-equiv="x-ua-compatible" content="ie=edge">
  7.     <meta name="description" content="">
  8.     <meta name="keywords" content="">
  9.     <meta name="author" content="feelity">
  10.     <title>{% block title %}{% endblock %}</title>
  11.     <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/favicons/apple-touch-icon.png') }}">
  12.     <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/favicons/favicon-32x32.png') }}">
  13.     <link rel="manifest" href="{{ asset('assets/favicons/site.webmanifest') }}">
  14.     <meta name="msapplication-TileColor" content="#ffffff">
  15.     <meta name="theme-color" content="#ffffff">
  16.     <meta name="robots" content="noindex">
  17.     <meta name="googlebot" content="noindex">
  18.     <link rel="stylesheet" href="{{ asset('assets/css/style.css?=v1.0.6') }}">
  19.     <link rel="stylesheet" href="{{ asset('assets/css/custom_style.css?=v1.0.6') }}">
  20.     {% block stylesheets %}{% endblock %}
  21.     <!-- endbuild -->
  22. </head>
  23. <body class="disableAllAnimation {% block body_class %}{% endblock %}">
  24. <div class="main ">
  25.     <!-- NAVBAR MOBILE-->
  26.     <div class="mask"></div>
  27.     <div class="sidenav">
  28.         <ul class="">
  29.             <li class="nav-item {% if app.request.attributes.get('_route') == 'main' %} is-active{% endif %}">
  30.                 <a class="nav-link" href="{{ path("main") }}">
  31.                 {% trans %}nav.helpAndServices{% endtrans %}
  32.                 </a>
  33.             </li>
  34.             <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_create' %} is-active{% endif %}">
  35.                 <a class="nav-link" href="{{ path("main_sav_create") }}">
  36.                 {% trans %}nav.requestSupport{% endtrans %}
  37.                 </a>
  38.             </li>
  39.             <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_follow' %} is-active{% endif %}">
  40.                 {% if is_granted('ROLE_PROFESSIONAL') %}
  41.                     <a class="nav-link" href="{{ path("app_professional_account") }}">
  42.                         {% trans %}nav.followMySupport{% endtrans %}
  43.                     </a>
  44.                 {% else %}
  45.                     <a class="nav-link" href="{{ path("main_sav_follow") }}">
  46.                         {% trans %}nav.followSupport{% endtrans %}
  47.                     </a>
  48.                 {% endif %}
  49.             </li>
  50.             <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_product' %} is-active{% endif %}">
  51.                 <a class="nav-link" href="{{ path("main_sav_product") }}">
  52.                 {% trans %}nav.registerProduct{% endtrans %}
  53.                 </a>
  54.             </li>
  55.             <li class="nav-item">
  56.                 <a target="_blank" class="nav-link"
  57.                         {% if is_granted('ROLE_PROFESSIONAL') %} href="https://b2b.racer1927.com/"
  58.                 {% else %} class="nav-link" href="https://www.cebe.com/fr/288-pieces-detachees"
  59.                         {% endif %}>
  60.                     {% trans %}nav.sparePart{% endtrans %}
  61.                 </a>
  62.             </li>
  63.         </ul>
  64.         <div class="d-flex align-items-center justify-content-center mr-3">
  65.             <i class="fas fa-flag mr-1"></i>
  66.             <ul class="list-inline list-unstyled d-flex mb-0 align-items-center">
  67.             {% for locale in locales %}
  68.             <li class="list-inline-item m-0">
  69.                 {% if locale == app.request.locale %}
  70.                 <a class="p-2 text-dark border-0" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
  71.                 {% else %}
  72.                 <a class="p-2 text-dark border-0" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
  73.                 {% endif %}
  74.             </li>
  75.             {% if loop.last %}
  76.             {% else %}
  77.                 <p class="mb-0"> / </p>
  78.             {% endif %}
  79.             {% endfor %}
  80.             </ul>
  81.         </div>
  82.     </div>
  83.     <!-- NAVBAR MOBILE-->
  84.     <!-- NAVBAR -->
  85.     <nav class="navbar navbar-light navbar-expand-xl">
  86.         <div class="nav-content">
  87.             <div class="nav-icon">
  88.                 <span></span>
  89.                 <span></span>
  90.                 <span></span>
  91.                 <span></span>
  92.             </div>
  93.         </div>
  94.         <a class="navbar-brand logo" href="{{ path("main") }}">
  95.             <img src="{{ asset('assets/img/logo-cebe.svg') }}" alt="logo cebe" class="nav__logo-img" />
  96.         </a>
  97.         <div class="collapse navbar-collapse" id="navbarsExampleDefault">
  98.             <ul class="navbar-nav mr-auto">
  99.                 <li class="nav-item {% if app.request.attributes.get('_route') == 'main' %} active{% endif %}">
  100.                     <a class="nav-link" href="{{ path("main") }}">
  101.                         {% trans %}nav.helpAndServices{% endtrans %}
  102.                     </a>
  103.                 </li>
  104.                 <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_create' %} active{% endif %}">
  105.                     <a class="nav-link" href="{{ path("main_sav_create") }}">
  106.                         {% trans %}nav.requestSupport{% endtrans %}
  107.                     </a>
  108.                 </li>
  109.                 <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_follow' %} active{% endif %}">
  110.                     {% if is_granted('ROLE_PROFESSIONAL') %}
  111.                         <a class="nav-link" href="{{ path("app_professional_account") }}">
  112.                             {% trans %}nav.followMySupport{% endtrans %}
  113.                         </a>
  114.                     {% else %}
  115.                         <a class="nav-link" href="{{ path("main_sav_follow") }}">
  116.                             {% trans %}nav.followSupport{% endtrans %}
  117.                         </a>
  118.                     {% endif %}
  119.                 </li>
  120.                 <li class="nav-item {% if app.request.attributes.get('_route') == 'main_sav_product' %} active{% endif %}">
  121.                     <a class="nav-link" href="{{ path("main_sav_product") }}">
  122.                     {% trans %}nav.registerProduct{% endtrans %}
  123.                     </a>
  124.                 </li>
  125.                 <li class="nav-item">
  126.                     <a target="_blank" class="nav-link"
  127.                             {% if is_granted('ROLE_PROFESSIONAL') %} href="https://b2b.racer1927.com/"
  128.                             {% else %} class="nav-link" href="https://www.cebe.com/fr/288-pieces-detachees"
  129.                             {% endif %}>
  130.                         {% trans %}nav.sparePart{% endtrans %}
  131.                     </a>
  132.                 </li>
  133.             </ul>
  134.             <div class="profile">
  135.                 {% if is_granted('ROLE_ADMIN') %}
  136.                     <a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom" data-content="<ul>
  137.                     <li><a href='{{ path('app_sav') }}' target='_self'>{% trans %}nav.admin.profile{% endtrans %}</a></li>
  138.                     <li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
  139.                     </ul>">
  140.                         <i class="fas fa-user"></i>
  141.                         {{ app.user.lastName | upper }} {{ app.user.name }}
  142.                     </a>
  143.                 {% elseif is_granted('ROLE_PROFESSIONAL') %}
  144.                     <a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom" data-content="<ul>
  145.                     <li><a href='{{ path('app_professional_account') }}' target='_self'>{% trans %}nav.pro.profile{% endtrans %}</a></li>
  146.                     <li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
  147.                     </ul>">
  148.                         <i class="fas fa-user"></i>
  149.                         {% trans %}nav.pro.profile.title{% endtrans %} {{ app.user.code }}
  150.                     </a>
  151.                 {% elseif prestashopService.getRacerUser() == null %}
  152.                     <div class="d-flex align-items-center">
  153.                         <div class="d-flex align-items-center mr-3">
  154.                         <i class="fas fa-flag"></i>
  155.                         <ul class="list-inline list-unstyled d-flex mb-0">
  156.                         {% for locale in locales %}
  157.                             <li class="list-inline-item m-0">
  158.                                 {% if locale == app.request.locale %}
  159.                                     <a class="text-dark p-3" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
  160.                                 {% else %}
  161.                                     <a class="text-dark p-3 font-weight-normal" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
  162.                                 {% endif %}
  163.                             </li>
  164.                             {% if loop.last %}
  165.                             {% else %}
  166.                                 <p class="mb-0">/</p>
  167.                             {% endif %}
  168.                         {% endfor %}
  169.                         </ul>
  170.                         </div>
  171.                         <a href="#" class="btn" data-container="body" data-sanitize="false" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
  172.                         data-content=
  173.                             "<ul>
  174.                                 <li><a href='{{ path('app_check_client_account') }}' id='connectToClient'>{% trans %}nav.client{% endtrans %}</a></li>
  175.                                 <li><a href='{{ path('app_check_client_professional_account') }}' id='connectToProfessional'>{% trans %}nav.professional{% endtrans %}</a></li>
  176.                             </ul>
  177.                             "
  178.                         >
  179.                             <i class="fas fa-user"></i>
  180.                             {% trans %}nav.login{% endtrans %}
  181.                         </a>
  182.                         <a class="d-none" href='{{ path('app_check_client_account') }}' modal-target='#lockModal' id='connectToClientOpener'></a>
  183.                         <a class="d-none" href='{{ path('app_check_client_professional_account') }}' modal-target='#lockModal' id='connectToProOpener'></a>
  184.                     </div>
  185.                 {% else %}
  186.                     <a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
  187.                     data-content=
  188.                         "<ul>
  189.                             <li><a href='{{ path('app_check_client_account_logout') }}' target='_self'>{% trans %}Me déconnecter{% endtrans %}</a></li>
  190.                         </ul>"
  191.                     >
  192.                         <i class="fas fa-user"></i>
  193.                         {{ prestashopService.getRacerUser().name }}
  194.                     </a>
  195.                 {% endif %}
  196.             </div>
  197.         </div>
  198.         <div class="profile mobile">
  199.             {% if is_granted('ROLE_ADMIN') %}
  200.                 <a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
  201.                 data-content=
  202.                     "<ul>
  203.                         <li><a href='{{ path('app_sav') }}' target='_self'>{% trans %}nav.admin.profile{% endtrans %}</a></li>
  204.                         <li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}Me déconnecter{% endtrans %}</a></li>
  205.                     </ul>"
  206.                 >
  207.                     <i class="fas fa-user"></i>
  208.                 </a>
  209.              {% elseif is_granted('ROLE_PROFESSIONAL') %}
  210.                 <a href="#" class="btn" data-container="body" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
  211.                     data-content=
  212.                         "<ul>
  213.                             <li><a href='{{ path('app_professional_account') }}' target='_self'>{% trans %}nav.pro.profile{% endtrans %}</a></li>
  214.                             <li><a href='{{ path('app_logout') }}' target='_self'>{% trans %}nav.logout{% endtrans %}</a></li>
  215.                         </ul>"
  216.                     >
  217.                         <i class="fas fa-user"></i>
  218.                 </a>
  219.               {% else %}
  220.                 <a href="#" class="btn" data-container="body" data-sanitize="false" data-toggle="popover" data-html="true" data-trigger="focus" data-placement="bottom"
  221.                     data-content=
  222.                         "<ul>
  223.                             <li><a href='{{ path('app_check_client_account') }}' id='connectToClient'>{% trans %}nav.client{% endtrans %}</a></li>
  224.                             <li><a href='{{ path('app_check_client_professional_account') }}' id='connectToProfessional'>{% trans %}nav.professional{% endtrans %}</a></li>
  225.                         </ul>"
  226.                     >
  227.                         <i class="fas fa-user"></i>
  228.                 </a>
  229.                 <a class="d-none" href='{{ path('app_check_client_account') }}' modal-target='#lockModal' id='connectToClientOpener'></a>
  230.                 <a class="d-none" href='{{ path('app_check_client_professional_account') }}' modal-target='#lockModal' id='connectToProOpener'></a>
  231.             {% endif %}
  232.         </div>
  233.     </nav>
  234.     <!-- NAVBAR -->
  235.     <div class="wrapper">
  236.         {% block body %}{% endblock %}
  237.     </div>
  238.     {% block modals %}{% endblock %}
  239.    <div class="modal fade block__modal" id="mainModal" tabindex="-1" role="dialog" aria-labelledby="modal upload files" aria-hidden="true">
  240.         <div class="modal-dialog" role="document">
  241.             <div class="modal-content">
  242.             </div>
  243.         </div>
  244.     </div>
  245.     <div class="modal fade block__modal" id="lockModal" tabindex="-1" data-backdrop="static" role="dialog" aria-labelledby="modal upload files" aria-hidden="true">
  246.         <div class="modal-dialog" role="document">
  247.             <div class="modal-content">
  248.             </div>
  249.         </div>
  250.     </div>
  251.     <!-- FOOTER -->
  252.     <footer>
  253.         <div class="container">
  254.             <div class="row">
  255.                 <div class="col-12 col-lg-4">
  256.                     <a href="https://www.cebe.com/{{ app.request.locale }}/" class="button back" target="_blank">
  257.                         <i class="far fa-arrow-left"></i>
  258.                         {% trans %}footer.backToShop{% endtrans %}
  259.                     </a>
  260.                     <a class="brand" href="{{ path('main') }}">
  261.                         <img src="{{ asset('assets/img/logo-cebe.svg') }}" alt="logo cebe" class="footer__logo-img">
  262.                     </a>
  263.                     <ul class="row mt-4 justify-content-xl-start justify-content-center">
  264.                         {% for locale in locales %}
  265.                         <li>
  266.                             {% if locale == app.request.locale %}
  267.                             <a class="p-2" href="{{ path('main', {'_locale': locale}) }}" target="_self" ><u><b>{{locale}}</b></u></a>
  268.                             {% else %}
  269.                             <a class="p-2" href="{{ path('main', {'_locale': locale}) }}" target="_self" >{{locale}}</a>
  270.                             {% endif %}
  271.                         </li>
  272.                         {% endfor %}
  273.                     </ul>
  274.                 </div>
  275.                 <div class="col-12 col-lg-4">
  276.                     <p class="title">{% trans %}brand.title{% endtrans %}</p>
  277.                     <ul>
  278.                         <li><a href="{{ path("main") }}" target="_self">{% trans %}nav.ourEngagements{% endtrans %}</a></li>
  279.                         <li><a href="{{ path("main_sav_create") }}" target="_self">{% trans %}nav.requestSupport{% endtrans %}</a></li>
  280.                         <li><a href="{{ path("main_sav_product") }}" target="_self">{% trans %}nav.registerProduct{% endtrans %}</a></li>
  281.                     </ul>
  282.                 </div>
  283.                 <div class="col-12 col-lg-4">
  284.                     <p class="title">{% trans %}footer.contact{% endtrans %}</p>
  285.                     <ul>
  286.                         <li>1 Rue de la Forge, 13300 Salon-de-Provence</li>
  287.                         <li><a href="mailto:sav@cebe.com" target="_self">sav@cebe.com</a></li>
  288.                     </ul>
  289.                 </div>
  290.             </div>
  291.             <div class="row subFooter">
  292.                 <ul>
  293.                     <li>© CÉBÉ</li>
  294.                     <li><a href="https://www.cebe.com/{{ app.request.locale }}/content/3-conditions-generales" target="_self">{% trans %}footer.terms{% endtrans %}</a></li>
  295.                 </ul>
  296.             </div>
  297.         </div>
  298.     </footer>
  299.     <!-- FOOTER -->
  300.     <!-- Optional JavaScript -->
  301.     <!-- jQuery first, then Popper.js, then Bootstrap JS -->
  302.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  303.     <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
  304.     <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
  305.     <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.10.4/polyfill.min.js" integrity="sha512-pgx+g4+yrNG/DhUEosN7ontsnk2WayfSuK1Fmy2GrqNi8ktUpIlTpKj80dCLyoEELA6c6m5otWP9RM/lq5UTQg==" crossorigin="anonymous"></script>
  306.     <script type="text/javascript" src="{{ asset('assets/dropzone/dropzone.js') }}"></script>
  307.     <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js" integrity="sha512-qTXRIMyZIFb8iQcfjXWCO8+M5Tbc38Qi5WzdPOYZHIlZpzBHG3L3by84BBBOiRGiEb7KKtAOAs5qYdUiZiQNNQ==" crossorigin="anonymous"></script>
  308.     <script src="{{ asset('assets/js/slick.js') }}"></script>
  309.     <script src="{{ asset('assets/js/script.js?=v1.0.6') }}"></script>
  310. </div>
  311. <script type="text/javascript">
  312.     var myDefaultWhiteList = $.fn.popover.Constructor.Default.whiteList;
  313.     myDefaultWhiteList.a = ['modal-target', 'href', 'target', 'data'];
  314.     const dropdownElementList = document.querySelectorAll('.dropdown-toggle')
  315.     const dropdownList = [...dropdownElementList].map(dropdownToggleEl => new bootstrap.Dropdown(dropdownToggleEl))
  316.     const alerts = document.querySelectorAll('[id^="alert-"]');
  317.     if (alerts.length > 0) {
  318.         setTimeout(() => {
  319.             $(".alert").alert('close')
  320.         }, 6000)
  321.     }
  322.     var modal = {
  323.         loadAndOpen: function(linkObj){
  324.             $.get(linkObj.attr("href"), function (data) {
  325.                 $(linkObj.attr("modal-target")).find(".modal-content").html(data);
  326.                 $(linkObj.attr("modal-target")).modal('show');
  327.                 $(linkObj.attr("modal-target")).find(".modal-content").find("[jqueryready]").each(function(){
  328.                     eval($(this).attr("jqueryready"));
  329.                 });
  330.                 $(linkObj.attr("modal-target")).find("[data-init-plugin='select2']").each(function(){
  331.                     $(this).find("[value='']").text($(this).attr("placeholder"));
  332.                     $(this).select2({ width: '100%' });
  333.                 });
  334.                 $(linkObj.attr("modal-target")).find('.cdgahead').each(function () {
  335.                     cdgaheadinit($(this));
  336.                 });
  337.             }).fail(function (xhr, status, error) {
  338.                 document.location.href = document.location.reload();
  339.             });
  340.         },
  341.         findModalForm: function(obj){
  342.             return obj.closest(".modal-content").find("form");
  343.         },
  344.         submitAndRedirectIfSuccess: function (form) {
  345.             var url = form.attr("action");
  346.             $.post(url, form.serialize(), function (data, textStatus, xhr) {
  347.                 if (xhr.status == 202) {
  348.                     form.closest(".modal").modal("hide");
  349.                     setTimeout(function () {
  350.                         const redirectUrlItemKey = localStorage.getItem('cebe-sav-redirect-url')
  351.                         if (redirectUrlItemKey) {
  352.                             const item = JSON.parse(redirectUrlItemKey)
  353.                             window.location.assign(item.path)
  354.                         } else {
  355.                             document.location.reload();
  356.                         }
  357.                     }, 400);
  358.                     return;
  359.                 }
  360.                 var modalcontent = form.closest(".modal-content");
  361.                 modalcontent.html(data);
  362.                 modalcontent.find("[jqueryready]").each(function(){
  363.                     eval($(this).attr("jqueryready"));
  364.                 });
  365.                 modalcontent.find("[data-init-plugin='select2']").each(function(){
  366.                     $(this).find("[value='']").text($(this).attr("placeholder"));
  367.                     $(this).select2({ width: '100%' });
  368.                 });
  369.                 modalcontent.find('.cdgahead').each(function () {
  370.                     cdgaheadinit($(this));
  371.                 });
  372.             }).fail(function (xhr, status, error) {
  373.                 document.location.href = document.location.reload();
  374.             });
  375.         },
  376.         submitAndClose: function (form) {
  377.             var url = form.attr("action");
  378.             $.post(url, form.serialize(), function (data, textStatus, xhr) {
  379.                 if(xhr.status == 202){
  380.                     form.closest(".modal").modal("hide");
  381.                     return;
  382.                 }
  383.                 var modalcontent = form.closest(".modal-content");
  384.                 modalcontent.html(data);
  385.                 modalcontent.find("[jqueryready]").each(function(){
  386.                     eval($(this).attr("jqueryready"));
  387.                 });
  388.                 modalcontent.find("[data-init-plugin='select2']").each(function(){
  389.                     $(this).find("[value='']").text($(this).attr("placeholder"));
  390.                     $(this).select2({ width: '100%' });
  391.                 });
  392.                 modalcontent.find('.cdgahead').each(function () {
  393.                     cdgaheadinit($(this));
  394.                 });
  395.             });
  396.         },
  397.         submit : function(form, fn) {
  398.             var url = form.attr("action");
  399.             $.post(url, form.serialize(), function (data, textStatus, xhr) {
  400.                 if(xhr.status == 202){
  401.                     form.closest(".modal").modal("hide");
  402.                     form.closest(".modal-backdrop").modal("hide");
  403.                     fn(data);
  404.                     return;
  405.                 }
  406.                 var modalcontent = form.closest(".modal-content");
  407.                 modalcontent.html(data);
  408.                 modalcontent.find("[jqueryready]").each(function(){
  409.                     eval($(this).attr("jqueryready"));
  410.                 });
  411.                 modalcontent.find("[data-init-plugin='select2']").each(function(){
  412.                     $(this).find("[value='']").text($(this).attr("placeholder"));
  413.                     $(this).select2({ width: '100%' });
  414.                 });
  415.                 modalcontent.find('.cdgahead').each(function () {
  416.                     cdgaheadinit($(this));
  417.                 });
  418.             }).fail(function (xhr, status, error) {
  419.             });
  420.         }
  421.     };
  422.     $(document).on('click','a#connectToClient',function(e){
  423.         e.preventDefault()
  424.         $('#connectToClientOpener').click()
  425.     })
  426.     $(document).on('click','a#connectToProfessional',function(e) {
  427.         e.preventDefault()
  428.         const element = document.querySelector('#connectToProfessional')
  429.         if ('redirectUrl' in element.dataset) {
  430.             localStorage.setItem('cebe-sav-redirect-url', JSON.stringify({
  431.                     path: window.location.href + element.dataset.redirectUrl,
  432.                 })
  433.             );
  434.         }
  435.         $('#connectToProOpener').click()
  436.     })
  437.     $(document).ready(function(){
  438.         $("body").removeClass("disableAllAnimation");
  439.         $("[modal-target]").each(function(){
  440.             $(this).click(function(){
  441.                 modal.loadAndOpen($(this));
  442.                 $(this).blur();
  443.                 return false;
  444.             });
  445.         });
  446.     });
  447. </script>
  448.     {% block javascripts %}{% endblock %}
  449. </body>
  450. </html>