Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var resizeTimer;
- function resizeIFrame() {
- // Ensure that top-bar is always ~46px tall. Allocate remainder to iframe using relative height.
- var topbarHeight = (4600) / $(window).height();
- $("iframe").css("height", (100 - topbarHeight) + "%");
- };
- $(document).ready(function() {
- $(window).resize(function() {
- clearTimeout(resizeTimer);
- resizeTimer = setTimeout(resizeIFrame, 500);
- });
- resizeIFrame();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement