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 12:05]
sioc
planning [2021/04/15 13:56] (Version actuelle)
Ligne 1: Ligne 1:
 ====== Planning ====== ====== Planning ======
 <html> <html>
-<script> +<style> 
-function adjustIframeHeight(iframe, minHeight, fix){+.responsive { 
 +  position: relative; 
 +  display: block; 
 +  height: 0; 
 +  padding: 0; 
 +  overflow: hidden; 
 +}
  
-    var height = 0, $frame = $(iframe); +.responsive iframe { 
-    if(typeof fix=='undefined') fix = 0; +  position: absolute; 
- +  top: 0; 
-    setInterval(function(){ +  left: 0; 
-        if( typeof $frame.contents()!=null && typeof $frame.contents() !='undefined' && $frame.contents() !=null && $frame.attr('src')!='') { +  bottom: 0; 
-            curHeight = $frame.contents().find('body').height(); +  height: 100%; 
-            $frame.css('height', height + fix)// you might need to add some extra values like +20px. +  width: 100%; 
-        } else { +  border: 0; 
-            $frame.css('height', minHeight)// minimum height for the iframe. +}
-        } +
-    },200);+
  
 +.plan {
 +  padding-bottom: 670%;  
 } }
-</script> +</style> 
-<iframe src="https://beta.club-ea.com/plan.inc/planning.php" width="99%" id="iframeID" frameborder="0" scrolling="no">+<div class="responsive plan"> 
 + 
 +<iframe src="https://club-ea.com/plan.inc/planning.php" width="98%" class="embed-responsive-item" frameborder="0" scrolling="no">
 </iframe> </iframe>
 +</div>
  
-<script> 
-$(function(){  
-    adjustIframeHeight('#iframeID', 200, 0); 
-}); 
-</script> 
 </html> </html>