JavaECS-Docs/Wiki.html

26 lines
956 B
HTML
Raw Normal View History

2021-06-05 19:31:17 +12:00
<head>
2021-06-05 18:17:24 +12:00
<script>
2021-06-05 19:51:04 +12:00
var docframe = document.getElementById("docFrame").contentWindow.document;
2021-06-05 19:44:51 +12:00
var targetContent = docframe.querySelector(".file-view");
2021-06-05 19:48:01 +12:00
console.log(docframe);
2021-06-05 19:44:51 +12:00
docframe.getElementsByTagName('body')[0].innerHTML = targetContent.innerHTML;
2021-06-05 18:00:14 +12:00
</script>
2021-06-05 18:40:52 +12:00
</head>
2021-06-05 19:44:51 +12:00
<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>
2021-06-05 18:40:52 +12:00
2021-06-05 19:31:17 +12:00
<!-- <script>
2021-06-05 18:43:12 +12:00
const queryLoc = window.location.origin;
console.log(queryLoc);
2021-06-05 18:40:52 +12:00
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
2021-06-05 19:17:33 +12:00
.then(x => x.text())
.then(function (y) {
var parser = new DOMParser();
2021-06-05 19:19:00 +12:00
var doc = parser.parseFromString(y, "text/html");
2021-06-05 19:25:41 +12:00
var ytrimmed = doc.querySelector(".file-view");
2021-06-05 19:24:45 +12:00
2021-06-05 19:28:17 +12:00
document.getElementById("renderspot2").innerHTML = ytrimmed.innerHTML;
2021-06-05 19:17:33 +12:00
});
2021-06-05 18:40:52 +12:00
</script>
2021-06-05 19:31:17 +12:00
<div id="renderspot2" style="height: 100%; width: 100%" /> -->