templates/contacts.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block body %}
  3. <article>
  4.     <p class="texts">{{ 'Contacts.ShortInfo'|trans }}</p>
  5.     <p><i>{{ 'Contacts.Comment'|trans }}</i></p>
  6.     <div id="googleMap"></div>
  7.     <div class="mapover">
  8.         <h3>AmeLat Group SIA</h3>
  9.         <p>Valdeķu iela 1-9<br>
  10.             Rīga, LV-1004<br>
  11.             Latvija
  12.         </p>
  13.         <h3>{{ 'Contacts.Contacts'|trans }}</h3>
  14.         <p>Didzis Āva<br>
  15.             +371 28 609 607<br>
  16.             didzis@amelatgroup.com
  17.         </p>
  18.         <h3>{{ 'Contacts.Properties'|trans }}</h3>
  19.         <p>AS Swedbank<br>
  20.             LV89HABA0551033406670<br>
  21.             Reģistrācijas Nr. 45403033945<br>
  22.             PVN Nr. LV45403033945
  23.         </p>
  24.     </div>
  25. </article>
  26. {% endblock %}
  27. {% block javascripts %}
  28.     <script
  29.             src="https://maps-api-ssl.google.com/maps/api/js?key=AIzaSyDdXrMg7iT-mdb6yWltSG9EanFPbKLLB8Q&sensor=false">
  30.     </script>
  31.     <script>
  32.         const centerLV = new google.maps.LatLng(56.918521, 24.093467);
  33.         let marker;
  34.         function initialize()
  35.         {
  36.             const mapProp = {
  37.                 center: centerLV,
  38.                 scrollwheel: false,
  39.                 zoom: 15,
  40.                 mapTypeId: google.maps.MapTypeId.ROADMAP
  41.             };
  42.             const map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
  43.             const image = '_images/map-marker.png';
  44.             marker = new google.maps.Marker({
  45.                 position:centerLV,
  46.                 map: map,
  47.                 icon: image,
  48.                 title: 'AmeLat Group SIA'
  49.             });
  50.             marker.setMap(map);
  51.         }
  52.         google.maps.event.addDomListener(window, 'load', initialize);
  53.     </script>
  54. {% endblock %}