From 4da6d47d868dec700d7288ee633d5cbaccf19538 Mon Sep 17 00:00:00 2001
From: fontchas5 <j.fontchastagner@gmail.com>
Date: Sat, 2 Apr 2022 16:55:52 +0200
Subject: [PATCH] ajout hack Bertrand pour taille dynamique iframe

---
 module-web/content/electromag/LoisComp.md | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/module-web/content/electromag/LoisComp.md b/module-web/content/electromag/LoisComp.md
index fa98521..03637fa 100644
--- a/module-web/content/electromag/LoisComp.md
+++ b/module-web/content/electromag/LoisComp.md
@@ -81,13 +81,17 @@ Avec :
 * ${\bf b_r}$ : induction rémanente (vectorielle)
 
 {{% notice note %}}
-Pour compléments, je vous encourage à aller voir cette [**petite vidéo**](https://ultv.univ-lorraine.fr/video/9478-aimant-permanent) réalisée par mon collègue de bureau, le Prof. Denis Netter et accessible sur le serveur de vidéos de l'Université de Lorraine [**ULTV**](https://ultv.univ-lorraine.fr/).
+Pour compléments, je vous encourage à aller voir cette [**petite vidéo**](https://ultv.univ-lorraine.fr/video/9478-aimant-permanent) réalisée par mon collègue de bureau, le Prof. Denis Netter et accessible sur le serveur de vidéos de l'Université de Lorraine [**ULTV**](https://ultv.univ-lorraine.fr/).   
+**Je l'incruste également ci-dessous (avec son autorisation) :**
 {{% /notice %}}
 {{< rawhtml >}}
-<p style="text-align:center;background-color: #e7f2fa;">
-<strong>Je l'incruste également ci-dessous (avec son autorisation) :</strong> <br>
-<iframe src="https://ultv.univ-lorraine.fr/video/9478-aimant-permanent/?is_iframe=true" width="640" height="360" style="padding: 0; margin: 0; border:0" allowfullscreen ></iframe>	
-</p>	
+<div style="position: relative; text-align:center; background-color: #e7f2fa; max-width:640px; margin-right: auto;margin-left: auto;">
+<iframe src="https://ultv.univ-lorraine.fr/video/9478-aimant-permanent/?is_iframe=true" width="100%" height="360" style="padding:0; margin:0; border:0" allowfullscreen ></iframe>	
+</div>
+  <script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.min.js" integrity="sha512-ngVIPTfUxNHrVs52hA0CaOVwC3/do2W4jUEJIufgZQicmY27iAJAind8BPtK2LoyIGiAFcOkjO18r5dTUNLFAw==" crossorigin="anonymous"></script>
+  <script>
+    iFrameResize({}, '#iframe-jacobian')
+  </script>
 {{< /rawhtml >}}
 
 --- 
-- 
GitLab