switched to direct render

This commit is contained in:
Brychan Dempsey 2021-06-05 18:40:52 +12:00
parent 155ef6e394
commit 1f5f09ee0c

View File

@ -1,4 +1,4 @@
<head> <!-- <head>
<script> <script>
function changeUrl() { function changeUrl() {
var $iFrameContents = $('iframe').contents(), var $iFrameContents = $('iframe').contents(),
@ -9,5 +9,15 @@ function changeUrl() {
console.log("Cleaning content"); console.log("Cleaning content");
} }
</script> </script>
</head> </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="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);
</script>
<div id="renderspot2" style="height: 100%; width: 100%" />