templates/base.html.twig line 1

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