templates/commun/head.html.twig line 1

Open in your IDE?
  1. <style>
  2.       .loader { display: none; }
  3.       .lds-ring {
  4.         display: inline-block; position: relative; width: 80px; height: 80px;
  5.       }
  6.       .lds-ring div {
  7.         box-sizing: border-box;
  8.         display: block; position: absolute; width: 64px; height: 64px;
  9.         margin: 8px; border: 8px solid #0a5688; border-radius: 50%;
  10.         animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  11.         border-color: #0a5688 transparent transparent transparent;
  12.       }
  13.       .lds-ring div:nth-child(1) { animation-delay: -0.45s; }
  14.       .lds-ring div:nth-child(2) { animation-delay: -0.3s; }
  15.       .lds-ring div:nth-child(3) { animation-delay: -0.15s; }
  16.       @keyframes lds-ring {
  17.         0% { transform: rotate(0deg); }
  18.         100% { transform: rotate(360deg); }
  19.       }
  20.       html.js .loader { position: fixed; top: calc(50% - 40px); left: calc(50% - 40px); display: block; }
  21.       html.js #page { opacity: 0; height: 0; overflow: hidden; transition: opacity 0.2s ease; }
  22.       html.js body.loaded #page { opacity: 1; height: auto; overflow: hidden; }
  23.       html.js body.loaded .loader { display: none; }
  24.       html.js body.loaded.switch:before { 
  25.           content: ''; display: block; position: fixed; z-index: 10000;
  26.           top: 0; left: 0; width: 100%; height: 100%;
  27.       }
  28.       html.js body.loaded.switch .loader { display: block; }
  29.       html.js body.loaded.switch #page { opacity: 0; }
  30.   </style>
  31.   <script type="text/javascript">var html=document.getElementsByTagName('html')[0];html.classList.add("js");</script>
  32.   <script async src="https://www.googletagmanager.com/gtag/js?id={{ ga_tracking }}"></script>
  33.   <script>
  34.     window.dataLayer = window.dataLayer || [];
  35.     function gtag(){dataLayer.push(arguments);}
  36.     gtag('js', new Date());
  37.     gtag('config', '{{ ga_tracking }}');
  38.   </script>
  39.   {# Google Tag Manager #}
  40.   <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  41.   new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  42.   j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  43.   'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  44.   })(window,document,'script','dataLayer','GTM-MN3S95GC');</script>
  45.   {# End Google Tag Manager #}