Différences
Ci-dessous, les différences entre deux révisions de la page.
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:45] sioc |
planning [2021/04/15 13:56] (Version actuelle) |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Planning ====== | ====== Planning ====== | ||
< | < | ||
+ | < | ||
+ | .responsive { | ||
+ | position: relative; | ||
+ | display: block; | ||
+ | height: 0; | ||
+ | padding: 0; | ||
+ | overflow: hidden; | ||
+ | } | ||
- | <iframe src=" | + | .responsive iframe {Â |
+ | position: absolute;Â | ||
+ | top: 0;Â | ||
+ | left: 0;Â | ||
+ | bottom: 0;Â | ||
+ | height: 100%;Â | ||
+ | width: 100%;Â | ||
+ | border: 0;Â | ||
+ | }Â | ||
+ | Â | ||
+ | .plan {Â | ||
+ | padding-bottom: | ||
+ | }Â | ||
+ | </ | ||
+ | <div class=" | ||
+ | Â | ||
+ | <iframe src=" | ||
</ | </ | ||
- | | + | </div>Â |
- | | + | |
- | var myWidth = 0, myHeight = 0;Â | + | |
- | if( typeof( window.innerWidth ) == ' | + | |
- | //Non-IE or IE 9+ non-quirks | + | |
- | myWidth = window.innerWidth; | + | |
- | myHeight = window.innerHeight; | + | |
- | } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {Â | + | |
- | //IE 6+ in ' | + | |
- | myWidth = document.documentElement.clientWidth; | + | |
- | myHeight = document.documentElement.clientHeight; | + | |
- | } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {Â | + | |
- | //IE 5- (lol) compatible | + | |
- | myWidth = document.body.clientWidth; | + | |
- | myHeight = document.body.clientHeight; | + | |
- | }Â | + | |
- | if (myWidth < 1) myWidth = screen.width; | + | |
- | if (myHeight < 1) myHeight = screen.height; | + | |
- | return [myWidth, | + | |
- | }Â | + | |
- | var dim = windowDimensions(); | + | |
- | myIframe = $('# | + | |
- | myIframe.height((dim[1]) + " | + | |
- | </ | + | |
</ | </ |