Line 4: | Line 4: | ||
document.addEventListener("DOMContentLoaded", function(event) { | document.addEventListener("DOMContentLoaded", function(event) { | ||
document.getElementById("sideMenu").style.display = "none"; | document.getElementById("sideMenu").style.display = "none"; | ||
− | + | var contentHeight = document.getElementById("globalWrapper").offsetHeight; | |
var ifrm = document.createElement("iframe"); | var ifrm = document.createElement("iframe"); | ||
Line 12: | Line 12: | ||
document.body.appendChild(ifrm); | document.body.appendChild(ifrm); | ||
}); | }); | ||
+ | |||
+ | function resizeIframe() { | ||
+ | ifrm.style.width = window.innerWidth; | ||
+ | ifrm.style.height = (window.innerHeight-contentHeight-40) + 'px'; | ||
+ | } | ||
+ | |||
+ | |||
+ | window.onresize = resizeIframe; | ||
</script> | </script> | ||
Revision as of 15:54, 20 August 2016