Difference between revisions of "Widget:High-Elf-Swordsman"
From Rivendom
| Line 12: | Line 12: | ||
document.getElementById('mw-content-text').innerHTML += $('#monsterframe').contents().innerHTML; | document.getElementById('mw-content-text').innerHTML += $('#monsterframe').contents().innerHTML; | ||
document.getElementById('mw-content-text').appendChild(statBlockContent); | document.getElementById('mw-content-text').appendChild(statBlockContent); | ||
| − | });--> | + | }); |
| + | --> | ||
var iFrameWindow = frames['monsterFrame']; | var iFrameWindow = frames['monsterFrame']; | ||
Revision as of 02:09, 21 August 2015
<iframe id="monsterFrame" name="monsterFrame" src="" style="display:none;"></iframe> <script>
function getStatBlockContent(document){
}
var iFrameWindow = frames['monsterFrame'];
var iFrameDocument = iFrameWindow.document;
var iFrameContents = iFrameDocument.getElementsByTagName('stat-block');
document.getElementById('mw-content-text').appendChild(iFrameContents);
</script>