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; const queryLoc = window.location.origin;
console.log(queryLoc); 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.text())
.then(y => document.getElementById("renderspot2").innerHTML = y); .then(function (y) {
console.log(x); var parser = new DOMParser();
var doc = parser.parseFromString(y);
var ytrimmed = doc.getElementsByClassName("file-view").text();
document.getElementById("renderspot2").innerHTML = y;
});
</script> </script>
<div id="renderspot2" style="height: 100%; width: 100%" /> <div id="renderspot2" style="height: 100%; width: 100%" />