JavaECS-Docs/Wiki.html

29 lines
1.1 KiB
HTML

<head>
<script>
$('iframe').load( function(){
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");
});
</script>
</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>
<!-- <script>
const queryLoc = window.location.origin;
console.log(queryLoc);
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
.then(x => x.text())
.then(function (y) {
var parser = new DOMParser();
var doc = parser.parseFromString(y, "text/html");
var ytrimmed = doc.querySelector(".file-view");
document.getElementById("renderspot2").innerHTML = ytrimmed.innerHTML;
});
</script>
<div id="renderspot2" style="height: 100%; width: 100%" /> -->