Added filter

This commit is contained in:
Brychan Dempsey 2021-06-05 19:17:33 +12:00
parent f88ca79d0e
commit 78822fe1c5

View File

@ -16,9 +16,14 @@ function changeUrl() {
const queryLoc = window.location.origin;
console.log(queryLoc);
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
.then(x => x.getElementsByClassName("file-view").text())
.then(y => document.getElementById("renderspot2").innerHTML = y);
console.log(x);
.then(x => x.text())
.then(function (y) {
var parser = new DOMParser();
var doc = parser.parseFromString(y);
var ytrimmed = doc.getElementsByClassName("file-view").text();
document.getElementById("renderspot2").innerHTML = y;
});
</script>
<div id="renderspot2" style="height: 100%; width: 100%" />