Changed scrolling to auto

This commit is contained in:
Brychan Dempsey 2021-06-05 21:40:51 +12:00
parent b0b465c650
commit 066de0e362

View File

@ -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%" />