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 1: Line 1:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Welcome users:
{{WhatLinksHere|source=/wiki/Special:WhatLinksHere/Main_Page}}
{{WhatLinksHere|source=/wiki/Special:WhatLinksHere/Main_Page}}
</noinclude>
</noinclude>
Line 9: Line 8:
<html>
<html>
<iframe id="iframeWin"  
<iframe id="iframeWin"  
         src="{{{source}}}"
         src="/wiki/Special:WhatLinksHere/Main_Page"
         style="border:none;height:500px;width:100%;display:none;"  
         style="border:none;height:500px;width:100%;display:none;"  
         scrolling="no"  
         scrolling="no"  
Line 17: Line 16:
document.querySelector("iframe").addEventListener( "load", function(e) {
document.querySelector("iframe").addEventListener( "load", function(e) {
   var iframeWin = document.getElementById("iframeWin");
   var iframeWin = document.getElementById("iframeWin");
  iframeWin.src = {{{source}}};
   var content = (iframeWin.contentWindow || iframeWin.contentDocument);
   var content = (iframeWin.contentWindow || iframeWin.contentDocument);
   if (content.document)content = content.document;
   if (content.document)content = content.document;

Revision as of 13:53, 7 February 2023

Usage