Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
iframeWin.contentWindow.document.getElementById('maincontentwrapper').style.marginLeft = "0px"; | iframeWin.contentWindow.document.getElementById('maincontentwrapper').style.marginLeft = "0px"; | ||
iframeWin.contentWindow.document.getElementById('maincontentwrapper').style.paddingLeft = "0px"; | iframeWin.contentWindow.document.getElementById('maincontentwrapper').style.paddingLeft = "0px"; | ||
// Hide header, heading, back link, form, filters, and footer | // Hide header, heading, back link, special messages, form, filters, and footer | ||
content.body.getElementsByTagName("header")[0].style.display = "none"; | content.body.getElementsByTagName("header")[0].style.display = "none"; | ||
content.body.getElementsByClassName("firstHeading")[0].style.display = "none"; | content.body.getElementsByClassName("firstHeading")[0].style.display = "none"; | ||
iframeWin.contentWindow.document.getElementById('contentSub').style.display = "none"; | iframeWin.contentWindow.document.getElementById('contentSub').style.display = "none"; | ||
iframeWin.contentWindow.document.getElementsByClassName('usermessage')[0].style.display = "none"; | iframeWin.contentWindow.document.getElementsByClassName('usermessage')[0].style.display = "none"; | ||
iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[0].style.display = "none"; | iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[0].style.display = "none"; | ||
iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[1].style.display = "none"; | iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[1].style.display = "none"; | ||
Line 38: | Line 37: | ||
window.onload = function() { | window.onload = function() { | ||
var iframeWin = document.getElementById("iframeWin"); | var iframeWin = document.getElementById("iframeWin"); | ||
// Set | // Set height | ||
iframeWin.height = iframeWin.contentWindow.document.body.scrollHeight; | iframeWin.height = iframeWin.contentWindow.document.body.scrollHeight; | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 18:11, 10 July 2023
Usage
What links here
What links here