<html>
<head>
<title>Redirection</title>
<meta name="robots" content="noindex">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
{% include 'Default/_seo_gatag.html.twig' %}
{# @var \App\Service\Client\RedirectParams p #}
<script>
var debug = {{ p.debug | json_encode }};
var data = ["{{p.companyId}}", "{{p.depStopExt.code}}", "{{p.arrStopExt.code}}", "{{p.dateFrom}}", "{{p.dateTo}}"];
gtag('event', 'redirect', {
'event_category': 'click',
'event_label': data.join()
});
</script>
</head>
<body>
{{ 'redirectpage.redirection' | trans }}
<div style="{{ p.debug ? '' : 'display:none' }}">
Redirection
{{ p.companyId }}
{{ p.dateFrom }},
{{ p.dateTo }},
{{ p.depStopExt.code }}, {#user depStopExt.code instead od depstopExt because the proxy design pattern don't accept our toString#}
{{ p.arrStopExt.code }}
{% block page_content %}{% endblock %}
{# we MUST use: $(window).on("load", function() { to wait for the image to load. Can be tested with very large image such as #}
{#<img src="http://www.fnal.gov/pub/presspass/misc/2015/images/c2014-q4-lovejoy-des-highres.jpg?a={{ "now" |date('U') }}" >#}
</div>
{% if p.debug %}
<script>
$(document).ready(function() {
$("form input, form select").each(function(i, e) {
// console.log(this)
$(this).after(this.name+'<br />');
// console.log(this.name)
});
});
</script>
{% endif %}
</body>
</html>