templates/search_properties/elements/body_end.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'app' %}
  2. <script>
  3.   var features = []
  4.   if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
  5.     features.push('es2015')
  6.   }
  7.   if (!('forEach' in NodeList.prototype)) {
  8.     features.push('NodeList.prototype.forEach')
  9.   }
  10.   var dependencies = ['IntersectionObserver', 'Promise', 'fetch', 'Event']
  11.   dependencies.forEach(function (el) {
  12.     if (!(el in window)) {
  13.       features.push(el)
  14.     }
  15.   })
  16.   if (features.length > 0) {
  17.     document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=' + features.join('%2C') + '"><\/script>')
  18.   }
  19.   window.captchaKey = '{{googleCaptchaKey}}'
  20.   window.googleApisKey = '{{googleApisKey}}'
  21.   window.publicPath = '{{asset("")}}'
  22.   window.paths = {
  23.     buy: '{{path("buy")}}',
  24.     rent: '{{path("rent")}}',
  25.     searchJson: '{{path("offers_search_json")}}',
  26.     searchCardsPaginated: '{{path("offers_search_cards_paginated")}}'
  27.   }
  28.   window.localization = {
  29.     topCities: "{{app.request.locale == 'fr' ? 'top villes':'top cities'}}",
  30.     noResult: "{{'aucun resultat'|trans|capitalize}}",
  31.     newProject: "{{'projet neuf'|trans|capitalize}}",
  32.     priceUponRequest: "{{'Prix sur demande'|trans|capitalize}}",
  33.     rentUponRequest: "{{'loyer sur demande'|trans|capitalize}}",
  34.     enterLocation: "{{app.request.locale == 'fr' ? 'Entrer un emplacement':'Enter a location'}}",
  35.     perMonth: "{{'/ mois'|trans}}",
  36.     perSqmPerMonth: "{{'par m² /an'|trans}}",
  37.     listIsEmpty: "{{'la liste est vide'|trans|capitalize}}",
  38.   }
  39. </script>
  40. <script src='https://cdnjs.cloudflare.com/ajax/libs/OverlappingMarkerSpiderfier/1.0.3/oms.min.js'></script>
  41. <script
  42.     src="{% if useWds %}http://localhost:9000/common.js{% else %}{{ asset('frontend/search/dist/common.js?v=2') }}{% endif %}"></script>
  43. </body>
  44. </html>