templates/base.html.twig line 136

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Tracol | {% block title %}{% endblock %}</title>
  6.     <link rel="icon" type="image/x-icon" href="{{ asset("build/favicon-white.ico") }}">
  7.     {% block metaDescription %}{% endblock %}
  8.     <meta name="viewport" content= "width=device-width, initial-scale=1.0">
  9.     {% block stylesheets %}
  10.         {{ encore_entry_link_tags('app') }}
  11.         <link rel="stylesheet" href="https://unpkg.com/@egjs/flicking/dist/flicking.css" crossorigin="anonymous" />
  12.         <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css"/>
  13.         <!--link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /-->
  14.     {% endblock %}
  15.     <script id="Cookiebot" src="
  16.     https://consent.cookiebot.com/uc.js"
  17.     data-cbid="d4dd1335-1dc0-4d3c-b4c3-49e9043d2e0e" data-blockingmode="auto" type="text/javascript"></script>
  18.         {% block javascripts %}
  19.         {{ encore_entry_script_tags('app') }}
  20. {#        <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="d4dd1335-1dc0-4d3c-b4c3-49e9043d2e0e" data-blockingmode="auto" type="text/javascript"></script>#}
  21.         <script
  22.                 src="https://code.jquery.com/jquery-3.6.0.min.js"
  23.                 integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
  24.                 crossorigin="anonymous">
  25.         </script>
  26.         
  27.         <script src="https://unpkg.com/@egjs/flicking/dist/flicking.pkgd.min.js" crossorigin="anonymous"></script>
  28.         <script type="text/javascript" src="//cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
  29.         <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
  30.         <script src="{{ asset("/lightboxed/lightboxed.js") }}"></script>
  31.         <!--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-->
  32.         
  33.     {% endblock %}
  34.     <style>
  35.         @media (min-width: 1200px) and (max-width:1498px) {
  36.             .navbar-expand-xl .navbar-collapse {
  37.                 display: flex !important;
  38.                 /* flex-basis: auto; */
  39.                 justify-content: center;
  40.             }
  41.         }
  42.     </style>
  43. </head>
  44. <body>
  45.     {% if popup2024 is defined and popup2024 %}
  46.         {% include '_popup2024.html.twig' %}
  47.     {% endif %}
  48. {#<script id="CookieDeclaration" src="https://consent.cookiebot.com/d4dd1335-1dc0-4d3c-b4c3-49e9043d2e0e/cd.js" type="text/javascript" async></script>#}
  49. {% for success in app.flashes('success') %}
  50.     <div class="alert alert-success" role="alert">
  51.         <p class="alert-link">{{ success }}</p>
  52.     </div>
  53. {% endfor %}
  54. {% for error in app.flashes('error') %}
  55.     <div class="col-lg-8 mx-auto alert alert-danger" role="alert">
  56.         <p class="alert-link">{{ error }}</p>
  57.     </div>
  58. {% endfor %}
  59. {#
  60. <div class="d-flex flex-column flex-shrink-0 bg-light black" style="width: 4rem;">
  61.     <a  href="https://www.facebook.com/tracolimmobilier/"><i class="fab fa-facebook-f"></i></a>
  62.     <a href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i class="fab fa-linkedin"></i></a>
  63.     <a href="https://www.instagram.com/tracolimmobilier/"><i class="fab fa-instagram"></i></a>
  64. </div>
  65. <div id="div-newsletter" class="d-flex flex-column flex-shrink-0 bg-light orange">
  66.     <a id="text-vertical" class="text-vertical" href="#">NEWSLETTER</a>
  67.     <div id="div-form-newsletter" style="opacity: 0">
  68.         <span id="span-newsletter" style="opacity: 0">Restez informé ! Abonnez-vous à notre newsletter.</span>
  69.         <form action="{{ path('mailchimp') }}" id="form-newsletter" style="display: none">
  70.             <div class="input-group">
  71.                 <input id="input-email" class="form-control input-email" type="email" name="email" placeholder="Votre adresse mail">
  72.                 <button class="btn btn-primary button-newsletter" type="submit"><i class="fas fa-arrow-right"></i></button>
  73.             </div>
  74.         </form>
  75.     </div>
  76. </div>
  77. #}
  78. {% set propertiesApi = get_properties %}
  79. <nav class="navbar navbar-expand-xl fixed-top homepage">
  80.     <div id="center-nav" class="container-fluid">
  81.         <button class="navbar-toggler"
  82.                 type="button"
  83.                 data-bs-toggle="collapse"
  84.                 data-bs-target="#navbarNav"
  85.                 aria-controls="navbarNav"
  86.                 aria-expanded="false"
  87.                 aria-label="Toggle navigation">
  88.             <span class="navbar-toggler-icon">
  89.                 <i class="fas fa-bars"></i>
  90.             </span>
  91.         </button>
  92.         <a href="{{ path('index') }}" class="tracol-logo">
  93.             <svg xmlns="http://www.w3.org/2000/svg" width="136.339" height="51.127" viewBox="0 0 136.339 51.127">
  94.                 <g id="Groupe_4469" data-name="Groupe 4469" transform="translate(11823.999 14639)">
  95.                     <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"/>
  96.                     <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)"/>
  97.                     <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)"/>
  98.                     <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)"/>
  99.                     <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)"/>
  100.                     <rect id="Rectangle_73" data-name="Rectangle 73" width="1.585" height="8.956" transform="translate(-11803.191 -14596.829)"/>
  101.                     <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)"/>
  102.                     <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)"/>
  103.                     <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)"/>
  104.                     <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)"/>
  105.                     <rect id="Rectangle_74" data-name="Rectangle 74" width="1.586" height="8.956" transform="translate(-11753.034 -14596.829)"/>
  106.                     <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)"/>
  107.                     <rect id="Rectangle_75" data-name="Rectangle 75" width="1.586" height="8.956" transform="translate(-11738.931 -14596.829)"/>
  108.                     <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)"/>
  109.                     <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)"/>
  110.                 </g>
  111.             </svg>
  112.         </a>
  113.         <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">
  114.             <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">
  115.                 <g id="Groupe_3817" data-name="Groupe 3817" transform="translate(-1528.861 -105)">
  116.                     <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"/>
  117.                     <g id="Groupe_3794" data-name="Groupe 3794" transform="translate(1545.335 126.696)">
  118.                         <g id="np_search_1868241_000000">
  119.                             <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"/>
  120.                             <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"/>
  121.                         </g>
  122.                     </g>
  123.                 </g>
  124.             </svg>
  125.         </button>
  126.         <!-- Modal -->
  127.         {% include '_navSearch.html.twig' %}
  128.         <div class="nav-elements collapse navbar-collapse" id="navbarNav">
  129.             <ul class="navbar-nav">
  130.                 {#
  131.                 <li class="nav-item">
  132.                     <a class="nav-link active" aria-current="page" href="{{ path('tracol') }}">Tracol</a>
  133.                 </li>
  134.                 #}
  135.                 <li class="nav-item">
  136.                     <a class="nav-link" href="{{ path('about') }}">Qui sommes-nous ?</a>
  137.                 </li>
  138.                 <li class="nav-item">
  139.                     <a class="nav-link" href="{{ path('properties', {'keyword': 'vente'}) }}">Acheter</a>
  140.                 </li>
  141.                 <li class="nav-item">
  142.                     <a class="nav-link" href="{{ path('properties', {'keyword': 'location'}) }}">Louer</a>
  143.                 </li>
  144.                 <li class="nav-item">
  145.                     <a class="nav-link" href="{{ path('vendre', {'keyword': 'location'}) }}">Vendre</a>
  146.                 </li>
  147.                 <li class="nav-item">
  148.                     <a class="nav-link" href="{{ path('projects', {'keyword': 'location'}) }}">Projets</a>
  149.                 </li>
  150.                 <li class="nav-item">
  151.                     <a class="nav-link" href="{{ path('reference') }}">Références</a>
  152.                 </li>
  153.                 {#
  154.                 <li class="nav-item">
  155.                     <a class="nav-link" href="{{ path('team') }}">Notre equipe</a>
  156.                 </li>
  157.                 #}
  158. {#                <li class="nav-item">#}
  159. {#                    <a class="nav-link" href="#">Actualités</a>#}
  160. {#                </li>#}
  161.                 {#
  162.                 <li class="nav-item">
  163.                     <a class="nav-link" href="{{ path('carrieres') }}">Carrières</a>
  164.                 </li>
  165.                 #}
  166.                 <li id="enveloppe-mobile" class="nav-item">
  167.                     <a class="nav-link" href="{{ path('contact') }}">
  168.                         {#
  169.                         <i class="far fa-envelope"></i>
  170.                         #}
  171.                         Contact
  172.                     </a>
  173.                 </li>
  174.             </ul>
  175.         </div>
  176.         <div class="contacts-social">
  177.             <div class="phone-contact">
  178.                 <div>
  179.                     <svg class="svg-phone" xmlns="http://www.w3.org/2000/svg" width="31.059" height="27.732" viewBox="0 0 31.059 27.732">
  180.                         <g id="np_phone-call_3960627_000000" transform="translate(-6.248 -15.626)">
  181.                             <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="#5f5f5f" stroke="#5f5f5f" />
  182.                         </g>
  183.                     </svg>
  184.                 </div>
  185.                 <div>
  186.                     <p class="phone">
  187.                         {#
  188.                         Besoin d'informations ? <br>
  189.                         #}
  190.                         <a href="tel:+3522658601">(+352) 26 58 60-1</a>
  191.                     </p>
  192.                 </div>
  193.             </div>
  194.             <div class="socials">
  195.                 <a target="_blank" href="https://www.facebook.com/tracolimmobilier/">
  196.                     <i class="fab fa-facebook-f fa-2x"></i>
  197.                 </a>
  198.                 <a target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/">
  199.                     <i class="fab fa-linkedin fa-2x"></i>
  200.                 </a>
  201.                 <a target="_blank" href="https://www.instagram.com/tracolimmobilier/">
  202.                     <i class="fab fa-instagram fa-2x"></i>
  203.                 </a>
  204.                 <a target="_blank" href="https://www.youtube.com/channel/UCLl8G5ZCdyslVR_4ANkD6GA">
  205.                     <i class="fab fa-youtube fa-2x"></i>
  206.                 </a>
  207.             </div>
  208.         </div>
  209.         <div id="footer-nav-mobile" style="display: none">
  210.                 <div>
  211.                     <a href="tel:+3522658601">
  212.                         <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">
  213.                             <g id="np_phone-call_3960627_000000" transform="translate(-6.248 -15.626)">
  214.                                 <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="#5f5f5f" stroke="#5f5f5f" />
  215.                             </g>
  216.                         </svg>
  217.                     </a>
  218.                 </div>
  219.                 <div>
  220.                     <a href="{{ path('contact') }}"><i style="color: #5f5f5f;" class="far fa-envelope fa-2x"></i></a>
  221.                 </div>
  222.                 <div>
  223.                     <a target="_blank" href="https://www.facebook.com/tracolimmobilier/"><i style="color: #5f5f5f;" class="fab fa-facebook-f"></i></a>
  224.                 </div>
  225.                 <div>
  226.                     <a target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i style="color: #5f5f5f;" class="fab fa-linkedin"></i></a>
  227.                 </div>
  228.                 <div>
  229.                     <a target="_blank" href="https://www.instagram.com/tracolimmobilier/"><i style="color: #5f5f5f;" class="fab fa-instagram"></i></a>
  230.                 </div>
  231.                 <div>
  232.                     <a target="_blank" href="https://www.youtube.com/channel/UCLl8G5ZCdyslVR_4ANkD6GA"><i style="color: #5f5f5f;" class="fab fa-youtube fa-2x"></i></a>
  233.                 </div>
  234.         </div>
  235.     </div>
  236. </nav>
  237. {% include '_navSubSearch.html.twig' %}
  238. {% block body %}
  239. {% endblock %}
  240. {% if app.request.attributes.get('_route') == 'home' %}
  241.     <div id="div-newsletter-mobile" class="" style="display: none">
  242.         <div class="col-lg-12" style="display: flex; justify-content:center; margin-top: 20px;">
  243.            <div class="col-lg-12">
  244.                <p class="newsletter-title">NEWSLETTER</p>
  245.            </div>
  246.         </div>
  247.         <div class="col-lg-12" id="div-form-newsletter" style="display: flex; justify-content: space-around;">
  248.             <form method="post" action="{{ path('mailchimp') }}" id="form-newsletter">
  249.                 <div class="input-group">
  250.                     <input class="form-control input-email" type="email" name="email" placeholder="Votre adresse mail">
  251.                     <button class="btn btn-primary button-newsletter" type="submit"><i class="fas fa-arrow-right"></i></button>
  252.                 </div>
  253.             </form>
  254.         </div>
  255.     </div>
  256. {% endif %}
  257. {% set mentions = content('Footer', 'Footer') %}
  258. {% set cgu = content('Footer', 'Footer2') %}
  259. {% set confidentialite = content('Footer', 'Footer3') %}
  260. {% set cookie = content('Footer', 'Footer4') %}
  261. {% set adress = content('Footer', 'Footer adresse') %}
  262. {% set siege = content('Footer', 'Footer siège') %}
  263. <footer class="footer">
  264.     <div class="container-fluid">
  265.         <ul id="footer-menu" class="footer-menu" style="margin-bottom: -15px;margin-top: -15px;">
  266.             <li>
  267.                 © {{ 'now'|date('Y') }} TRACOL - réalisé par <a href="https://www.idp.lu/" target="_blank" style="font-weight:bold">ID+P</a>
  268.             </li>
  269.             <li style="height: 130px">
  270.                 <!--?xml version="1.0" encoding="UTF-8"?-->
  271.                 <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>
  272.             </li>
  273.             <li class="row col-md-3">
  274.                 <div class="col-md-6">
  275.                     Bureaux commerciaux :<br/>
  276.                     {{ adress.content|raw }}
  277.                 </div>
  278.                 <div class="col-md-6">
  279.                     Siège social : 
  280.                     {{ siege.content|raw }}
  281.                 </div>
  282.             </li>
  283.             <li style="height: 130px">
  284.                 <!--?xml version="1.0" encoding="UTF-8"?-->
  285.                 <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>
  286.             </li>
  287.             <li class="grey col-md-2 d-flex justify-content-around social">
  288.                 <a target="_blank" href="https://www.facebook.com/tracolimmobilier/"><i class="fab fa-facebook-f fa-2x" style="margin-top:0"></i></a>
  289.                 <a target="_blank" href="https://www.linkedin.com/company/tracol-immobilier-s-a-/"><i class="fab fa-linkedin fa-2x" style="margin-top:0"></i></a>
  290.                 <a target="_blank" href="https://www.instagram.com/tracolimmobilier/"><i class="fab fa-instagram fa-2x" style="cmargin-top:0"></i></a>
  291.                 <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"></i></a>
  292.                 <a href="{{ path('contact') }}" class="contact-link"><i class="fa fa-envelope fa-2x"></i></a>
  293.             </li>
  294.             <li class="legal d-flex align-items-center">
  295.                 <div class="d-flex flex-column">
  296.                     <a href="{{ path('mentions') }}" style="margin-bottom:6px;">{{ mentions.name }}</a>
  297.                     <a href="{{ path('cgu') }}" style="margin-bottom:6px">{{ cgu.name }}</a>
  298.                     <a href="{{ path('privacy_policy') }}" style="margin-bottom:6px">{{ confidentialite.name }}</a>
  299.                     <a href="{{ path('cookies') }}" style="margin-bottom:15px">{{ cookie.name }}</a>
  300.                 </div>
  301.             </li>
  302.         </ul>
  303.         <ul id="footer-menu-mobile" class="footer-menu" style="display:none; margin-bottom: -15px;margin-top: -15px;">
  304.             <li class="legal d-flex align-items-center flex-column mt-3">
  305.                 <a href="{{ path('contact') }}" class="grey contact-link mr-0" style="margin-right:0!important;"><i class="fa fa-envelope fa-2x"></i></a>
  306.                 <div class="d-flex flex-column align-items-center">
  307.                     <a href="{{ path('mentions') }}" style="margin-bottom:6px;">{{ mentions.name }}</a>
  308.                     <a href="{{ path('cgu') }}" style="margin-bottom:6px">{{ cgu.name }}</a>
  309.                     <a href="{{ path('privacy_policy') }}" style="margin-bottom:6px">{{ confidentialite.name }}</a>
  310.                     <a href="{{ path('cookies') }}" style="margin-bottom:15px">{{ cookie.name }}</a>
  311.                 </div>
  312.             </li>
  313.             <li>
  314.                 <div>
  315.                     Bureaux commerciaux :<br/>
  316.                     {{ adress.content|raw }}
  317.                 </div>
  318.             </li>
  319.             <li>
  320.                 <div>
  321.                     Siège social : <br />
  322.                     {{ siege.content|raw }}
  323.                 </div>
  324.             </li>
  325.             <li>
  326.                 © 2021 TRACOL - réalisé par <a href="https://www.idp.lu/" target="_blank" style="font-weight:bold">ID+P</a>
  327.             </li>
  328.         </ul>
  329.     </div>
  330. </footer>
  331. <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.min.js"></script>
  332. <script>
  333.     if (window.matchMedia("(max-width: 768px)").matches && window.location.pathname === '/') {
  334.         /* the viewport is less than 768 pixels wide */
  335.     //      $('#projects').slick({
  336.     //     dots: false,
  337.     //     infinite: true,
  338.     //     speed: 300,
  339.     //     slidesToShow: 1,
  340.     //     slidesToScroll: 1,
  341.     //     autoplay: true,
  342.     //     responsive: [
  343.     //         {
  344.     //             breakpoint: 576,
  345.     //             settings: {
  346.     //                 slidesToShow: 1,
  347.     //                 slidesToScroll: 1
  348.     //             }
  349.     //         }
  350.     //         // You can unslick at a given breakpoint now by adding:
  351.     //         // settings: "unslick"
  352.     //         // instead of a settings object
  353.     //     ]
  354.     // });
  355.     }
  356.     //
  357.     // const searchMobile = document.getElementById('search-detail-mobile')
  358.     // const searchSubDivMobile = document.getElementById('sub-search-div-mobile')
  359.     //
  360.     // searchMobile.addEventListener('click', function (e) {
  361.     //     e.preventDefault()
  362.     //     searchSubDivMobile.style.display = 'flex'
  363.     //     searchMobile.style.display = 'none'
  364.     // })
  365. </script>
  366. <script>
  367.     if (document.getElementById('filterProperties')) {
  368.         let formSelectProperties = document.getElementById('filterProperties');
  369.         let properties = document.querySelectorAll('#properties .div-img-hover-2');
  370.         let arrayProperties = [];
  371.         for (let property of properties) {
  372.             arrayProperties.push({
  373.                 'property': property,
  374.                 'price': property.getAttribute('data-price'),
  375.                 'date': new Date(property.getAttribute('data-date')),
  376.             });
  377.         }
  378.         formSelectProperties.addEventListener('change', () => {
  379.             if (formSelectProperties.value === 'desc') {
  380.                 arrayProperties.sort((a,b) =>  b.price - a.price )
  381.             } else if (formSelectProperties.value === 'asc') {
  382.                 arrayProperties.sort((a,b) =>  a.price - b.price )
  383.             } else if (formSelectProperties.value === 'date') {
  384.                 arrayProperties.sort((a,b) =>  b.date - a.date )
  385.             }
  386.             let finalProperties = [];
  387.             let containerProperties = document.getElementById('properties');
  388.             containerProperties.innerHTML = '';
  389.             for (let prop of arrayProperties) {
  390.                 containerProperties.insertAdjacentElement('beforeend', prop.property)
  391.             }
  392.         });
  393.     }
  394.     // let searchglobal = document.getElementById('submit-searchglobal');
  395.         // searchglobal.addEventListener('click', function() {
  396.         //     const formSearch = document.getElementById('form-searchglobal-normal')
  397.         //     const subSearch = document.getElementById('sub-searchglobal-div')
  398.         //     const send = document.getElementById('sendGlobal')
  399.         //             formSearch.classList.toggle('stickyYForm')
  400.         //             send.classList.toggle('send-display')
  401.         //             subSearch.classList.toggle('sub-searchglobal-div-height')
  402.         // })
  403. </script>
  404. <script>
  405.     const swiper = new Swiper('.swiper', {
  406.         loop: false,
  407.     });
  408.     if (window.location.pathname === '/') {
  409.         const navbar = document.getElementsByClassName('navbar navbar-expand-xl fixed-top')
  410.         const header = document.getElementsByClassName('header-home')
  411.         navbar[0].style.backgroundColor = "#fff"
  412.         navbar[0].style.position = "fixed"
  413.         header[0].style.marginTop = "0px"
  414.         header[0].style.height = "100vw"
  415.     }
  416.     let widthWindow = window.innerWidth;
  417.     var searchLocation;
  418.     if (widthWindow > 770) {
  419.         searchLocation = document.getElementById('location-drop');
  420.     } else {
  421.         searchLocation = document.getElementById('location-drop-mobile');
  422.     }
  423.     var searchLocationLi;
  424.     if (widthWindow > 770) {
  425.         searchLocationLi = document.getElementById('location-li');
  426.     } else {
  427.         searchLocationLi = document.getElementById('location-li-mobile');
  428.     }
  429.     const url = '/form/search';
  430.     fetch(url, {
  431.         method: 'GET',
  432.         // body: JSON.stringify({
  433.         //     searchLocation: this.value
  434.         // })
  435.     }).then(function(response) {
  436.         return response.json()
  437.     }).then(function (data) {
  438.         searchLocationLi.innerHTML = '';
  439.         var selected = "Tous";
  440.         {% if app.session.get('filter') is defined and app.session.get('filter')['location'] is defined and app.session.get('filter')['location'] != 'Tous' %} selected = '{{ app.session.get('filter')['location'] }}'; {% endif %}
  441.         for (const datum in data) {
  442.             const li = document.createElement('li')
  443.             li.classList.add('item')
  444.             if(selected == data[datum]) li.classList.add('selected')
  445.             li.dataset.value = data[datum]
  446.             li.addEventListener('click', function () {
  447.                 searchLocation.value = this.dataset.itemName
  448.             })
  449.             li.innerHTML += data[datum]
  450.             searchLocationLi.appendChild(li)
  451.             li.addEventListener('click', event => {
  452.                 li.classList.add('selected');
  453.             });
  454.         }
  455.     searchLocation.addEventListener("click", function (){
  456.             searchLocationLi.addEventListener('click', function (e) {
  457.                 let target = e.target;
  458.                 var dropId;
  459.                 if (widthWindow > 770) {
  460.                     dropId = document.getElementById('location-drop');
  461.                 } else {
  462.                     dropId = document.getElementById('location-drop-mobile');
  463.                 }
  464.                 dropId.querySelector('.undroped-subheader').innerHTML = target.innerHTML
  465.                 dropId.querySelector('.input-subheader').value = target.dataset.value
  466.                 dropId.classList.remove('open')
  467.                 dropId.querySelector('.undroped').style.display = 'block'
  468.                 dropId.querySelector('.droped').style.display = 'none'
  469.                 dropId.querySelector('.undroped-subheader').classList.add('selected')
  470.             })
  471.         });
  472.     })
  473.     const searchTransactionLi = document.getElementById('transaction-li');
  474.     const searchPropertyLi = document.getElementById('property-li');
  475.     const searchRoomLi = document.getElementById('rooms-li');
  476.     const searchAreaLi = document.getElementById('area-li');
  477.     searchTransactionLi.addEventListener('click', function (e) {
  478.         let target = e.target;
  479.         const dropId = document.getElementById('transaction-drop')
  480.         dropId.querySelector('.input-subheader').value = target.dataset.value
  481.     });
  482.     searchPropertyLi.addEventListener('click', function (e) {
  483.         let target = e.target;
  484.         const dropId = document.getElementById('property-drop')
  485.         dropId.querySelector('.input-subheader').value = target.dataset.value
  486.     });
  487.     searchRoomLi.addEventListener('click', function (e) {
  488.         let target = e.target;
  489.         const dropId = document.getElementById('rooms-drop');
  490.         dropId.querySelector('.input-subheader').value = target.dataset.value
  491.     });
  492.     searchAreaLi.addEventListener('click', function (e) {
  493.         let target = e.target;
  494.         const dropId = document.getElementById('area-drop')
  495.         dropId.querySelector('.input-subheader').value = target.dataset.value
  496.     });
  497.     for (const eElement of document.getElementsByClassName('projectButton')) {
  498.         eElement.addEventListener('click', function (e) {
  499.             e.preventDefault()
  500.             for (let button of document.getElementsByClassName('projectButton')) {
  501.                 if (button.classList.contains('all')){
  502.                     button.classList.remove('all')
  503.                     button.classList.add('come')
  504.                     button.querySelector('span').classList.replace('span-all', 'span-projects')
  505.                 }
  506.             }
  507.             eElement.classList.remove('come')
  508.             eElement.classList.add('all')
  509.             eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  510.             fetch('projects/home/display/'+this.dataset.id, {
  511.                 method: 'GET',
  512.             })
  513.                 .then(response => response.json())
  514.                 .then(data => {
  515.                     document.getElementById('projects').innerHTML = ''
  516.                     document.getElementById('projects').innerHTML = data.data
  517.                     if (window.matchMedia("(max-width: 768px)").matches && window.location.pathname === '/') {
  518.                         // if (document.getElementById('projects').classList.contains('slick-initialized')) {
  519.                         //     document.getElementById('projects').classList.remove('slick-initialized')
  520.                         //     document.getElementById('projects').classList.remove('slick-slider')
  521.                         // }
  522.                         // $('#projects').slick({
  523.                         //     dots: false,
  524.                         //     infinite: true,
  525.                         //     speed: 300,
  526.                         //     slidesToShow: 1,
  527.                         //     slidesToScroll: 1,
  528.                         //     autoplay: true,
  529.                         //     responsive: [
  530.                         //         {
  531.                         //             breakpoint: 576,
  532.                         //             settings: {
  533.                         //                 slidesToShow: 1,
  534.                         //                 slidesToScroll: 1
  535.                         //             }
  536.                         //         }
  537.                         //     ]
  538.                         // })
  539.                     }
  540.                     _ww = $(window).width();
  541.                     if (_ww > 768){
  542.                         $('.div-img-hover-2').hover(function (e) {
  543.                             $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  544.                             var htext = $(this).find('.project-content').height();
  545.                             if (htext == undefined){htext = 0};
  546.                             $(this).find('.div-hover-2').animate({height : htext+180}, 150);
  547.                             $(this).find('.project-content').css({'visibility': 'visible'});
  548.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  549.                         }, function() {
  550.                             $(this).find('.div-hover-2').animate({height : 85}, 150);
  551.                             $(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  552.                             $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  553.                                 $(this).find('.project-content').css({'visibility': 'hidden'});
  554.                             });
  555.                         });
  556.                     } else {
  557.                         $('.div-img-hover-2').on( "click", function( event ) {
  558.                             var opened = $(this).find('.div-hover-2').hasClass('open'),
  559.                                 ht = opened ? 85 : '100%',
  560.                                 vis = opened ? 0 : 1;
  561.                             $(this).find('.div-hover-2').toggleClass('open');
  562.                             $(this).find('.div-hover-2').animate({height : ht}, 150);
  563.                             $(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  564.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  565.                         });
  566.                     }
  567.                     $('.div-hover').hover(function (e) {
  568.                         $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  569.                     }, function() {
  570.                         $(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  571.                     });
  572.                     $('.div-hover').hover(function (e) {
  573.                         $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  574.                         var htext = $(this).find('.project-content').height();
  575.                         if (htext == undefined){htext = 0};
  576.                         $(this).animate({height : htext+180}, 150);
  577.                         $(this).find('.project-content').css({'visibility': 'visible'});
  578.                         $(this).find('.project-content').animate({opacity: 1}, 150);
  579.                     }, function() {
  580.                         $(this).find('.project-arrow-2').animate({opacity: 0}, 50);
  581.                         $(this).animate({height : 70}, 150);
  582.                         $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  583.                             $(this).find('.project-content').css({'visibility': 'hidden'});
  584.                         });
  585.                     });
  586.                 })
  587.                 .catch((error) => {
  588.                     console.error('Error:', error);
  589.                 });
  590.         })
  591.     }
  592.     for (const eElement of document.getElementsByClassName('projectButtonref')) {
  593.         eElement.addEventListener('click', function (e) {
  594.             e.preventDefault()
  595.             for (let button of document.getElementsByClassName('projectButtonref')) {
  596.                 if (button.classList.contains('all')){
  597.                     button.classList.remove('all')
  598.                     button.classList.add('come')
  599.                     button.querySelector('span').classList.replace('span-all', 'span-projects')
  600.                 }
  601.             }
  602.             eElement.classList.remove('come')
  603.             eElement.classList.add('all')
  604.             eElement.querySelector('span').classList.replace('span-projects', 'span-all')
  605.             fetch('reference/home/display/'+this.dataset.id, {
  606.                 method: 'GET',
  607.             })
  608.                 .then(response => response.json())
  609.                 .then(data => {
  610.                     document.getElementById('references-home').innerHTML = ''
  611.                     document.getElementById('references-home').innerHTML = data.data
  612.                     _ww = $(window).width();
  613.                     var lightbox = $('.lightbox'),
  614.                         item = 0;
  615.                     $('.lightbox-on').click(function(e){
  616.                         e.stopPropagation();
  617.                         item = 0;
  618.                         var id = $(this).attr('data-id'),
  619.                             max = 0;
  620.                         $('#'+id).toggle();
  621.                         $('#'+id).animate({opacity: 1}, 300);
  622.                         $('#'+id).find('img').each(function( i ) {
  623.                             max = i;
  624.                             item = 1;
  625.                             counter(item, max+1);
  626.                             itemWidth($(this));
  627.                         });
  628.                     });
  629.                     lightbox.click(function(e) {
  630.                         e.stopPropagation();
  631.                         $(this).animate({opacity: 0}, 300, function(){
  632.                             $(this).toggle();
  633.                         });
  634.                     });
  635.                     $('.closer').on('click', function (e) {
  636.                         e.stopPropagation();
  637.                         $(this).parent().animate(
  638.                             {opacity: 0},
  639.                             300,
  640.                             function(){
  641.                                 $(this).toggle();
  642.                             }
  643.                         );
  644.                     });
  645.                     function itemWidth(img){
  646.                         img.closest('.items').width(img.width());
  647.                     }
  648.                     function counter(item, max){
  649.                         $('.counter').text(item + ' / ' + max);
  650.                     }
  651.                     $('.item', lightbox).on('click, swipeleft', function (e) {
  652.                         var wd = $(this).width(),
  653.                             last = $(this).parent().find('.item').last(),
  654.                             img = $(this).find('.img');
  655.                         itemWidth(img);
  656.                         $(this).animate(
  657.                             {marginLeft: -wd, opacity: 0},
  658.                             500,
  659.                             'swing',
  660.                             function(){
  661.                                 $(this).insertAfter(last);
  662.                                 $(this).css({marginLeft: 0, opacity: 1});
  663.                             }
  664.                         );
  665.                     });
  666.                     $('.item', lightbox).on('swiperight', function (e) {
  667.                         var wd = $(this).width(),
  668.                             first = $(this).parent().find('.item').first(),
  669.                             last = $(this).parent().find('.item').last(),
  670.                             img = $(this).find('.img');
  671.                         itemWidth(img);
  672.                         $(last).insertBefore($(this));
  673.                         $(last).css({marginLeft: -wd, opacity: 0});
  674.                         $(this).parent().find('.item').eq(0).animate(
  675.                             {marginLeft: 0, opacity: 1},
  676.                             500,
  677.                             'swing'
  678.                         );
  679.                     });
  680.                     $('.arrows', lightbox).on('click', function (e) {
  681.                         e.stopPropagation();
  682.                         var wd = $(this).siblings('.items').find('.item').eq(0).width(),
  683.                             max = $(this).siblings('.items').find('.item').length,
  684.                             first = $(this).siblings('.items').find('.item').first(),
  685.                             last = $(this).siblings('.items').find('.item').last(),
  686.                             isRight = $(this).hasClass('right'),
  687.                             marginL = isRight ? -wd : 0,
  688.                             marginL0 = isRight ? 0: -wd,
  689.                             opacOn = isRight ? 1 : 0,
  690.                             opacOff = isRight ? 0 : 1;
  691.                         if (!isRight){
  692.                             $(last).insertBefore(first);
  693.                             $(last).css({marginLeft: -wd, opacity: 0});
  694.                             item++;
  695.                             if (item == max+1) {item = 1};
  696.                         } else {
  697.                             item--;
  698.                             if (item == 0) {item = max};
  699.                         };
  700.                         counter(item, max);
  701.                         var img = $(this).siblings('.items').find('.item').eq(0).find('.img');
  702.                         itemWidth(img);
  703.                         $(this).siblings('.items').find('.item').eq(1).animate(
  704.                             {opacity: opacOn},
  705.                             500,
  706.                             'swing');
  707.                         $(this).siblings('.items').find('.item').eq(0).animate(
  708.                             {marginLeft: marginL, opacity: 1},
  709.                             500,
  710.                             'swing',
  711.                             function(){
  712.                                 if (isRight){
  713.                                     $(this).insertAfter(last);
  714.                                     $(this).css({ marginLeft: 0, opacity: 1});
  715.                                 }
  716.                             }
  717.                         );
  718.                     });
  719.                     if (_ww > 768){
  720.                         $('.div-img-hover-2').hover(function (e) {
  721.                             $(this).find('.project-arrow-2').animate({opacity: 1}, 150);
  722.                             var htext = $(this).find('.project-content').height();
  723.                             if (htext == undefined){htext = 0};
  724.                             $(this).find('.div-hover-2').animate({height : htext+180}, 150);
  725.                             $(this).find('.project-content').css({'visibility': 'visible'});
  726.                             $(this).find('.project-content').animate({opacity: 1}, 150);
  727.                         }, function() {
  728.                             $(this).find('.div-hover-2').animate({height : 85}, 150);
  729.                             $(this).find('.project-arrow-2').animate({opacity: 0}, 150);
  730.                             $(this).find('.project-content').animate({opacity: 0}, 150, function(){
  731.                                 $(this).find('.project-content').css({'visibility': 'hidden'});
  732.                             });
  733.                         });
  734.                     } else {
  735.                         $('.div-img-hover-2').on( "tap", function( event ) {
  736.                             var opened = $(this).find('.div-hover-2').hasClass('open'),
  737.                                 ht = opened ? 85 : '100%',
  738.                                 vis = opened ? 0 : 1;
  739.                             $(this).find('.div-hover-2').toggleClass('open');
  740.                             $(this).find('.div-hover-2').animate({height : ht}, 150);
  741.                             $(this).find('.project-arrow-2').animate({opacity: vis}, 150);
  742.                         });
  743.                     }
  744.                 })
  745.                 .catch((error) => {
  746.                     console.error('Error:', error);
  747.                 });
  748.         })
  749.     }
  750.     /*
  751.     window.addEventListener('scroll', function(){
  752.         let search = document.getElementById('submit-search');
  753.         const formSearch = document.getElementById('form-search-normal')
  754.         const subSearch = document.getElementById('sub-search-div')
  755.         const send = document.getElementById('send')
  756.         if (search) {
  757.             search.classList.toggle("stickyY", window.scrollY > 730);
  758.             if (search.classList.contains("stickyY")) {
  759.                 search.setAttribute('type', 'button')
  760.                 search.addEventListener('click', function (e) {
  761.                     e.preventDefault()
  762.                     formSearch.classList.toggle('stickyYForm')
  763.                     send.classList.toggle('send-display')
  764.                     subSearch.classList.toggle('sub-search-div-height')
  765.                 })
  766.             } else  search.setAttribute('type', 'submit')
  767.         }
  768.     })
  769. */
  770. </script>
  771. {#
  772. <script>
  773.     var _dropin = $('.dropdown'),
  774.         _delay = 150,
  775.         _ww = $(window).width();
  776.     $('.undroped', _dropin).on('click', function (e) {
  777.         console.log('CLICKKKK 1')
  778.         $('.dropdown-header').closest('.droped').removeClass('open');
  779.         $('.dropdown-header').closest('.dropdown').find('.undroped').show();
  780.         $('.dropdown-header').closest('.droped').hide();
  781.         $('.dropdown-header').closest('.droped').find('.items').animate({height: 0});
  782.         $(this).hide();
  783.         $(this).siblings('.droped').find('.items').height('auto');
  784.         $(this).siblings('.droped').show();
  785.         var ht = $(this).siblings('.droped').find('.items').height();
  786.         $(this).attr('data-ht', ht);
  787.         $(this).siblings('.droped').find('.items').height(0);
  788.         $(this).siblings('.droped').addClass('open');
  789.         $(this).siblings('.droped').find('.items').animate({height: ht + 40}, _delay);
  790.     });
  791.     $('.dropdown-header', _dropin).on('click', function (e) {
  792.         var ht = $(this).closest('.dropdown').find('.undroped').attr('data-ht');
  793.         $(this).closest('.droped').removeClass('open');
  794.         $(this).closest('.droped').find('.items').animate({height: 0}, _delay, function () {
  795.             $(this).closest('.dropdown').find('.undroped').show();
  796.             $(this).closest('.droped').hide();
  797.         });
  798.     });
  799.     const searchLocationm = document.getElementById('location-drop-mobile');
  800.     const searchLocationLim = document.getElementById('location-li-mobile');
  801.     const urlm = '/form/search';
  802.     searchLocationm.addEventListener("click", function (){
  803.         fetch(urlm, {
  804.             method: 'GET',
  805.             // body: JSON.stringify({
  806.             //     searchLocation: this.value
  807.             // })
  808.         }).then(function(response) {
  809.             return response.json()
  810.         }).then(function (data) {
  811.             searchLocationLim.innerHTML = '';
  812.             for (const datum in data) {
  813.                 const li = document.createElement('li')
  814.                 li.classList.add('item')
  815.                 li.dataset.value = data[datum]
  816.                 li.addEventListener('click', function () {
  817.                     searchLocationm.value = this.dataset.itemName
  818.                 })
  819.                 li.innerHTML += data[datum]
  820.                 searchLocationLim.appendChild(li)
  821.                 li.addEventListener('click', event => {
  822.                     li.classList.add('selected');
  823.                 });
  824.             }
  825.             searchLocationLim.addEventListener('click', function (e) {
  826.                 searchLocationLim.req
  827.                 let target = e.target;
  828.                 const dropId = document.getElementById('location-drop-mobile')
  829.                 dropId.querySelector('.undroped-subheader').innerHTML = target.innerHTML
  830.                 dropId.querySelector('.input-subheader').value = target.dataset.value
  831.                 dropId.classList.remove('open')
  832.                 dropId.querySelector('.undroped').style.display = 'block'
  833.                 dropId.querySelector('.droped').style.display = 'none'
  834.                 dropId.querySelector('.undroped-subheader').classList.add('selected')
  835.             })
  836.         });
  837.     })
  838.     if (window.location.href.includes('action=postule')) {
  839.         let select = document.getElementById('contact_form_object');
  840.         let options = select.childNodes;
  841.         let optionPostule = options[1];
  842.         optionPostule.setAttribute('selected', '')
  843.         console.log(optionPostule)
  844.     }
  845.     /* the viewport is less than 768 pixels wide */
  846.     //      $('#projects').slick({
  847.     //     dots: false,
  848.     //     infinite: true,
  849.     //     speed: 300,
  850.     //     slidesToShow: 1,
  851.     //     slidesToScroll: 1,
  852.     //     autoplay: true,
  853.     //     responsive: [
  854.     //         {
  855.     //             breakpoint: 576,
  856.     //             settings: {
  857.     //                 slidesToShow: 1,
  858.     //                 slidesToScroll: 1
  859.     //             }
  860.     //         }
  861.     //         // You can unslick at a given breakpoint now by adding:
  862.     //         // settings: "unslick"
  863.     //         // instead of a settings object
  864.     //     ]
  865.     // });
  866.     //
  867.     // const searchMobile = document.getElementById('search-detail-mobile')
  868.     // const searchSubDivMobile = document.getElementById('sub-search-div-mobile')
  869.     //
  870.     // searchMobile.addEventListener('click', function (e) {
  871.     //     e.preventDefault()
  872.     //     searchSubDivMobile.style.display = 'flex'
  873.     //     searchMobile.style.display = 'none'
  874.     // })
  875. </script>
  876. #}
  877. </body>
  878. </html>