templates/dashboard_free/video-description.html.twig line 1

Open in your IDE?
  1. <html>
  2.     <head>
  3.         {{ encore_entry_link_tags('dashboard') }}
  4.         <meta charset="UTF-8">
  5.         <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  6.     </head>
  7.     <body>
  8.     {% if video %}
  9.         {{ video.description|raw }}
  10.     {% endif %}
  11.     {{ encore_entry_script_tags('dashboard') }}
  12.     <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full"></script>
  13.     <script type="text/x-mathjax-config">
  14.         MathJax.Hub.Config({
  15.           extensions: ["tex2jax.js"],
  16.           jax: ["input/TeX", "output/HTML-CSS"],
  17.           tex2jax: {
  18.             inlineMath: [ ['$','$'], ["\\(","\\)"] ],
  19.             displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
  20.             processEscapes: true
  21.           },
  22.           "HTML-CSS": { fonts: ["TeX"] }
  23.         });
  24.     </script>
  25.     <script>
  26.         document.addEventListener('DOMContentLoaded', function() {
  27.             function sendHeight() {
  28.                 const height = document.documentElement.scrollHeight;
  29.                 window.parent.postMessage({
  30.                     type: 'setHeight',
  31.                     height: height
  32.                 }, '*');
  33.             }
  34.             // Envoyer la hauteur initiale
  35.             sendHeight();
  36.             // Observer les changements de taille du contenu
  37.             const resizeObserver = new ResizeObserver(() => {
  38.                 sendHeight();
  39.             });
  40.             resizeObserver.observe(document.body);
  41.         });
  42.     </script>
  43.     </body>
  44. </html>