Difference between revisions of "Widget:High-Elf-Swordsman"

From Rivendom
Jump to: navigation, search
 
(61 intermediate revisions by the same user not shown)
Line 1: Line 1:
<iframe id="monsterframe" src="http://monsters.themanyworlds.net/monsters/CR-1-High-Elf-Swordsman.html" style="display:none;"></iframe>
+
<iframe id="monsterFrame" name="monsterFrame" src="<!--{$url}-->" style="display:none;"></iframe>
 
 
 
<script>
 
<script>
  function addFrame() {
 
  var iframe = document.getElementById('monsterframe');
 
  var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
 
  var statblock = innerDoc.getElementsByTagName('stat-block')[0];
 
 
  document.body.appendChild(statblock);
 
  }
 
  
   window.onLoad = addFrame();
+
   setTimeout(function(){
 +
    var iFrameContents = frames['monsterFrame'].document.getElementsByTagName('stat-block')[0];
 +
    document.getElementById('mw-content-text').appendChild(iFrameContents);},750);
 
</script>
 
</script>

Latest revision as of 17:13, 21 August 2015

<iframe id="monsterFrame" name="monsterFrame" src="" style="display:none;"></iframe> <script>

 setTimeout(function(){
   var iFrameContents = frames['monsterFrame'].document.getElementsByTagName('stat-block')[0];
   document.getElementById('mw-content-text').appendChild(iFrameContents);},750);

</script>