Difference between revisions of "Widget:High-Elf-Swordsman"
From Rivendom
| Line 1: | Line 1: | ||
| − | <iframe src="http://monsters.themanyworlds.net/monsters/CR-1-High-Elf-Swordsman.html" style="display:none;"></iframe> | + | <iframe id="monsterframe" src="http://monsters.themanyworlds.net/monsters/CR-1-High-Elf-Swordsman.html" style="display:none;"></iframe> |
| + | |||
| + | <script> | ||
| + | var iframe = document.getElementById('monsterframe'); | ||
| + | var innerDoc = iframe.contentDocument || iframe.contentWindow.document; | ||
| + | var statblock = innerDoc.getElementsByTagName('stat-block')[0]; | ||
| + | |||
| + | document.body.appendChild(statblock); | ||
| + | </script> | ||
Revision as of 17:26, 20 August 2015
<iframe id="monsterframe" src="http://monsters.themanyworlds.net/monsters/CR-1-High-Elf-Swordsman.html" style="display:none;"></iframe>
<script>
var iframe = document.getElementById('monsterframe');
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;
var statblock = innerDoc.getElementsByTagName('stat-block')[0];
document.body.appendChild(statblock);
</script>