templates/base.html.twig line 6

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Tracol | {% block title %}{% endblock %}</title>
  6.     {% block metaDescription %}{% endblock %}
  7.     <meta name="viewport" content= "width=device-width, initial-scale=1.0">
  8.     {% block stylesheets %}
  9.         {{ encore_entry_link_tags('app') }}
  10.         <link rel="stylesheet" href="https://unpkg.com/@egjs/flicking/dist/flicking.css" crossorigin="anonymous" />
  11.         <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
  12.         <!--link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /-->
  13.     {% endblock %}
  14.     {% block javascripts %}
  15.         {{ encore_entry_script_tags('app') }}
  16. {#        <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="d4dd1335-1dc0-4d3c-b4c3-49e9043d2e0e" data-blockingmode="auto" type="text/javascript"></script>#}
  17.         <script
  18.                 src="https://code.jquery.com/jquery-3.6.0.min.js"
  19.                 integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
  20.                 crossorigin="anonymous">
  21.         </script>
  22.         
  23.         <script src="https://unpkg.com/@egjs/flicking/dist/flicking.pkgd.min.js" crossorigin="anonymous"></script>
  24.         <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  25.         <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
  26.         <!--script src="https://code.jquery.com/mobile/1.5.0-rc1/jquery.mobile-1.5.0-rc1.min.js" integrity="sha256-c3VbCrdCtTHmXYAuxRT4D0Cy5VC/0zBnXVRIvJiV9xo=" crossorigin="anonymous"></script-->
  27.         
  28.     {% endblock %}
  29.     <style>
  30.         @media (min-width: 1200px) and (max-width:1498px) {
  31.             .navbar-expand-xl .navbar-collapse {
  32.                 display: flex !important;
  33.                 /* flex-basis: auto; */
  34.                 justify-content: center;
  35.             }
  36.         }
  37.     </style>
  38. </head>
  39. <body>
  40. {#<script id="CookieDeclaration" src="https://consent.cookiebot.com/d4dd1335-1dc0-4d3c-b4c3-49e9043d2e0e/cd.js" type="text/javascript" async></script>#}
  41. {% for success in app.flashes('success') %}
  42.     <div class="alert alert-success" role="alert">
  43.         <p class="alert-link">{{ success }}</p>
  44.     </div>
  45. {% endfor %}
  46. {% for error in app.flashes('error') %}
  47.     <div class="col-lg-8 mx-auto alert alert-danger" role="alert">
  48.         <p class="alert-link">{{ error }}</p>
  49.     </div>
  50. {% endfor %}
  51. {#
  52. <div class="d-flex flex-column flex-shrink-0 bg-light black" style="width: 4rem;">
  53.     <a  href="https://www.facebook.com/tracolimmobilier/"><i class="fab fa-facebook-f"></i></a>
  54.     <a href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i class="fab fa-linkedin"></i></a>
  55.     <a href="https://www.instagram.com/tracolimmobilier/"><i class="fab fa-instagram"></i></a>
  56. </div>
  57. <div id="div-newsletter" class="d-flex flex-column flex-shrink-0 bg-light orange">
  58.     <a id="text-vertical" class="text-vertical" href="#">NEWSLETTER</a>
  59.     <div id="div-form-newsletter" style="opacity: 0">
  60.         <span id="span-newsletter" style="opacity: 0">Restez informé ! Abonnez-vous à notre newsletter.</span>
  61.         <form action="{{ path('mailchimp') }}" id="form-newsletter" style="display: none">
  62.             <div class="input-group">
  63.                 <input id="input-email" class="form-control input-email" type="email" name="email" placeholder="Votre adresse mail">
  64.                 <button class="btn btn-primary button-newsletter" type="submit"><i class="fas fa-arrow-right"></i></button>
  65.             </div>
  66.         </form>
  67.     </div>
  68. </div>
  69. #}
  70. <nav class="navbar navbar-expand-xl fixed-top homepage">
  71.     <div id="center-nav" class="container-fluid">
  72.         <button class="navbar-toggler"
  73.                 type="button"
  74.                 data-bs-toggle="collapse"
  75.                 data-bs-target="#navbarNav"
  76.                 aria-controls="navbarNav"
  77.                 aria-expanded="false"
  78.                 aria-label="Toggle navigation">
  79.             <span class="navbar-toggler-icon">
  80.                 <i class="fas fa-bars"></i>
  81.             </span>
  82.         </button>
  83.         <a href="{{ path('index') }}" class="tracol-logo">
  84.             <svg xmlns="http://www.w3.org/2000/svg" width="136.339" height="51.127" viewBox="0 0 136.339 51.127">
  85.                 <g id="Groupe_4469" data-name="Groupe 4469" transform="translate(11823.999 14639)">
  86.                     <path id="Tracé_59" data-name="Tracé 59" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-12370.418 -14871.441)" fill="#f6a400"/>
  87.                     <path id="Tracé_60" data-name="Tracé 60" d="M635.6,255.7c0,7.088,3.8,9.434,9.069,9.434a16.669,16.669,0,0,0,6.359-1.2l-.73-4.379a14.765,14.765,0,0,1-5.629,1.147c-2.658,0-4.378-1.2-4.378-5V232.5H635.6Z" transform="translate(-12347.273 -14871.48)"/>
  88.                     <path id="Tracé_61" data-name="Tracé 61" d="M402.171,274.441h4.691V253.593a10.905,10.905,0,0,1,3.962-.573,14.562,14.562,0,0,1,4.117.573l.782-4.378a17.993,17.993,0,0,0-5.108-.626,21.859,21.859,0,0,0-8.444,1.512Zm40.968-12.477c0,8.652,4.639,13.031,12.3,13.031a19.832,19.832,0,0,0,6.984-1.2l-.73-4.378a15.649,15.649,0,0,1-5.942,1.147c-5.525,0-7.922-2.814-7.922-8.912,0-5.264,1.824-8.6,7.557-8.6a12.827,12.827,0,0,1,5.838,1.355l.729-4.482a17.148,17.148,0,0,0-6.672-1.3c-8.339,0-12.144,5.473-12.144,13.343m40.6-.156c0,5.369-1.3,8.756-6.724,8.756-5.473,0-6.828-3.388-6.828-8.756,0-5.316,1.355-8.756,6.828-8.756,5.42,0,6.724,3.44,6.724,8.756m-6.724,13.187c7.975,0,11.467-5.264,11.467-13.187,0-8.131-3.232-13.187-11.467-13.187-8.027,0-11.519,5.316-11.519,13.187,0,8.131,3.284,13.187,11.519,13.187" transform="translate(-12205.374 -14881.258)"/>
  89.                     <path id="Tracé_62" data-name="Tracé 62" d="M349.134,255.7c0,7.088,3.8,9.434,9.069,9.434a16.669,16.669,0,0,0,6.359-1.2l-.73-4.379A14.766,14.766,0,0,1,358.2,260.7c-2.658,0-4.378-1.2-4.378-5V244.778h9.695v-4.43h-9.695V232.5h-4.691Z" transform="translate(-12173.133 -14871.48)"/>
  90.                     <path id="Tracé_63" data-name="Tracé 63" d="M452.277,271.03c-4.851,0-4.851-3.294-4.851-4.165,0-.807.04-3.966,5.213-3.966H463.01v-5.42c0-6.567-4.431-8.809-10.425-8.809a29.621,29.621,0,0,0-7.87,1.146l.678,4.326a20.958,20.958,0,0,1,7.036-1.2c3.7,0,5.942,1.043,5.942,4.066v2.241h-4.9c-6.567,0-10.685,2.137-10.685,7.871,0,5.681,3.8,7.922,10.32,7.922a32.7,32.7,0,0,0,9.9-1.511v-4.091a43.889,43.889,0,0,1-10.733,1.589" transform="translate(-12230.064 -14881.307)"/>
  91.                     <rect id="Rectangle_73" data-name="Rectangle 73" width="1.585" height="8.956" transform="translate(-11803.191 -14596.829)"/>
  92.                     <path id="Tracé_64" data-name="Tracé 64" d="M415.929,339.993h1.5l2.643,4.172,2.628-4.172h1.5v8.956h-1.585v-6.105l-2.448,3.88h-.194l-2.476-3.866v6.092h-1.572Z" transform="translate(-12213.737 -14936.822)"/>
  93.                     <path id="Tracé_65" data-name="Tracé 65" d="M446.472,339.993h1.5l2.643,4.172,2.628-4.172h1.5v8.956h-1.585v-6.105l-2.448,3.88h-.194l-2.476-3.866v6.092h-1.572Z" transform="translate(-12232.305 -14936.822)"/>
  94.                     <path id="Tracé_66" data-name="Tracé 66" d="M480,341.292c-1.808,0-2.113,1.112-2.113,3.058s.334,3.018,2.142,3.018,2.142-1.085,2.142-3.018-.349-3.058-2.171-3.058m-3.7,3.058c0-2.67.736-4.533,3.7-4.533s3.77,1.848,3.77,4.533-.779,4.492-3.741,4.492-3.727-1.822-3.727-4.492" transform="translate(-12250.44 -14936.716)"/>
  95.                     <path id="Tracé_67" data-name="Tracé 67" d="M505.617,345.055v2.42h1.877c1.266,0,1.7-.473,1.7-1.2s-.417-1.224-1.7-1.224Zm0-3.588v2.225h1.711c1.182,0,1.585-.5,1.585-1.126s-.4-1.1-1.585-1.1Zm1.711-1.474c2.309,0,3.185.988,3.185,2.42a1.93,1.93,0,0,1-1.182,1.892,2.046,2.046,0,0,1,1.461,2c0,1.4-1.029,2.642-3.3,2.642h-3.449v-8.956Z" transform="translate(-12267.304 -14936.822)"/>
  96.                     <rect id="Rectangle_74" data-name="Rectangle 74" width="1.586" height="8.956" transform="translate(-11753.034 -14596.829)"/>
  97.                     <path id="Tracé_68" data-name="Tracé 68" d="M543.847,339.993h1.572v7.482h4.117v1.474h-5.689Z" transform="translate(-12291.499 -14936.822)"/>
  98.                     <rect id="Rectangle_75" data-name="Rectangle 75" width="1.586" height="8.956" transform="translate(-11738.931 -14596.829)"/>
  99.                     <path id="Tracé_69" data-name="Tracé 69" d="M581.389,347.475h4.673v1.474h-6.245v-8.957h6.245v1.474h-4.673v2.142h4.117v1.474h-4.117Z" transform="translate(-12313.365 -14936.822)"/>
  100.                     <path id="Tracé_70" data-name="Tracé 70" d="M605.9,341.467V344.1h1.85c1.377,0,1.794-.529,1.794-1.308,0-.834-.417-1.321-1.794-1.321Zm3.255,3.908,2.337,3.574h-1.808l-2.2-3.379H605.9v3.379h-1.572v-8.956h3.421c2.448,0,3.38,1.126,3.38,2.8a2.537,2.537,0,0,1-1.975,2.587" transform="translate(-12328.266 -14936.822)"/>
  101.                 </g>
  102.             </svg>
  103.         </a>
  104.         <button style="background-color: transparent;border-color: transparent; display: none;position: absolute;right:0;top:5px;" id="submit-search-mobile" type="submit" data-bs-toggle="modal" data-bs-target="#exampleModal1">
  105.             <svg style="height: 55px;" class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
  106.                 <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  107.                     <path id="Tracé_95" data-name="Tracé 95" d="M729.651,232.441H673.669v90.97l55.982-11.894Z" transform="translate(855.192 -127.441)" fill="#f6a400"/>
  108.                     <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  109.                         <g id="np_search_1868241_000000">
  110.                             <path id="Tracé_92" data-name="Tracé 92" d="M8.287,17.368A8.662,8.662,0,1,1,14.4,14.813a8.679,8.679,0,0,1-6.109,2.555Zm0-15.055a6.36,6.36,0,1,0,4.477,1.881A6.377,6.377,0,0,0,8.287,2.313Z" transform="translate(0.441 -0.012)" fill="#fff"/>
  111.                             <path id="Tracé_93" data-name="Tracé 93" d="M57.82,59.567l1.626-1.633L67.4,65.852l-1.626,1.633Z" transform="translate(-44.591 -44.782)" fill="#fff"/>
  112.                         </g>
  113.                     </g>
  114.                 </g>
  115.             </svg>
  116.         </button>
  117.         <!-- Modal -->
  118.         <div class="modal fade bd-example-modal-lg" id="exampleModal1" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  119.             <div class="modal-dialog modal-lg">
  120.                 <div class="modal-content">
  121.                     <div class="col-lg-12">
  122.                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" style="font-size:2em;position: absolute;right: 15px;"></button>
  123.                         <div name="form-search-normal-mobile" id="form-search-normal-mobile" class="div-svg-header">
  124.                             <form action="{{ path('results') }}"  style="display: flex; align-items: center; width: 100%">
  125.                                 <div class="container-form-mobile" style="display: flex;flex-direction: column;justify-content: center; ">
  126.                                     <div class="selectors mobile" style="display: flex; align-items: center; width: auto;">
  127.                                         <div id="transaction-drop" class="dropdown">
  128.                                             <div class="undroped">
  129.                                                 <p class="undroped-header">Type de transaction</p>
  130.                                                 <p name="transaction-type" class="undroped-subheader">Achat ou Location</p>
  131.                                                 <input type="hidden" value="" class="input-subheader" name="transaction-type">
  132.                                             </div>
  133.                                             <div class="droped">
  134.                                                 <div class="dropdown-header">Type de transaction</div>
  135.                                                 <ul id="transaction-li" class="items">
  136.                                                     <li class="item" data-value ="Vente">Achat</li>
  137.                                                     <li class="item" data-value ="Location">Location</li>
  138.                                                     {#
  139.                                                     <li class="item" data-value ="Viager">Viager</li>
  140.                                                     <li class="item" data-value ="Enchere">Enchère</li>
  141.                                                     #}
  142.                                                 </ul>
  143.                                             </div>
  144.                                         </div>
  145.                                         <div id="property-drop" class="dropdown">
  146.                                             <div class="undroped">
  147.                                                 <p class="undroped-header">Type de biens</p>
  148.                                                 <p name="property-type" class="undroped-subheader">Appartement, Bureau, ...</p>
  149.                                                 <input type="hidden" value="" class="input-subheader" name="property-type">
  150.                                             </div>
  151.                                             <div class="droped">
  152.                                                 <div class="dropdown-header">Type de biens</div>
  153.                                                 <ul id="property-li" class="items">
  154.                                                     {% for type in get_properties.getTypesProperties() %}
  155.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == type %}selected{% endif %}" data-value="{{ type }}">{{ type }}</li>
  156.                                                     {% endfor %}
  157.                                                     {#
  158.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Studio' %}selected{% endif %}" data-value="Studio">Studio</li>
  159.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Appartement' %}selected{% endif %}" data-value="Appartement">Appartement</li>
  160.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Maison' %}selected{% endif %}" data-value="Maison">Maison</li>
  161.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Bureaux' %}selected{% endif %}" data-value="Bureaux">Bureau</li>
  162.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Commerce' %}selected{% endif %}" data-value="Commerce">Commerce</li>
  163.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Garage / Parking' %}selected{% endif %}" data-value="Garage / Parking">Garage / Parking</li>
  164.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Immeuble' %}selected{% endif %}" data-value="Immeuble">Immeuble</li>
  165.                                                     <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Cave / Box' %}selected{% endif %}" data-value="Cave / Box">Cave / Box</li>
  166.                                                     #}
  167.                                                 </ul>
  168.                                             </div>
  169.                                         </div>
  170.                                         <div id="location-drop-mobile" class="dropdown">
  171.                                             <div class="undroped">
  172.                                                 <p class="undroped-header">Localisation</p>
  173.                                                 <p class="undroped-subheader">Choisissez une commune</p>
  174.                                                 <input type="hidden" value="" class="input-subheader" name="location">
  175.                                             </div>
  176.                                             <div class="droped">
  177.                                                 <div  class="dropdown-header">Localisation</div>
  178.                                                 <ul id="location-li-mobile" class="items">
  179.                                                     {#
  180.                                                     <li class="item" data-value ="Appartement">Luxembourg-Ville</li>
  181.                                                     <li class="item" data-value ="Bureaux">Leudelange</li>
  182.                                                     <li class="item" data-value ="Maison">Esch-Sur-Alzette</li>
  183.                                                     #}
  184.                                                 </ul>
  185.                                             </div>
  186.                                         </div>
  187.                                     </div>
  188.                                     <div id="sub-search-div-mobile" class="sub-search-div-mobile">
  189.                                         <div class="col-lg-3 div-form">
  190.                                             <input class="sub-search-input" name="budget"  id="budget" type="text" placeholder="Budget max.">
  191.                                         </div>
  192.                                         <div id="rooms-drop" class="dropdown">
  193.                                             <div class="undroped">
  194.                                                 <p class="undroped-header transparent-font">Nombre de chambres</p>
  195.                                                 <p class="undroped-subheader good-place"></p>
  196.                                                 <input type="hidden" class="input-subheader" name="rooms">
  197.                                             </div>
  198.                                             <div class="droped">
  199.                                                 <div class="dropdown-header" style="color:#5f5f5f">Nombre de chambres</div>
  200.                                                 <ul id="rooms-li" class="items">
  201.                                                     <li class="item" data-value ="">Indifférent</li>
  202.                                                     <li class="item" data-value ="1">1</li>
  203.                                                     <li class="item" data-value ="2">2</li>
  204.                                                     <li class="item" data-value ="3">3</li>
  205.                                                     <li class="item" data-value ="4">4</li>
  206.                                                     <li class="item" data-value ="5">5</li>
  207.                                                     <li class="item" data-value ="6">6</li>
  208.                                                 </ul>
  209.                                             </div>
  210.                                         </div>
  211.                                             <!--<input class="sub-search-input" id="area-minimum" name="area-minimum" type="text" placeholder="Surface min.">-->
  212.                                             <div id="area-drop" class="dropdown" style="border: 1px solid black;">
  213.                                                 <div class="undroped">
  214.                                                     <p class="undroped-header transparent-font">
  215.                                                         {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined %}
  216.                                                             {% if app.session.get('filter')['area-minimum'] == '' %}
  217.                                                                 Indifférent
  218.                                                             {% else %}
  219.                                                                 {{ app.session.get('filter')['area-minimum'] }}
  220.                                                             {% endif %}
  221.                                                         {% else %}
  222.                                                             Surface minimum
  223.                                                         {% endif %}</p>
  224.                                                     <p class="undroped-subheader good-place"></p>
  225.                                                     <input type="hidden" class="input-subheader" name="area-minimum">
  226.                                                 </div>
  227.                                                 <div class="droped">
  228.                                                     <div class="dropdown-header">Surface minimum</div>
  229.                                                     <ul id="area-li" class="items">
  230.                                                         <li class="item" data-value="">Indifférent</li>
  231.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 20 %}selected{% endif %}" data-value ="20">20 m²</li>
  232.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 30 %}selected{% endif %}" data-value ="30">30 m²</li>
  233.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 40 %}selected{% endif %}" data-value ="40">40 m²</li>
  234.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 50 %}selected{% endif %}" data-value ="50">50 m²</li>
  235.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 60 %}selected{% endif %}" data-value ="60">60 m²</li>
  236.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 70 %}selected{% endif %}" data-value ="70">70 m²</li>
  237.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 80 %}selected{% endif %}" data-value ="80">80 m²</li>
  238.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 90 %}selected{% endif %}" data-value ="90">90 m²</li>
  239.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 100 %}selected{% endif %}" data-value ="100">100 m²</li>
  240.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 110 %}selected{% endif %}" data-value ="110">110 m²</li>
  241.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 120 %}selected{% endif %}" data-value ="120">120 m²</li>
  242.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 130 %}selected{% endif %}" data-value ="130">130 m²</li>
  243.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 140 %}selected{% endif %}" data-value ="140">140 m²</li>
  244.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 150 %}selected{% endif %}" data-value ="150">150 m²</li>
  245.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 160 %}selected{% endif %}" data-value ="160">160 m²</li>
  246.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 170 %}selected{% endif %}" data-value ="170">170 m²</li>
  247.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 180 %}selected{% endif %}" data-value ="180">180 m²</li>
  248.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 190 %}selected{% endif %}" data-value ="190">190 m²</li>
  249.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 200 %}selected{% endif %}" data-value ="200">200 m²</li>
  250.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 250 %}selected{% endif %}" data-value ="250">250 m²</li>
  251.                                                         <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 300 %}selected{% endif %}" data-value ="300">300 m²</li>
  252.                                                     </ul>
  253.                                                 </div>
  254.                                         </div>
  255.                                     </div>
  256.                                     <div>
  257.                                         <button style="background-color: transparent;border-color: transparent;" id="submit-search" type="submit">
  258.                                             <svg class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
  259.                                                 <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  260.                                                     <path id="Tracé_95" data-name="Tracé 95" d="M729.651,232.441H673.669v90.97l55.982-11.894Z" transform="translate(855.192 -127.441)" fill="#f6a400"/>
  261.                                                     <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  262.                                                         <g id="np_search_1868241_000000">
  263.                                                             <path id="Tracé_92" data-name="Tracé 92" d="M8.287,17.368A8.662,8.662,0,1,1,14.4,14.813a8.679,8.679,0,0,1-6.109,2.555Zm0-15.055a6.36,6.36,0,1,0,4.477,1.881A6.377,6.377,0,0,0,8.287,2.313Z" transform="translate(0.441 -0.012)" fill="#fff"/>
  264.                                                             <path id="Tracé_93" data-name="Tracé 93" d="M57.82,59.567l1.626-1.633L67.4,65.852l-1.626,1.633Z" transform="translate(-44.591 -44.782)" fill="#fff"/>
  265.                                                         </g>
  266.                                                     </g>
  267.                                                 </g>
  268.                                             </svg></button>
  269.                                         <button class="btn btn-primary" id="send" type="submit" style="display: none">Envoyer</button>
  270.                                     </div>
  271.                                 </div>
  272.                             </form>
  273.                         </div>
  274.                     </div>
  275.                 </div>
  276.             </div>
  277.         </div>
  278.         <div class="nav-elements collapse navbar-collapse" id="navbarNav">
  279.             <ul class="navbar-nav">
  280.                 {#
  281.                 <li class="nav-item">
  282.                     <a class="nav-link active" aria-current="page" href="{{ path('tracol') }}">Tracol</a>
  283.                 </li>
  284.                 #}
  285.                 <li class="nav-item">
  286.                     <a class="nav-link" href="{{ path('about') }}">Qui sommes-nous</a>
  287.                 </li>
  288.                 <li class="nav-item">
  289.                     <a class="nav-link" href="{{ path('properties', {'keyword': 'vente'}) }}">Acheter</a>
  290.                 </li>
  291.                 <li class="nav-item">
  292.                     <a class="nav-link" href="{{ path('properties', {'keyword': 'location'}) }}">Louer</a>
  293.                 </li>
  294.                 <li class="nav-item">
  295.                     <a class="nav-link" href="{{ path('vendre', {'keyword': 'location'}) }}">Vendre</a>
  296.                 </li>
  297.                 <li class="nav-item">
  298.                     <a class="nav-link" href="{{ path('projects', {'keyword': 'location'}) }}">Projets</a>
  299.                 </li>
  300.                 <li class="nav-item">
  301.                     <a class="nav-link" href="{{ path('reference') }}">Références</a>
  302.                 </li>
  303.                 {#
  304.                 <li class="nav-item">
  305.                     <a class="nav-link" href="{{ path('team') }}">Notre equipe</a>
  306.                 </li>
  307.                 #}
  308. {#                <li class="nav-item">#}
  309. {#                    <a class="nav-link" href="#">Actualités</a>#}
  310. {#                </li>#}
  311.                 {#
  312.                 <li class="nav-item">
  313.                     <a class="nav-link" href="{{ path('carrieres') }}">Carrières</a>
  314.                 </li>
  315.                 #}
  316.                 <li id="enveloppe-mobile" class="nav-item">
  317.                     <a class="nav-link" href="{{ path('contact') }}">
  318.                         {#
  319.                         <i class="far fa-envelope"></i>
  320.                         #}
  321.                         Contact
  322.                     </a>
  323.                 </li>
  324.             </ul>
  325.         </div>
  326.         <div class="contacts-social">
  327.             <div class="phone-contact">
  328.                 <div>
  329.                     <svg class="svg-phone" xmlns="http://www.w3.org/2000/svg" width="31.059" height="27.732" viewBox="0 0 31.059 27.732">
  330.                         <g id="np_phone-call_3960627_000000" transform="translate(-6.248 -15.626)">
  331.                             <path id="Tracé_116" data-name="Tracé 116" d="M32.871,43.356H33.98V41.138h3.328V38.919H33.98V34.793l-7.931-2.64-2.973,1.986a19.764,19.764,0,0,1-7.488-7.421l1.9-1.9-2.64-9.2h-8.6v1.109A26.511,26.511,0,0,0,32.871,43.357ZM13.182,17.844l1.808,6.334L12.9,26.307l.377.721a22,22,0,0,0,9.406,9.384l.588.3,3.161-2.119,5.324,1.8v4.748A24.461,24.461,0,0,1,8.467,17.844Z" fill="#f6a400"/>
  332.                         </g>
  333.                     </svg>
  334.                 </div>
  335.                 <div>
  336.                     <p class="phone">
  337.                         {#
  338.                         Besoin d'informations ? <br>
  339.                         #}
  340.                         <a href="tel:+3522658601">(+352) 26 58 60-1</a>
  341.                     </p>
  342.                 </div>
  343.             </div>
  344.             <div class="col-md-2 d-flex justify-content-between w-100 mt-3">
  345.                 <a target="_blank" href="https://www.facebook.com/tracolimmobilier/" style="width:20px;"><i class="fab fa-facebook-f fa-2x" style="color:#f6a400;margin-top:0;width:20px;height:20px;"></i></a>
  346.                 <a target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/" style="width:20px;"><i class="fab fa-linkedin fa-2x" style="color:#f6a400;margin-top:0;width:20px;height:20px;"></i></a>
  347.                 <a target="_blank" href="https://www.instagram.com/tracolimmobilier/" style="width:20px;"><i class="fab fa-instagram fa-2x" style="color:#f6a400;margin-top:0;width:20px;height:20px;"></i></a>
  348.                 <a target="_blank" href="https://www.youtube.com/channel/UCLl8G5ZCdyslVR_4ANkD6GA" class="d-flex align-items-end align-items-center" style="width:20px;"><i class="fab fa-youtube fa-2x" style="color:#f6a400;width:20px;height:20px;"></i></a>
  349.             </div>
  350.         </div>
  351.         <div id="footer-nav-mobile" class="col-lg-2" style="display: none">
  352.             <div class="col-lg-12 opacity-mobile" style="display: flex; flex-direction: row">
  353.                 <div id="svg-phone" class="col-lg-4" style="margin-top:0;">
  354.                     <a class="nav-link d-flex align-items-center" style="height: 42px;padding:0;margin-right:25px;" href="tel:+3522658601">
  355.                         <svg style="margin: auto;" class="svg-phone" xmlns="http://www.w3.org/2000/svg" width="31.059" height="27.732" viewBox="0 0 31.059 27.732">
  356.                             <g id="np_phone-call_3960627_000000" transform="translate(-6.248 -15.626)">
  357.                                 <path id="Tracé_116" data-name="Tracé 116" d="M32.871,43.356H33.98V41.138h3.328V38.919H33.98V34.793l-7.931-2.64-2.973,1.986a19.764,19.764,0,0,1-7.488-7.421l1.9-1.9-2.64-9.2h-8.6v1.109A26.511,26.511,0,0,0,32.871,43.357ZM13.182,17.844l1.808,6.334L12.9,26.307l.377.721a22,22,0,0,0,9.406,9.384l.588.3,3.161-2.119,5.324,1.8v4.748A24.461,24.461,0,0,1,8.467,17.844Z" fill="black"/>
  358.                             </g>
  359.                         </svg>
  360.                     </a>
  361.                 </div>
  362.                 <div class="col-lg-6 opacity-mobile">
  363.                     <a class="nav-link d-flex align-items-center" style="height: 42px;padding:0;" href="{{ path('contact') }}"><i style="color: #5f5f5f;margin-right: 15px;" class="far fa-envelope fa-2x"></i></a>
  364.                 </div>
  365.             </div>
  366.             <div class="col-8 col-lg-12 m-auto opacity-mobile mt-3" style="display: flex;justify-content: space-between; opacity: 0">
  367.                 <div class="col-2 col-lg-2">
  368.                     <a class="d-flex align-items-center justify-content-center" target="_blank" href="https://www.facebook.com/tracolimmobilier/"><i style="color: #5f5f5f;padding:0;margin:0;" class="fab fa-facebook-f"></i></a>
  369.                 </div>
  370.                 <div class="col-2 col-lg-2">
  371.                     <a class="d-flex align-items-center justify-content-center" target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i style="color: #5f5f5f;padding:0;margin:0;" class="fab fa-linkedin"></i></a>
  372.                 </div>
  373.                 <div class="col-2 col-lg-2">
  374.                     <a class="d-flex align-items-center justify-content-center" target="_blank" href="https://www.instagram.com/tracolimmobilier/"><i style="color: #5f5f5f;padding:0;margin:0;" class="fab fa-instagram"></i></a>
  375.                 </div>
  376.                 <div class="col-2 col-lg-2">
  377.                     <a class="d-flex align-items-center justify-content-center" target="_blank" href="https://www.youtube.com/channel/UCLl8G5ZCdyslVR_4ANkD6GA"><i style="color: #5f5f5f;padding:0;margin:0;" class="fab fa-youtube fa-2x"></i></a>
  378.                 </div>
  379.             </div>
  380.         </div>
  381.     </div>
  382. </nav>
  383. <div id="formResearchNav" class="d-flex justify-content-center">
  384.     <form action="{{ path('results') }}" class="col-lg-8 form-search-filter" style="display: flex; align-items: center;">
  385.         <div class="container-form-search" style="display: flex;flex-direction: column;justify-content: center; width: 71.666vw;position:relative">
  386.             <div class="selectors" style="display: flex; align-items: center; width: auto;justify-content: space-between;z-index:9;">
  387.                 <div id="transaction-drop" class="dropdown">
  388.                     <div class="undroped">
  389.                         <p class="undroped-header">Type de transaction</p>
  390.                         <p name="transaction-type" class="undroped-subheader {% if app.session.get('filter')['transaction-type'] is defined %}selected{% endif %}">
  391.                             {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}
  392.                                 Achat
  393.                             {% elseif app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}
  394.                                 Location
  395.                             {% else %}
  396.                                 Achat ou Location
  397.                             {% endif %}
  398.                         </p>
  399.                         <input type="hidden"
  400.                                {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}
  401.                                    value="Vente"
  402.                                 {% elseif app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}
  403.                                     value="Location"
  404.                                {% endif %}
  405.                                value=""
  406.                                class="input-subheader" name="transaction-type">
  407.                     </div>
  408.                     <div class="droped">
  409.                         <div class="dropdown-header">Type de transaction</div>
  410.                         <ul id="transaction-li" class="items">
  411.                             {#
  412.                             <li class="item" data-value="">Achat ou Location</li>
  413.                             #}
  414.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Vente' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'vente') %}selected{% endif %}" data-value ="Vente">Achat</li>
  415.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['transaction-type'] == 'Location' or (app.request.attributes.get('_route_params')['keyword'] is defined and app.request.attributes.get('_route_params')['keyword'] == 'location') %}selected{% endif %}" data-value ="Location">Location</li>
  416.                             {#
  417.                             <li class="item" data-value ="Location saisonnière">Location saisonniere</li>
  418.                             <li class="item" data-value ="Programme">Programme</li>
  419.                             #}
  420.                             {#                                                <li class="item" data-value ="Viager">Viager</li>#}
  421.                             {#                                                <li class="item" data-value ="Enchere">Enchère</li>#}
  422.                         </ul>
  423.                     </div>
  424.                 </div>
  425.                 
  426.                 <div id="property-drop" class="dropdown">
  427.                     <div class="undroped">
  428.                         <p class="undroped-header">Type de biens</p>
  429.                             <p name="property-type" class="undroped-subheader {% if app.session.get('filter')['property-type'] is defined %}selected{% endif %}">
  430.                                 {% if app.session.get('filter') is defined and app.session.get('filter')['property-type'] is defined and app.session.get('filter')['property-type'] != '' %}
  431.                                     {{ app.session.get('filter')['property-type'] }}
  432.                                 {% else %}
  433.                                     Tous
  434.                                 {% endif %}
  435.                             </p>
  436.                         <input type="hidden" value="{% if app.session.get('filter')['property-type'] is defined and app.session.get('filter')['property-type'] %}{{ app.session.get('filter')['property-type'] }}{% endif %}" class="input-subheader" name="property-type">
  437.                     </div>
  438.                     <div class="droped">
  439.                         <div class="dropdown-header">Type de biens</div>
  440.                         <ul id="property-li" class="items">
  441.                             <li class="item" data-value="">Tous</li>
  442.                             {% for type in get_properties.getTypesProperties() %}
  443.                                 <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == type %}selected{% endif %}" data-value="{{ type }}">{{ type }}</li>
  444.                             {% endfor %}
  445.                             {#
  446.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Appartement' %}selected{% endif %}" data-value="Appartement">Appartement</li>
  447.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Duplex' %}selected{% endif %}" data-value="Duplex">Duplex</li>
  448.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Maison' %}selected{% endif %}" data-value="Maison">Maison</li>
  449.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Bureaux' %}selected{% endif %}" data-value="Bureaux">Bureau</li>
  450.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Commerce' %}selected{% endif %}" data-value="Commerce">Commerce</li>
  451.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Immeuble' %}selected{% endif %}" data-value="Immeuble">Immeuble</li>
  452.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Garage / Parking' %}selected{% endif %}" data-value="Garage / Parking">Garage / Parking</li>
  453.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Cave / Box' %}selected{% endif %}" data-value="Cave / Box">Cave / Box</li>
  454.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Terrain' %}selected{% endif %}" data-value="Terrain">Terrain</li>
  455.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['property-type'] == 'Penthouse' %}selected{% endif %}" data-value="Penthouse">Penthouse</li>
  456.                             #}
  457.                         </ul>
  458.                     </div>
  459.                 </div>
  460.                 <div id="location-drop" class="dropdown">
  461.                     <div class="undroped">
  462.                         <p class="undroped-header">Localisation</p>
  463.                         <p class="undroped-subheader {% if app.session.get('filter')['location'] is defined %}selected{% endif %}">
  464.                             {% if app.session.get('filter') and app.session.get('filter')['location'] %}
  465.                                 {{ app.session.get('filter')['location'] }}
  466.                             {% else %}
  467.                                 Choisissez une commune
  468.                             {% endif %}
  469.                         </p>
  470.                         <input type="hidden" value="{% if app.session.get('filter')['location'] is defined and app.session.get('filter')['location'] %}{{ app.session.get('filter')['location'] }}{% endif %}" class="input-subheader" name="location">
  471.                     </div>
  472.                     <div class="droped">
  473.                         <div  class="dropdown-header">Localisation</div>
  474.                         <ul id="location-li" class="items">
  475.                             <li class="item" data-value ="">Tous</li>
  476.                             {#                                                <li class="item" data-value ="Appartement">Luxembourg-Ville</li>#}
  477.                             {#                                                <li class="item" data-value ="Bureaux">Leudelange</li>#}
  478.                             {#                                                <li class="item" data-value ="Maison">Esch-Sur-Alzette</li>#}
  479.                         </ul>
  480.                     </div>
  481.                 </div>
  482.                 <div class="div-form">
  483.                     <button style="background-color: transparent;border-color: transparent;" id="submit-search" type="submit">
  484.                         <svg class="search-button" xmlns="http://www.w3.org/2000/svg" width="55.982" height="90.97" viewBox="0 0 55.982 90.97">
  485.                             <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  486.                                 <path id="Tracé_95" data-name="Tracé 95" d="M729.651,232.441H673.669v90.97l55.982-11.894Z" transform="translate(855.192 -127.441)" fill="#f6a400"/>
  487.                                 <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  488.                                     <g id="np_search_1868241_000000">
  489.                                         <path id="Tracé_92" data-name="Tracé 92" d="M8.287,17.368A8.662,8.662,0,1,1,14.4,14.813a8.679,8.679,0,0,1-6.109,2.555Zm0-15.055a6.36,6.36,0,1,0,4.477,1.881A6.377,6.377,0,0,0,8.287,2.313Z" transform="translate(0.441 -0.012)" fill="#fff"/>
  490.                                         <path id="Tracé_93" data-name="Tracé 93" d="M57.82,59.567l1.626-1.633L67.4,65.852l-1.626,1.633Z" transform="translate(-44.591 -44.782)" fill="#fff"/>
  491.                                     </g>
  492.                                 </g>
  493.                             </g>
  494.                         </svg>
  495.                     </button>
  496.                 </div>
  497.                 
  498.                 <div>
  499.                     <button  id="search-detail" class="btn btn-primary child search">RECHERCHE AVANCÉE</button>
  500.                     <button class="btn btn-primary" id="send" type="submit" style="display: none">Envoyer</button>
  501.                 </div>
  502.             </div>
  503.             <div id="sub-search-div" class="sub-search-div" style="display: none">
  504.                 <div class="col-lg-3 div-form">
  505.                     <input class="sub-search-input" name="budget" value="{% if app.session.get('filter') %}{{ app.session.get('filter')['budget'] }}{% endif %}" id="budget" type="text" placeholder="Budget max.">
  506.                 </div>
  507.                 <div id="rooms-drop" class="dropdown">
  508.                     <div class="undroped">
  509.                         <p class="undroped-header transparent-font">{% if app.session.get('filter') and app.session.get('filter')['rooms'] %}{{ app.session.get('filter')['rooms'] }}{% else %}Nombre de chambres{% endif %}</p>
  510.                         <p class="undroped-subheader good-place"></p>
  511.                         <input type="hidden" class="input-subheader" name="rooms">
  512.                     </div>
  513.                     <div class="droped">
  514.                         <div class="dropdown-header">Nombre de chambres</div>
  515.                         <ul id="rooms-li" class="items">
  516.                             <li class="item" data-value="">Indifférent</li>
  517.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 1 %}selected{% endif %}" data-value ="1">1</li>
  518.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 2 %}selected{% endif %}" data-value ="2">2</li>
  519.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 3 %}selected{% endif %}" data-value ="3">3</li>
  520.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 4 %}selected{% endif %}" data-value ="4">4</li>
  521.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 5 %}selected{% endif %}" data-value ="5">5</li>
  522.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['rooms'] == 6 %}selected{% endif %}" data-value ="6">6</li>
  523.                         </ul>
  524.                     </div>
  525.                 </div>
  526.                 <div id="area-drop" class="dropdown">
  527.                     <div class="undroped">
  528.                         <p class="undroped-header transparent-font">
  529.                             {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined %}
  530.                                 {% if app.session.get('filter')['area-minimum'] == '' %}
  531.                                     Indifférent
  532.                                 {% else %}
  533.                                     {{ app.session.get('filter')['area-minimum'] }}
  534.                                 {% endif %}
  535.                             {% else %}
  536.                                 Surface minimum
  537.                             {% endif %}
  538.                         </p>
  539.                         <p class="undroped-subheader good-place"></p>
  540.                         <input type="hidden" class="input-subheader" name="area-minimum">
  541.                     </div>
  542.                     <div class="droped">
  543.                         <div class="dropdown-header">Surface minimum</div>
  544.                         <ul id="area-li" class="items">
  545.                             <li class="item {% if app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == '' %}selected{% endif %}" data-value="">Indifférent</li>
  546.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 20 %}selected{% endif %}" data-value ="20">20 m²</li>
  547.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 30 %}selected{% endif %}" data-value ="30">30 m²</li>
  548.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 40 %}selected{% endif %}" data-value ="40">40 m²</li>
  549.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 50 %}selected{% endif %}" data-value ="50">50 m²</li>
  550.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 60 %}selected{% endif %}" data-value ="60">60 m²</li>
  551.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 70 %}selected{% endif %}" data-value ="70">70 m²</li>
  552.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 80 %}selected{% endif %}" data-value ="80">80 m²</li>
  553.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 90 %}selected{% endif %}" data-value ="90">90 m²</li>
  554.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 100 %}selected{% endif %}" data-value ="100">100 m²</li>
  555.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 110 %}selected{% endif %}" data-value ="110">110 m²</li>
  556.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 120 %}selected{% endif %}" data-value ="120">120 m²</li>
  557.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 130 %}selected{% endif %}" data-value ="130">130 m²</li>
  558.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 140 %}selected{% endif %}" data-value ="140">140 m²</li>
  559.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 150 %}selected{% endif %}" data-value ="150">150 m²</li>
  560.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 160 %}selected{% endif %}" data-value ="160">160 m²</li>
  561.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 170 %}selected{% endif %}" data-value ="170">170 m²</li>
  562.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 180 %}selected{% endif %}" data-value ="180">180 m²</li>
  563.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 190 %}selected{% endif %}" data-value ="190">190 m²</li>
  564.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 200 %}selected{% endif %}" data-value ="200">200 m²</li>
  565.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 250 %}selected{% endif %}" data-value ="250">250 m²</li>
  566.                             <li class="item {% if app.session.get('filter') and app.session.get('filter')['area-minimum'] is defined and app.session.get('filter')['area-minimum'] == 300 %}selected{% endif %}" data-value ="300">300 m²</li>
  567.                         </ul>
  568.                     </div>
  569.                 </div>
  570.                 {#
  571.                 <div class="col-lg-3 div-form">
  572.                     <input class="sub-search-input" id="area-minimum" value="{% if app.session.get('filter') %}{{ app.session.get('filter')['area-minimum'] }}{% endif %}" name="area-minimum" type="text" placeholder="Surface minimum.">
  573.                 </div>
  574.                 #}
  575.             </div>
  576.         </div>
  577.     </form>
  578. </div>
  579. {% block body %}
  580. {% endblock %}
  581. {% if app.request.attributes.get('_route') == 'home' %}
  582.     <div id="div-newsletter-mobile" class="" style="display: none">
  583.         <div class="col-lg-12" style="display: flex; justify-content:center; margin-top: 20px;">
  584.            <div class="col-lg-12">
  585.                <p class="newsletter-title">NEWSLETTER</p>
  586.            </div>
  587.         </div>
  588.         <div class="col-lg-12" id="div-form-newsletter" style="display: flex; justify-content: space-around;">
  589.             <form method="post" action="{{ path('mailchimp') }}" id="form-newsletter">
  590.                 <div class="input-group">
  591.                     <input class="form-control input-email" type="email" name="email" placeholder="Votre adresse mail">
  592.                     <button class="btn btn-primary button-newsletter" type="submit"><i class="fas fa-arrow-right"></i></button>
  593.                 </div>
  594.             </form>
  595.         </div>
  596.     </div>
  597. {% endif %}
  598. <footer class="footer">
  599.     <div class="container-fluid">
  600.         <ul id="footer-menu" class="footer-menu" style="margin-bottom: -15px;margin-top: -15px;">
  601.             <li>
  602.                 © {{ 'now'|date('Y') }} TRACOL - réalisé par <a href="https://www.idp.lu/" target="_blank" style="color:#fff;font-weight:bold">ID+P</a>
  603.             </li>
  604.             <li style="height: 160px">
  605.                 <!--?xml version="1.0" encoding="UTF-8"?-->
  606.                 <svg id="SVGDoc" width="201" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 201 232"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Ligne 38</title><path d="M100.5,100v32" fill-opacity="0" fill="#ffffff" stroke-dashoffset="0" stroke-linejoin="miter" stroke-linecap="butt" stroke-opacity="1" stroke="#5f5f5f" stroke-miterlimit="20" stroke-width="10"></path></g></g></svg>
  607.             </li>
  608.             <li class="row col-md-3">
  609.                 <div class="col-md-6">
  610.                     Bureaux commerciaux :<br>
  611.                     <span style="font-weight: 600;">5 rue Jules Ferry</span><br>
  612.                     <span> L-4368 Belvaux</span>
  613.                 </div>
  614.                 <div class="col-md-6">
  615.                     Siège social :<br>
  616.                     <span style="font-weight: 600;">Z.I. Rohlach</span><br>
  617.                     <span>L-5280 Sandweiller</span>
  618.                 </div>
  619.             </li>
  620.             <li style="height: 130px">
  621.                 <!--?xml version="1.0" encoding="UTF-8"?-->
  622.                 <svg id="SVGDoc" width="201" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 201 232"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Ligne 38</title><path d="M100.5,100v32" fill-opacity="0" fill="#ffffff" stroke-dashoffset="0" stroke-linejoin="miter" stroke-linecap="butt" stroke-opacity="1" stroke="#5f5f5f" stroke-miterlimit="20" stroke-width="10"></path></g></g></svg>
  623.             </li>
  624.             <li class="col-md-2 d-flex justify-content-around">
  625.                 <a target="_blank" href="https://www.facebook.com/tracolimmobilier/"><i class="fab fa-facebook-f fa-2x" style="color:#fff;margin-top:0"></i></a>
  626.                 <a target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i class="fab fa-linkedin fa-2x" style="color:#fff;margin-top:0"></i></a>
  627.                 <a target="_blank" href="https://www.instagram.com/tracolimmobilier/"><i class="fab fa-instagram fa-2x" style="color:#fff;margin-top:0"></i></a>
  628.                 <a target="_blank" href="https://www.youtube.com/channel/UCLl8G5ZCdyslVR_4ANkD6GA" class="d-flex align-items-end align-items-center"><i class="fab fa-youtube fa-2x" style="color:#fff"></i></a>
  629.             </li>
  630.             <li style="height: 130px" class="last-separator">
  631.                 <!--?xml version="1.0" encoding="UTF-8"?-->
  632.                 <svg id="SVGDoc" width="201" height="100%" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 201 232"><defs></defs><desc>Generated with Avocode.</desc><g><g><title>Ligne 38</title><path d="M100.5,100v32" fill-opacity="0" fill="#ffffff" stroke-dashoffset="0" stroke-linejoin="miter" stroke-linecap="butt" stroke-opacity="1" stroke="#5f5f5f" stroke-miterlimit="20" stroke-width="10"></path></g></g></svg>
  633.             </li>
  634.             <li class="grey legal d-flex align-items-center">
  635.                 <a href="{{ path('contact') }}" class="contact-link"><i class="fa fa-envelope fa-2x" style="color:#fff"></i></a>
  636.                 <div class="d-flex flex-column">
  637.                     <a href="{{ path('mentions') }}" style="color:#fff!important;margin-bottom:6px;">Mentions légales</a>
  638.                     <a href="{{ path('cgu') }}" style="color:#fff!important;margin-bottom:6px">Conditions Générales d'Utilisation</a>
  639.                     <a href="{{ path('privacy_policy') }}" style="color:#fff!important;margin-bottom:6px">Politique de confidentialité</a>
  640.                     <a href="{{ path('cookies') }}" style="color:#fff!important;margin-bottom:15px">Gestion des cookies</a>
  641.                 </div>
  642.             </li>
  643.         </ul>
  644.         <ul id="footer-menu-mobile" class="footer-menu" style="display:none; margin-bottom: -15px;margin-top: -15px;">
  645.             <li class="grey legal d-flex align-items-center flex-column mt-3">
  646.                 <a href="{{ path('contact') }}" class="contact-link mr-0" style="margin-right:0!important;"><i class="fa fa-envelope fa-2x" style="color:#fff"></i></a>
  647.                 <div class="d-flex flex-column align-items-center">
  648.                     <a href="{{ path('mentions') }}" style="color:#fff!important;margin-bottom:6px;">Mentions légales</a>
  649.                     <a href="{{ path('cgu') }}" style="color:#fff!important;margin-bottom:6px">Conditions Générales d'Utilisation</a>
  650.                     <a href="{{ path('privacy_policy') }}" style="color:#fff!important;margin-bottom:6px">Politique de confidentialité</a>
  651.                     <a href="{{ path('cookies') }}" style="color:#fff!important;margin-bottom:15px">Gestion des cookies</a>
  652.                 </div>
  653.             </li>
  654.             <li>
  655.                 <div style="display: flex">
  656.                     <span style="font-weight: 600;">Z.I. Rohlach</span><br>
  657.                     <span>L-5280 Sandweiller</span>
  658.                 </div>
  659.             </li>
  660.             <li>
  661.                 © 2021 TRACOL - réalisé par <a href="https://www.idp.lu/" target="_blank" style="color:#fff;font-weight:bold">ID+P</a>
  662.             </li>
  663.         </ul>
  664.     </div>
  665. </footer>
  666. <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
  667. <script>
  668.     if (window.matchMedia("(max-width: 768px)").matches && window.location.pathname === '/') {
  669.         /* the viewport is less than 768 pixels wide */
  670.     //      $('#projects').slick({
  671.     //     dots: false,
  672.     //     infinite: true,
  673.     //     speed: 300,
  674.     //     slidesToShow: 1,
  675.     //     slidesToScroll: 1,
  676.     //     autoplay: true,
  677.     //     responsive: [
  678.     //         {
  679.     //             breakpoint: 576,
  680.     //             settings: {
  681.     //                 slidesToShow: 1,
  682.     //                 slidesToScroll: 1
  683.     //             }
  684.     //         }
  685.     //         // You can unslick at a given breakpoint now by adding:
  686.     //         // settings: "unslick"
  687.     //         // instead of a settings object
  688.     //     ]
  689.     // });
  690.     }
  691.     //
  692.     // const searchMobile = document.getElementById('search-detail-mobile')
  693.     // const searchSubDivMobile = document.getElementById('sub-search-div-mobile')
  694.     //
  695.     // searchMobile.addEventListener('click', function (e) {
  696.     //     e.preventDefault()
  697.     //     searchSubDivMobile.style.display = 'flex'
  698.     //     searchMobile.style.display = 'none'
  699.     // })
  700. </script>
  701. <script>
  702.     if (document.getElementById('filterProperties')) {
  703.         let formSelectProperties = document.getElementById('filterProperties');
  704.         let properties = document.querySelectorAll('#properties .div-img-hover-2');
  705.         let arrayProperties = [];
  706.         for (let property of properties) {
  707.             arrayProperties.push({
  708.                 'property': property,
  709.                 'price': property.getAttribute('data-price'),
  710.                 'date': new Date(property.getAttribute('data-date')),
  711.             });
  712.         }
  713.         formSelectProperties.addEventListener('change', () => {
  714.             if (formSelectProperties.value === 'desc') {
  715.                 arrayProperties.sort((a,b) =>  b.price - a.price )
  716.             } else if (formSelectProperties.value === 'asc') {
  717.                 arrayProperties.sort((a,b) =>  a.price - b.price )
  718.             } else if (formSelectProperties.value === 'date') {
  719.                 arrayProperties.sort((a,b) =>  b.date - a.date )
  720.             }
  721.             let finalProperties = [];
  722.             let containerProperties = document.getElementById('properties');
  723.             containerProperties.innerHTML = '';
  724.             for (let prop of arrayProperties) {
  725.                 console.log(prop.property)
  726.                 containerProperties.insertAdjacentElement('beforeend', prop.property)
  727.             }
  728.         });
  729.     }
  730.     // let searchglobal = document.getElementById('submit-searchglobal');
  731.         // searchglobal.addEventListener('click', function() {
  732.         //     const formSearch = document.getElementById('form-searchglobal-normal')
  733.         //     const subSearch = document.getElementById('sub-searchglobal-div')
  734.         //     const send = document.getElementById('sendGlobal')
  735.         //             formSearch.classList.toggle('stickyYForm')
  736.         //             send.classList.toggle('send-display')
  737.         //             subSearch.classList.toggle('sub-searchglobal-div-height')
  738.         // })
  739. </script>
  740. <script>
  741.     const swiper = new Swiper('.swiper', {
  742.         loop: false,
  743.     });
  744.     if (window.location.pathname === '/') {
  745.         const navbar = document.getElementsByClassName('navbar navbar-expand-xl fixed-top')
  746.         const header = document.getElementsByClassName('header-home')
  747.         navbar[0].style.backgroundColor = "#fff"
  748.         navbar[0].style.position = "fixed"
  749.         header[0].style.marginTop = "0px"
  750.         header[0].style.height = "100vw"
  751.     }
  752.     let widthWindow = window.innerWidth;
  753.     var searchLocation;
  754.     if (widthWindow > 770) {
  755.         searchLocation = document.getElementById('location-drop');
  756.     } else {
  757.         searchLocation = document.getElementById('location-drop-mobile');
  758.     }
  759.     var searchLocationLi;
  760.     if (widthWindow > 770) {
  761.         searchLocationLi = document.getElementById('location-li');
  762.     } else {
  763.         searchLocationLi = document.getElementById('location-li-mobile');
  764.     }
  765.     const url = '/form/search';
  766.     fetch(url, {
  767.         method: 'GET',
  768.         // body: JSON.stringify({
  769.         //     searchLocation: this.value
  770.         // })
  771.     }).then(function(response) {
  772.         return response.json()
  773.     }).then(function (data) {
  774.         console.log(data)
  775.         searchLocationLi.innerHTML = '';
  776.         for (const datum in data) {
  777.             const li = document.createElement('li')
  778.             li.classList.add('item')
  779.             li.dataset.value = data[datum]
  780.             li.addEventListener('click', function () {
  781.                 searchLocation.value = this.dataset.itemName
  782.             })
  783.             li.innerHTML += data[datum]
  784.             searchLocationLi.appendChild(li)
  785.             li.addEventListener('click', event => {
  786.                 li.classList.add('selected');
  787.             });
  788.         }
  789.     searchLocation.addEventListener("click", function (){
  790.             searchLocationLi.addEventListener('click', function (e) {
  791.                 let target = e.target;
  792.                 var dropId;
  793.                 if (widthWindow > 770) {
  794.                     dropId = document.getElementById('location-drop');
  795.                 } else {
  796.                     dropId = document.getElementById('location-drop-mobile');
  797.                 }
  798.                 dropId.querySelector('.undroped-subheader').innerHTML = target.innerHTML
  799.                 dropId.querySelector('.input-subheader').value = target.dataset.value
  800.                 dropId.classList.remove('open')
  801.                 dropId.querySelector('.undroped').style.display = 'block'
  802.                 dropId.querySelector('.droped').style.display = 'none'
  803.                 dropId.querySelector('.undroped-subheader').classList.add('selected')
  804.             })
  805.         });
  806.     })
  807.     const searchTransactionLi = document.getElementById('transaction-li');
  808.     console.log(searchTransactionLi);
  809.     const searchPropertyLi = document.getElementById('property-li');
  810.     const searchRoomLi = document.getElementById('rooms-li');
  811.     const searchAreaLi = document.getElementById('area-li');
  812.     searchTransactionLi.addEventListener('click', function (e) {
  813.         let target = e.target;
  814.         const dropId = document.getElementById('transaction-drop')
  815.         dropId.querySelector('.input-subheader').value = target.dataset.value
  816.     });
  817.     searchPropertyLi.addEventListener('click', function (e) {
  818.         let target = e.target;
  819.         const dropId = document.getElementById('property-drop')
  820.         dropId.querySelector('.input-subheader').value = target.dataset.value
  821.     });
  822.     searchRoomLi.addEventListener('click', function (e) {
  823.         let target = e.target;
  824.         const dropId = document.getElementById('rooms-drop');
  825.         dropId.querySelector('.input-subheader').value = target.dataset.value
  826.     });
  827.     searchAreaLi.addEventListener('click', function (e) {
  828.         let target = e.target;
  829.         const dropId = document.getElementById('area-drop')
  830.         dropId.querySelector('.input-subheader').value = target.dataset.value
  831.     });
  832.     for (const eElement of document.getElementsByClassName('projectButton')) {
  833.         eElement.addEventListener('click', function (e) {
  834.             e.preventDefault()
  835.             for (let button of document.getElementsByClassName('projectButton')) {
  836.                 if (button.classList.contains('all')){
  837.                     button.classList.remove('all')
  838.                     button.classList.add('come')
  839.                     button.querySelector('span').classList.replace('span-all', 'span-projects')
  840.                 }
  841.             }
  842.             eElement.classList.remove('come')
  843.             eElement.classList.add('all')
  844.             eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  845.             fetch('projects/home/display/'+this.dataset.id, {
  846.                 method: 'GET',
  847.             })
  848.                 .then(response => response.json())
  849.                 .then(data => {
  850.                     document.getElementById('projects').innerHTML = ''
  851.                     document.getElementById('projects').innerHTML = data.data
  852.                     if (window.matchMedia("(max-width: 768px)").matches && window.location.pathname === '/') {
  853.                         // if (document.getElementById('projects').classList.contains('slick-initialized')) {
  854.                         //     document.getElementById('projects').classList.remove('slick-initialized')
  855.                         //     document.getElementById('projects').classList.remove('slick-slider')
  856.                         // }
  857.                         // $('#projects').slick({
  858.                         //     dots: false,
  859.                         //     infinite: true,
  860.                         //     speed: 300,
  861.                         //     slidesToShow: 1,
  862.                         //     slidesToScroll: 1,
  863.                         //     autoplay: true,
  864.                         //     responsive: [
  865.                         //         {
  866.                         //             breakpoint: 576,
  867.                         //             settings: {
  868.                         //                 slidesToShow: 1,
  869.                         //                 slidesToScroll: 1
  870.                         //             }
  871.                         //         }
  872.                         //     ]
  873.                         // })
  874.                     }
  875.                     _ww = $(window).width();
  876.                     if (_ww > 768){
  877.                         $('.div-img-hover-2').hover(function (e) {
  878.                             $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  879.                             var htext = $(this).find('.project-content').height();
  880.                             if (htext == undefined){htext = 0};
  881.                             $(this).find('.div-hover-2').animate({height : htext+180}, 150);
  882.                             $(this).find('.project-content').css({'visibility': 'visible'});
  883.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  884.                             //console.log('h : '+htext);
  885.                         }, function() {
  886.                             console.log('down');
  887.                             $(this).find('.div-hover-2').animate({height : 85}, 150);
  888.                             $(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  889.                             $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  890.                                 $(this).find('.project-content').css({'visibility': 'hidden'});
  891.                             });
  892.                         });
  893.                     } else {
  894.                         $('.div-img-hover-2').on( "click", function( event ) {
  895.                             console.log('tap tap');
  896.                             var opened = $(this).find('.div-hover-2').hasClass('open'),
  897.                                 ht = opened ? 85 : '100%',
  898.                                 vis = opened ? 0 : 1;
  899.                             $(this).find('.div-hover-2').toggleClass('open');
  900.                             $(this).find('.div-hover-2').animate({height : ht}, 150);
  901.                             $(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  902.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  903.                         });
  904.                     }
  905.                     $('.div-hover').hover(function (e) {
  906.                         $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  907.                     }, function() {
  908.                         $(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  909.                     });
  910.                     $('.div-hover').hover(function (e) {
  911.                         $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  912.                         var htext = $(this).find('.project-content').height();
  913.                         if (htext == undefined){htext = 0};
  914.                         $(this).animate({height : htext+180}, 150);
  915.                         $(this).find('.project-content').css({'visibility': 'visible'});
  916.                         $(this).find('.project-content').animate({opacity: 1}, 150);
  917.                         console.log('h : '+htext);
  918.                     }, function() {
  919.                         $(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  920.                         $(this).animate({height : 70}, 150);
  921.                         $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  922.                             $(this).find('.project-content').css({'visibility': 'hidden'});
  923.                         });
  924.                     });
  925.                 })
  926.                 .catch((error) => {
  927.                     console.error('Error:', error);
  928.                 });
  929.         })
  930.     }
  931.     for (const eElement of document.getElementsByClassName('projectButtonref')) {
  932.         eElement.addEventListener('click', function (e) {
  933.             e.preventDefault()
  934.             for (let button of document.getElementsByClassName('projectButtonref')) {
  935.                 if (button.classList.contains('all')){
  936.                     button.classList.remove('all')
  937.                     button.classList.add('come')
  938.                     button.querySelector('span').classList.replace('span-all', 'span-projects')
  939.                 }
  940.             }
  941.             eElement.classList.remove('come')
  942.             eElement.classList.add('all')
  943.             eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  944.             fetch('reference/home/display/'+this.dataset.id, {
  945.                 method: 'GET',
  946.             })
  947.                 .then(response => response.json())
  948.                 .then(data => {
  949.                     document.getElementById('references-home').innerHTML = ''
  950.                     document.getElementById('references-home').innerHTML = data.data
  951.                     _ww = $(window).width();
  952.                     var lightbox = $('.lightbox'),
  953.                         item = 0;
  954.                     $('.lightbox-on').click(function(e){
  955.                         e.stopPropagation();
  956.                         item = 0;
  957.                         console.log('click btn');
  958.                         var id = $(this).attr('data-id'),
  959.                             max = 0;
  960.                         $('#'+id).toggle();
  961.                         $('#'+id).animate({opacity: 1}, 300);
  962.                         $('#'+id).find('img').each(function( i ) {
  963.                             //console.log('h : '+$(this).height());
  964.                             //console.log('w : '+$(this).width());
  965.                             max = i;
  966.                             item = 1;
  967.                             counter(item, max+1);
  968.                             itemWidth($(this));
  969.                         });
  970.                     });
  971.                     lightbox.click(function(e) {
  972.                         e.stopPropagation();
  973.                         $(this).animate({opacity: 0}, 300, function(){
  974.                             $(this).toggle();
  975.                         });
  976.                     });
  977.                     $('.closer').on('click', function (e) {
  978.                         e.stopPropagation();
  979.                         $(this).parent().animate(
  980.                             {opacity: 0},
  981.                             300,
  982.                             function(){
  983.                                 $(this).toggle();
  984.                             }
  985.                         );
  986.                     });
  987.                     function itemWidth(img){
  988.                         img.closest('.items').width(img.width());
  989.                     }
  990.                     function counter(item, max){
  991.                         $('.counter').text(item + ' / ' + max);
  992.                     }
  993.                     $('.item', lightbox).on('click, swipeleft', function (e) {
  994.                         var wd = $(this).width(),
  995.                             last = $(this).parent().find('.item').last(),
  996.                             img = $(this).find('.img');
  997.                         itemWidth(img);
  998.                         $(this).animate(
  999.                             {marginLeft: -wd, opacity: 0},
  1000.                             500,
  1001.                             'swing',
  1002.                             function(){
  1003.                                 $(this).insertAfter(last);
  1004.                                 $(this).css({marginLeft: 0, opacity: 1});
  1005.                             }
  1006.                         );
  1007.                     });
  1008.                     $('.item', lightbox).on('swiperight', function (e) {
  1009.                         var wd = $(this).width(),
  1010.                             first = $(this).parent().find('.item').first(),
  1011.                             last = $(this).parent().find('.item').last(),
  1012.                             img = $(this).find('.img');
  1013.                         itemWidth(img);
  1014.                         $(last).insertBefore($(this));
  1015.                         $(last).css({marginLeft: -wd, opacity: 0});
  1016.                         $(this).parent().find('.item').eq(0).animate(
  1017.                             {marginLeft: 0, opacity: 1},
  1018.                             500,
  1019.                             'swing'
  1020.                         );
  1021.                     });
  1022.                     $('.arrows', lightbox).on('click', function (e) {
  1023.                         e.stopPropagation();
  1024.                         var wd = $(this).siblings('.items').find('.item').eq(0).width(),
  1025.                             max = $(this).siblings('.items').find('.item').length,
  1026.                             first = $(this).siblings('.items').find('.item').first(),
  1027.                             last = $(this).siblings('.items').find('.item').last(),
  1028.                             isRight = $(this).hasClass('right'),
  1029.                             marginL = isRight ? -wd : 0,
  1030.                             marginL0 = isRight ? 0: -wd,
  1031.                             opacOn = isRight ? 1 : 0,
  1032.                             opacOff = isRight ? 0 : 1;
  1033.                         if (!isRight){
  1034.                             $(last).insertBefore(first);
  1035.                             $(last).css({marginLeft: -wd, opacity: 0});
  1036.                             item++;
  1037.                             if (item == max+1) {item = 1};
  1038.                         } else {
  1039.                             item--;
  1040.                             if (item == 0) {item = max};
  1041.                         };
  1042.                         counter(item, max);
  1043.                         var img = $(this).siblings('.items').find('.item').eq(0).find('.img');
  1044.                         itemWidth(img);
  1045.                         $(this).siblings('.items').find('.item').eq(1).animate(
  1046.                             {opacity: opacOn},
  1047.                             500,
  1048.                             'swing');
  1049.                         $(this).siblings('.items').find('.item').eq(0).animate(
  1050.                             {marginLeft: marginL, opacity: 1},
  1051.                             500,
  1052.                             'swing',
  1053.                             function(){
  1054.                                 if (isRight){
  1055.                                     $(this).insertAfter(last);
  1056.                                     $(this).css({ marginLeft: 0, opacity: 1});
  1057.                                 }
  1058.                             }
  1059.                         );
  1060.                     });
  1061.                     if (_ww > 768){
  1062.                         $('.div-img-hover-2').hover(function (e) {
  1063.                             $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  1064.                             var htext = $(this).find('.project-content').height();
  1065.                             if (htext == undefined){htext = 0};
  1066.                             $(this).find('.div-hover-2').animate({height : htext+180}, 150);
  1067.                             $(this).find('.project-content').css({'visibility': 'visible'});
  1068.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  1069. //console.log('h : '+htext);
  1070.                         }, function() {
  1071.                             console.log('down');
  1072.                             $(this).find('.div-hover-2').animate({height : 85}, 150);
  1073.                             $(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  1074.                             $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  1075.                                 $(this).find('.project-content').css({'visibility': 'hidden'});
  1076.                             });
  1077.                         });
  1078.                     } else {
  1079.                         $('.div-img-hover-2').on( "tap", function( event ) {
  1080.                             console.log('tap tap');
  1081.                             var opened = $(this).find('.div-hover-2').hasClass('open'),
  1082.                                 ht = opened ? 85 : '100%',
  1083.                                 vis = opened ? 0 : 1;
  1084.                             $(this).find('.div-hover-2').toggleClass('open');
  1085.                             $(this).find('.div-hover-2').animate({height : ht}, 150);
  1086.                             $(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  1087.                         });
  1088.                     }
  1089.                 })
  1090.                 .catch((error) => {
  1091.                     console.error('Error:', error);
  1092.                 });
  1093.         })
  1094.     }
  1095.     /*
  1096.     window.addEventListener('scroll', function(){
  1097.         let search = document.getElementById('submit-search');
  1098.         const formSearch = document.getElementById('form-search-normal')
  1099.         const subSearch = document.getElementById('sub-search-div')
  1100.         const send = document.getElementById('send')
  1101.         if (search) {
  1102.             search.classList.toggle("stickyY", window.scrollY > 730);
  1103.             if (search.classList.contains("stickyY")) {
  1104.                 search.setAttribute('type', 'button')
  1105.                 search.addEventListener('click', function (e) {
  1106.                     e.preventDefault()
  1107.                     formSearch.classList.toggle('stickyYForm')
  1108.                     send.classList.toggle('send-display')
  1109.                     subSearch.classList.toggle('sub-search-div-height')
  1110.                 })
  1111.             } else  search.setAttribute('type', 'submit')
  1112.         }
  1113.     })
  1114. */
  1115. </script>
  1116. {#
  1117. <script>
  1118.     var _dropin = $('.dropdown'),
  1119.         _delay = 150,
  1120.         _ww = $(window).width();
  1121.     $('.undroped', _dropin).on('click', function (e) {
  1122.         console.log('CLICKKKK 1')
  1123.         $('.dropdown-header').closest('.droped').removeClass('open');
  1124.         $('.dropdown-header').closest('.dropdown').find('.undroped').show();
  1125.         $('.dropdown-header').closest('.droped').hide();
  1126.         $('.dropdown-header').closest('.droped').find('.items').animate({height: 0});
  1127.         $(this).hide();
  1128.         $(this).siblings('.droped').find('.items').height('auto');
  1129.         $(this).siblings('.droped').show();
  1130.         var ht = $(this).siblings('.droped').find('.items').height();
  1131.         $(this).attr('data-ht', ht);
  1132.         $(this).siblings('.droped').find('.items').height(0);
  1133.         $(this).siblings('.droped').addClass('open');
  1134.         $(this).siblings('.droped').find('.items').animate({height: ht + 40}, _delay);
  1135.     });
  1136.     $('.dropdown-header', _dropin).on('click', function (e) {
  1137.         var ht = $(this).closest('.dropdown').find('.undroped').attr('data-ht');
  1138.         $(this).closest('.droped').removeClass('open');
  1139.         $(this).closest('.droped').find('.items').animate({height: 0}, _delay, function () {
  1140.             $(this).closest('.dropdown').find('.undroped').show();
  1141.             $(this).closest('.droped').hide();
  1142.         });
  1143.     });
  1144.     const searchLocationm = document.getElementById('location-drop-mobile');
  1145.     const searchLocationLim = document.getElementById('location-li-mobile');
  1146.     const urlm = '/form/search';
  1147.     searchLocationm.addEventListener("click", function (){
  1148.         fetch(urlm, {
  1149.             method: 'GET',
  1150.             // body: JSON.stringify({
  1151.             //     searchLocation: this.value
  1152.             // })
  1153.         }).then(function(response) {
  1154.             return response.json()
  1155.         }).then(function (data) {
  1156.             searchLocationLim.innerHTML = '';
  1157.             for (const datum in data) {
  1158.                 const li = document.createElement('li')
  1159.                 li.classList.add('item')
  1160.                 li.dataset.value = data[datum]
  1161.                 li.addEventListener('click', function () {
  1162.                     searchLocationm.value = this.dataset.itemName
  1163.                 })
  1164.                 li.innerHTML += data[datum]
  1165.                 searchLocationLim.appendChild(li)
  1166.                 li.addEventListener('click', event => {
  1167.                     li.classList.add('selected');
  1168.                 });
  1169.             }
  1170.             searchLocationLim.addEventListener('click', function (e) {
  1171.                 searchLocationLim.req
  1172.                 let target = e.target;
  1173.                 const dropId = document.getElementById('location-drop-mobile')
  1174.                 dropId.querySelector('.undroped-subheader').innerHTML = target.innerHTML
  1175.                 dropId.querySelector('.input-subheader').value = target.dataset.value
  1176.                 dropId.classList.remove('open')
  1177.                 dropId.querySelector('.undroped').style.display = 'block'
  1178.                 dropId.querySelector('.droped').style.display = 'none'
  1179.                 dropId.querySelector('.undroped-subheader').classList.add('selected')
  1180.             })
  1181.         });
  1182.     })
  1183.     if (window.location.href.includes('action=postule')) {
  1184.         let select = document.getElementById('contact_form_object');
  1185.         let options = select.childNodes;
  1186.         let optionPostule = options[1];
  1187.         optionPostule.setAttribute('selected', '')
  1188.         console.log(optionPostule)
  1189.     }
  1190.     /* the viewport is less than 768 pixels wide */
  1191.     //      $('#projects').slick({
  1192.     //     dots: false,
  1193.     //     infinite: true,
  1194.     //     speed: 300,
  1195.     //     slidesToShow: 1,
  1196.     //     slidesToScroll: 1,
  1197.     //     autoplay: true,
  1198.     //     responsive: [
  1199.     //         {
  1200.     //             breakpoint: 576,
  1201.     //             settings: {
  1202.     //                 slidesToShow: 1,
  1203.     //                 slidesToScroll: 1
  1204.     //             }
  1205.     //         }
  1206.     //         // You can unslick at a given breakpoint now by adding:
  1207.     //         // settings: "unslick"
  1208.     //         // instead of a settings object
  1209.     //     ]
  1210.     // });
  1211.     //
  1212.     // const searchMobile = document.getElementById('search-detail-mobile')
  1213.     // const searchSubDivMobile = document.getElementById('sub-search-div-mobile')
  1214.     //
  1215.     // searchMobile.addEventListener('click', function (e) {
  1216.     //     e.preventDefault()
  1217.     //     searchSubDivMobile.style.display = 'flex'
  1218.     //     searchMobile.style.display = 'none'
  1219.     // })
  1220. </script>
  1221. #}
  1222. </body>
  1223. </html>