.
This commit is contained in:
parent
aa6380644f
commit
2d0aa6b830
14
Wiki.html
14
Wiki.html
@ -1,16 +1,12 @@
|
||||
<head>
|
||||
<script>
|
||||
function changeUrl() {
|
||||
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'));
|
||||
console.log("Cleaning content");
|
||||
}
|
||||
var docframe = document.getElementById("docFrame");
|
||||
var targetContent = docframe.querySelector(".file-view");
|
||||
docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML;
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<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>
|
||||
<iframe id="docFrame" width="100%" height="100%" src="https://git.software.kauripeak.co.nz/BrychanD/JavaECS-Docs/src/branch/master/README.md" frameborder="0"></iframe>
|
||||
|
||||
<!-- <script>
|
||||
const queryLoc = window.location.origin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user