src/Aviatur/TwigBundle/Resources/views/default/Flux/Search/General/search_index.html.twig line 1

Open in your IDE?
  1. {% extends twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/App/front.html.twig') %}
  2. {#{% block body_scripts %}
  3.     {{ parent() }}
  4.     <script type="text/javascript">
  5.         var axel = Math.random() + "";
  6.         var a = axel * 10000000000000;
  7.         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>');
  8.     </script>
  9.     <noscript>
  10.     <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>
  11.     </noscript>
  12. {% endblock %}#}
  13. {% block head_meta_label %}
  14.     {% if app.session.has('operatorId') != 1 %}
  15.                 {% set canonicalUri = app.request.uri|split('#')|first|split('?')|first %}
  16.         <link rel="canonical" href="{{ canonicalUri }}" />
  17.     {% endif %}
  18. {% endblock head_meta_label %}
  19. {% block headerVideo %}
  20.     {% if not is_mobile() %}
  21.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_headerVideo.html.twig') %}
  22.     {% endif %}
  23. {% endblock %}
  24. {% block searcher_header %}
  25.     {% set displayState = '' %}
  26.     {% set currentRoute = app.request.attributes.get('_route') %}
  27.     {% if 'aviatur_general_homepage' in app.request.attributes.get('_route') and not app.request.query.has('anchor') %}
  28.         {% set displayState = 'hidden-palm' %}
  29.     {% endif %}
  30.     <div class="page__body--search {% if currentRoute == 'aviatur_search_insurance' %}lg:max-h-[50vh]{% endif %}  {% if app.session.has('operatorId') == 1 %}page__body--front{% endif %}" data-searchindex="1">
  31.         {% if promoSearchAgency is defined and json_decode(promoSearchAgency)|length > 0 %}
  32.             {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Promos/promo_search_agency.html.twig') %}
  33.         {% endif %}
  34.         {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_datepickerContainer.html.twig') %}
  35.         {% block search_content %}{% endblock %}
  36.     </div>
  37. {% endblock searcher_header %}
  38. {% block body %}
  39.     {% block body_style %}{% endblock %}
  40.     {% block promo_content %}
  41.     {% endblock %}
  42. {% endblock %}
  43. {% block javascripts_bottom %}
  44.     {{ parent() }}
  45.     <script type="text/javascript">
  46.         // Header video
  47.         jQuery(document).ready(function () {
  48.             var $video = jQuery('.js-headerVideo'),
  49.                 videoElement = $video[0];
  50.             if (videoElement && typeof videoElement.play === 'function') {
  51.                 $video.on('canplaythrough', videoElement.play);
  52.                 if (videoElement.readyState === 4) { // in case video already cached
  53.                     videoElement.play();
  54.                 }
  55.                 jQuery(window).on('focus', function (e) {
  56.                     if (videoElement.paused && videoElement.readyState === 4) {
  57.                         videoElement.play();
  58.                     }
  59.                 });
  60.                 jQuery(window).on('blur', function (e) {
  61.                     if (!videoElement.paused) {
  62.                         videoElement.pause();
  63.                     }
  64.                 });
  65.                 setTimeout(function () {
  66.                     if (!videoElement.paused) {
  67.                         videoElement.pause();
  68.                     }
  69.                 }, 180000);
  70.                 $video.on('error', function () {
  71.                     videoElement.load(); // prevent green screen of death
  72.                 });
  73.             }
  74.         });
  75.     </script>
  76.     {% include twig_exists('@AviaturTwig/'~ agency_folder.twigFlux() ~'/Search/General/search_js.html.twig') %}
  77. {% endblock %}