templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <meta name="robots" content="noindex">
  6.         <title>{% block title %}ANFR{% endblock %}</title>
  7.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  8.         {% block stylesheets %}
  9.         {% endblock %}
  10.         {% include 'pwa.html.twig' %}
  11.         <script>
  12.             var _paq = window._paq = window._paq || [];
  13.             /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  14.             _paq.push(['trackPageView']);
  15.             _paq.push(['enableLinkTracking']);
  16.             (function() {
  17.                 var u="//matomo.anfr-2024.fr/";
  18.                 _paq.push(['setTrackerUrl', u+'matomo.php']);
  19.                 _paq.push(['setSiteId', '1']);
  20.                 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  21.                 g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  22.             })();
  23.         </script>
  24.     </head>
  25.     <body>
  26.         {% block body %}{% endblock %}
  27.         
  28.         {% block javascripts %}
  29.             <script>
  30.                 window.addEventListener('load', () => {
  31.                     if("serviceWorker" in navigator){
  32.                         navigator.serviceWorker.register('/sw.js');
  33.                     }
  34.                 });
  35.             </script>
  36.         {% endblock %}
  37.     </body>
  38. </html>