Added filter
This commit is contained in:
parent
f88ca79d0e
commit
78822fe1c5
11
Wiki.html
11
Wiki.html
@ -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%" />
|
Loading…
x
Reference in New Issue
Block a user