{% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
{#{% block body_scripts %}
{{ parent() }}
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://4798167.fls.doubleclick.net/activityi;src=4798167;type=invmedia;cat=nzat9fmv;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
<noscript>
<iframe src="http://4798167.fls.doubleclick.net/activityi;src=4798167;type=invmedia;cat=nzat9fmv;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
</noscript>
{% endblock %}#}
{% block head_meta_label %}
{% if app.session.has('operatorId') != 1 %}
{% if '?itm' in app.request.uri %}
{% set urlCanonical = app.request.uri|split('?itm') %}
<link rel="canonical" href="{{urlCanonical[0]}}" />
{% endif %}
{% if '?utm' in app.request.uri %}
{% set urlCanonical = app.request.uri|split('?utm') %}
<link rel="canonical" href="{{urlCanonical[0]}}" />
{% endif %}
{% endif %}
{% endblock head_meta_label %}
{% block headerVideo %}
{% if not is_mobile() %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_headerVideo.html.twig') %}
{% endif %}
{% endblock %}
{% block searcher_header %}
{% set displayState = '' %}
{% if 'aviatur_general_homepage' in app.request.attributes.get('_route') and not app.request.query.has('anchor') %}
{% set displayState = 'hidden-palm' %}
{% endif %}
{# mt-[12%] m:h-[74%] s:h-[74%] xs:h-[74%] #}
<div class="page__body--search{% if app.session.has('operatorId') == 1 %}page__body--front{% endif %}" data-searchindex="1">
{% if promoSearchAgency is defined and json_decode(promoSearchAgency)|length > 0 %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Promos/promo_search_agency.html.twig') %}
{% endif %}
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
{% block search_content %}
{% endblock %}
</div>
{% endblock searcher_header %}
{% block body %}
{% block body_style %}{% endblock %}
{% block promo_content %}
{% endblock %}
{% endblock %}
{% block javascripts_bottom %}
{{ parent() }}
<script type="text/javascript">
// Header video
jQuery(document).ready(function () {
var $video = jQuery('.js-headerVideo'),
videoElement = $video[0];
if (videoElement && typeof videoElement.play === 'function') {
$video.on('canplaythrough', videoElement.play);
if (videoElement.readyState === 4) { // in case video already cached
videoElement.play();
}
jQuery(window).on('focus', function (e) {
if (videoElement.paused && videoElement.readyState === 4) {
videoElement.play();
}
});
jQuery(window).on('blur', function (e) {
if (!videoElement.paused) {
videoElement.pause();
}
});
setTimeout(function () {
if (!videoElement.paused) {
videoElement.pause();
}
}, 180000);
$video.on('error', function () {
videoElement.load(); // prevent green screen of death
});
}
});
</script>
{% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
{% endblock %}