Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function resize() {
- var width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0)
- var body = document.body,
- html = document.documentElement;
- $("#full-height-div").height($("#content-size-div").height());
- var height = Math.max(body.scrollHeight, body.offsetHeight,
- html.clientHeight, html.scrollHeight, html.offsetHeight);
- height = height - $("#footer").height();
- height = height - $("#navbar").height();
- height = height - 20;
- if(width < 768) {
- height = height - $("#menu-container").height();
- }
- $("#full-height-div").height(height);
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement