Added a script

This commit is contained in:
Brychan Dempsey 2021-06-05 18:00:14 +12:00
parent 2c8a91ac02
commit 16399b08bf

View File

@ -1 +1,15 @@
<script>
function cleanContent()
{
var $iFrameContents = $('iframe').contents(),
$entryContent = $iFrameContents.find('div.file-view');
$iFrameContents.find('html').replaceWith($entryContent);
// Next restore the style-sheets
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
}
$('iframe').load( function(){
//put your iframe code here
cleanContent();
});
</script>
<iframe width="100%" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs" frameborder="0"></iframe> <iframe width="100%" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs" frameborder="0"></iframe>