.
This commit is contained in:
parent
453d3f1356
commit
aa6380644f
@ -1,16 +1,16 @@
|
|||||||
<head>
|
<head>
|
||||||
<script>
|
<script>
|
||||||
$('iframe').load( function(){
|
function changeUrl() {
|
||||||
var $iFrameContents = $('iframe').contents(),
|
var $iFrameContents = $('iframe').contents(),
|
||||||
$entryContent = $iFrameContents.find('div.file-view');
|
$entryContent = $iFrameContents.find('div.file-view');
|
||||||
$iFrameContents.find('html').replaceWith($entryContent);
|
$iFrameContents.find('html').replaceWith($entryContent);
|
||||||
// Next restore the style-sheets
|
// Next restore the style-sheets
|
||||||
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
|
var stylesheet = $('iframe').contents().find('link[rel="stylesheet"]').prependTo($iFrameContents.find('div.file-view'));
|
||||||
console.log("Cleaning content");
|
console.log("Cleaning content");
|
||||||
});
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<iframe id="iframe" width="100%" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs/src/branch/master/README.md" frameborder="0"></iframe>
|
<iframe id="iframe" width="100%" onload="changeUrl()" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs/src/branch/master/README.md" frameborder="0"></iframe>
|
||||||
|
|
||||||
<!-- <script>
|
<!-- <script>
|
||||||
const queryLoc = window.location.origin;
|
const queryLoc = window.location.origin;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user