Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 20: | Line 20: | ||
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 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.getElementById('mw-content-text').getElementsByTagName("fieldset")[0].style.display = "none"; | |||
iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[1].style.display = "none"; | |||
content.body.getElementsByTagName("footer")[0].style.display = "none"; | content.body.getElementsByTagName("footer")[0].style.display = "none"; | ||
// Show | // Show | ||
iframeWin.style.display="block"; | iframeWin.style.display="block"; | ||
}); | }); |
Revision as of 15:00, 10 July 2023
Usage