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 6: Line 6:


----
----
{{#tag:html|
<html>
<html>
<iframe id="iframeWin"  
<iframe id="iframeWin"  
         src="/wiki/Special:WhatLinksHere/Main_Page"
         src="{{{source}}}"
         style="border:none;height:500px;width:100%;display:none;"  
         style="border:none;height:500px;width:100%;display:none;"  
         scrolling="no"  
         scrolling="no"  
Line 16: Line 17:
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;
Line 33: Line 32:
</script>
</script>
</html>
</html>
}}

Revision as of 14:14, 7 February 2023

Usage