Changed scrolling to auto
This commit is contained in:
parent
b0b465c650
commit
066de0e362
12
Wiki.html
12
Wiki.html
@ -1,16 +1,26 @@
|
||||
<script>
|
||||
const queryLoc = window.location.origin;
|
||||
console.log(queryLoc);
|
||||
// Fetch the default page
|
||||
fetch(queryLoc + "/" + "BrychanD/JavaECS-Docs/src/branch/master/README.md")
|
||||
.then(x => x.text())
|
||||
.then(function (y) {
|
||||
var parser = new DOMParser();
|
||||
var doc = parser.parseFromString(y, "text/html");
|
||||
var ytrimmed = doc.querySelector(".file-view");
|
||||
|
||||
// Set the render spot to the captured html
|
||||
document.getElementById("renderspot2").innerHTML = ytrimmed.innerHTML;
|
||||
// Assign the viewpoint classes from the container of the page we captured
|
||||
document.getElementById("renderspot2").classList = ytrimmed.classList;
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.markdown {
|
||||
overflow: auto!important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="renderspot2" style="height: 100%; width: 100%" />
|
Loading…
x
Reference in New Issue
Block a user