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 25: Line 25:
       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').style.display = "none";
       iframeWin.contentWindow.document.getElementsByClassName('usermessage')[0].style.display = "none";
       // content.body.getElementsByClassName("usermessage").style.display = "none";
       // content.body.getElementsByClassName("usermessage").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";
Line 33: Line 33:
       content.body.getElementsByTagName("footer")[0].style.display = "none";
       content.body.getElementsByTagName("footer")[0].style.display = "none";
       // Show
       // Show
      const newHeader = document.createElement("h4");
      newHeader.appendChild(document.createTextNode("What links here"));
      const contentText = document.getElementById("mw-content-text");
      contentText.insertBefore(newHeader, contentText.firstChild);
       iframeWin.style.display="block";
       iframeWin.style.display="block";
     });
     });

Revision as of 17:54, 10 July 2023

Usage


What links here



What links here