Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
planning [2019/01/10 11:40]
sioc
planning [2021/04/15 13:56] (Version actuelle)
Ligne 1: Ligne 1:
 ====== Planning ====== ====== Planning ======
 <html> <html>
-<script type="application/javascript">+<style> 
 +.responsive { 
 +  position: relative; 
 +  display: block; 
 +  height: 0; 
 +  padding: 0; 
 +  overflow: hidden; 
 +}
  
-function resizeIFrameToFitContent( iFrame ) {+.responsive iframe { 
 +  position: absolute; 
 +  top: 0; 
 +  left: 0; 
 +  bottom: 0; 
 +  height: 100%; 
 +  width: 100%; 
 +  border: 0; 
 +}
  
-    iFrame.width  = iFrame.contentWindow.document.body.scrollWidth; +.plan { 
-    iFrame.height = iFrame.contentWindow.document.body.scrollHeight;+  padding-bottom: 670% 
 } }
 +</style>
 +<div class="responsive plan">
  
-window.addEventListener('DOMContentLoaded', function(e) { +<iframe src="https://club-ea.com/plan.inc/planning.php" width="98%" class="embed-responsive-item" frameborder="0" scrolling="no">
- +
-    var iFrame = document.getElementById( 'iFrame1' ); +
-    resizeIFrameToFitContent( iFrame ); +
- +
-    // or, to resize all iframes: +
-    var iframes = document.querySelectorAll("iframe"); +
-    for( var i = 0; i < iframes.length; i++) { +
-        resizeIFrameToFitContent( iframes[i] ); +
-    } +
-} ); +
- +
-</script> +
- +
-<iframe src="https://beta.club-ea.com/plan.inc/planning.php" id="iFrame1" frameborder="0" scrolling="no">+
 </iframe> </iframe>
 +</div>
  
 </html> </html>