Szablon:Pdf: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
Linia 3: | Linia 3: | ||
<script src="/extensions/Pdf.js/resizeIFrame.js"></script> | <script src="/extensions/Pdf.js/resizeIFrame.js"></script> | ||
<iframe name="viewer" scrolling="no" height= | <div height=500 width=100% id='iframediv'> | ||
<iframe name="viewer" scrolling="no" height=100% id="pdfframe" width=100% frameborder=0 onload='javascript:resizeIframe(iframediv);' src='/extensions/Pdf.js/web/viewer.html?file=/pdf/</html>{{{1}}}<html>'></iframe> | |||
</div> | |||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$(window).resize(function(){ | $(window).resize(function(){ | ||
javascript:resizeIframe( | javascript:resizeIframe(iframediv); | ||
}); | }); | ||
}); | }); |
Wersja z 12:27, 15 sie 2014