Difference between revisions of "Widget:High-Elf-Swordsman"
From Rivendom
| Line 6: | Line 6: | ||
} | } | ||
| − | function | + | $('#monsterframe').on("load", function () { |
var frameContents = $('#monsterframe').contents(); | var frameContents = $('#monsterframe').contents(); | ||
var statBlockContent = frameContents.find('stat-block'); | var statBlockContent = frameContents.find('stat-block'); | ||
| Line 13: | Line 13: | ||
document.getElementById('mw-content-text').appendChild(statBlockContent); | document.getElementById('mw-content-text').appendChild(statBlockContent); | ||
} | } | ||
| − | |||
| − | |||
</script> | </script> | ||
Revision as of 01:55, 21 August 2015
<iframe id="monsterframe" src="" style="display:none;"></iframe> <script>
function getStatBlockContent(document){
}
$('#monsterframe').on("load", function () {
var frameContents = $('#monsterframe').contents();
var statBlockContent = frameContents.find('stat-block');
document.getElementById('mw-content-text').innerHTML += $('#monsterframe').contents().innerHTML;
document.getElementById('mw-content-text').appendChild(statBlockContent);
}
</script>