2021-06-05 18:40:52 +12:00
|
|
|
<!-- <head>
|
2021-06-05 18:17:24 +12:00
|
|
|
<script>
|
2021-06-05 18:29:20 +12:00
|
|
|
function changeUrl() {
|
|
|
|
var $iFrameContents = $('iframe').contents(),
|
2021-06-05 18:20:34 +12:00
|
|
|
$entryContent = $iFrameContents.find('div.file-view');
|
2021-06-05 18:29:20 +12:00
|
|
|
$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");
|
|
|
|
}
|
2021-06-05 18:00:14 +12:00
|
|
|
</script>
|
2021-06-05 18:40:52 +12:00
|
|
|
</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> -->
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const queryLoc = window.location.origin;
|
|
|
|
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
|
|
|
|
.then(x => x.getElementsByClassName("file-view").text())
|
|
|
|
.then(y => document.getElementById("renderspot2").innerHTML = y);
|
2021-06-05 18:42:15 +12:00
|
|
|
console.log(x);
|
2021-06-05 18:40:52 +12:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="renderspot2" style="height: 100%; width: 100%" />
|