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 & footer
       // Hide header, heading, back link & footer
      var linksDiv = content.body.getElementById("mw-content-text");
      console.log(linksDiv);
      //linksDiv.getElementsByTagName("fieldset");
       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";
Line 34: Line 39:
       iframeWin.height = iframeWin.contentWindow.document.body.scrollHeight;
       iframeWin.height = iframeWin.contentWindow.document.body.scrollHeight;
     }
     }
   </script>
   </script>
</html>
</html>

Revision as of 13:59, 10 July 2023

Usage