templates/Default/redirect/layout.html.twig line 1

Open in your IDE?
  1. <html>
  2. <head>
  3.     <title>Redirection</title>
  4.     <meta name="robots" content="noindex">
  5.     <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  6.     {% include 'Default/_seo_gatag.html.twig' %}
  7.     {# @var \App\Service\Client\RedirectParams p #}
  8.     <script>
  9.         var debug = {{ p.debug | json_encode }};
  10.         var data = ["{{p.companyId}}", "{{p.depStopExt.code}}", "{{p.arrStopExt.code}}", "{{p.dateFrom}}", "{{p.dateTo}}"];
  11.         gtag('event', 'redirect', {
  12.             'event_category': 'click',
  13.             'event_label': data.join()
  14.         });
  15.     </script>
  16. </head>
  17. <body>
  18. {{ 'redirectpage.redirection' | trans }}
  19. <div style="{{ p.debug ? '' : 'display:none' }}">
  20.     Redirection
  21.     {{ p.companyId }}
  22.     {{ p.dateFrom }},
  23.     {{ p.dateTo }},
  24.     {{ p.depStopExt.code }},  {#user depStopExt.code instead od depstopExt because the proxy design pattern don't accept our toString#}
  25.     {{ p.arrStopExt.code }}
  26.     {% block page_content %}{% endblock %}
  27.     {# we MUST use: $(window).on("load", function() { to wait for the image to load. Can be tested with very large image such as #}
  28.     {#<img src="http://www.fnal.gov/pub/presspass/misc/2015/images/c2014-q4-lovejoy-des-highres.jpg?a={{ "now" |date('U') }}" >#}
  29. </div>
  30. {% if p.debug %}
  31. <script>
  32.     $(document).ready(function() {
  33.         $("form input, form select").each(function(i, e) {
  34.             // console.log(this)
  35.             $(this).after(this.name+'<br />');
  36.             // console.log(this.name)
  37.         });
  38.     });
  39. </script>
  40. {% endif %}
  41. </body>
  42. </html>