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("content").offsetHeight; | ||
+ | |||
var ifrm = document.createElement("iframe"); | var ifrm = document.createElement("iframe"); | ||
ifrm.setAttribute("src", "http://igemtelhai.wixsite.com/telhaiigem"); | ifrm.setAttribute("src", "http://igemtelhai.wixsite.com/telhaiigem"); | ||
ifrm.style.width = "100%"; | ifrm.style.width = "100%"; | ||
− | ifrm.style.height = window.innerHeight + 'px'; | + | ifrm.style.height = (window.innerHeight-contentHeight) + 'px'; |
document.body.appendChild(ifrm); | document.body.appendChild(ifrm); | ||
}); | }); |
Revision as of 15:45, 20 August 2016