<html>
<head>
{{ encore_entry_link_tags('dashboard') }}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
{% if video %}
{{ video.description|raw }}
{% endif %}
{{ encore_entry_script_tags('dashboard') }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML-full"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
processEscapes: true
},
"HTML-CSS": { fonts: ["TeX"] }
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
function sendHeight() {
const height = document.documentElement.scrollHeight;
window.parent.postMessage({
type: 'setHeight',
height: height
}, '*');
}
// Envoyer la hauteur initiale
sendHeight();
// Observer les changements de taille du contenu
const resizeObserver = new ResizeObserver(() => {
sendHeight();
});
resizeObserver.observe(document.body);
});
</script>
</body>
</html>