ASDSO Dam Safety Toolbox

Template: WhatLinksHere: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
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
      iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("fieldset")[1].style.display = "none";
//      content.body.getElementById('mw-content-text').getElementsByTagName("fieldset")[1].style.display = "none";
 
 
       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 iframe
       // Show
       iframeWin.style.display="block";
       iframeWin.style.display="block";
     });
     });

Revision as of 15:00, 10 July 2023

Usage