templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         <meta name="viewport" content="width=device-width, initial-scale=1">
  7.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  8.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.         {% block stylesheets %}
  10.         <link rel="stylesheet" href="{{asset('css/style.css')}}">
  11.         <!-- Font Awesome (Icônes) -->
  12.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
  13.         {% endblock %}
  14.         {% block javascripts %}
  15.             <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css" />
  16. <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
  17. <script>
  18.     document.addEventListener("DOMContentLoaded", function () {
  19.         var map = L.map('map').setView([49.035, 2.110], 14); // Coordonnées approximatives de Saint-Ouen-l’Aumône
  20.         L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
  21.             attribution: '&copy; OpenStreetMap contributors'
  22.         }).addTo(map);
  23.         L.marker([49.035, 2.110]).addTo(map)
  24.             .bindPopup("Pannex - 18, rue de l’Équerre")
  25.             .openPopup();
  26.     });
  27. </script>
  28.         {% endblock %}
  29.     </head>
  30.     <body>
  31.         {% block body %}{% endblock %}
  32.     </body>
  33. </html>