This commit is contained in:
Brychan Dempsey 2021-06-05 18:43:12 +12:00
parent 8f74b67bfb
commit f88ca79d0e

View File

@ -13,7 +13,8 @@ function changeUrl() {
<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> <script>
const queryLoc = window.location.origin; const queryLoc = window.location.origin;
console.log(queryLoc);
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md") fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
.then(x => x.getElementsByClassName("file-view").text()) .then(x => x.getElementsByClassName("file-view").text())
.then(y => document.getElementById("renderspot2").innerHTML = y); .then(y => document.getElementById("renderspot2").innerHTML = y);