Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
KCollins authored Dec 7, 2024
1 parent f0745a5 commit b87ca8d
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@
<title>Title</title>
</head>
<body>
<script>
function loadHTMLFiles(folder) {
const xhr = new XMLHttpRequest();
xhr.open('GET', folder);
xhr.onload = function() {
if (xhr.status === 200) {
const files = xhr.responseText.split('\n');
files.forEach(file => {
const fileUrl = `<span class="math-inline">\{folder\}/</span>{file}`;
const xhrFile = new XMLHttpRequest();
xhrFile.open('GET', fileUrl);
xhrFile.onload = function() {
if (xhrFile.status === 200) {
const div = document.createElement('div');
div.innerHTML = xhrFile.responseText;
document.body.appendChild(div);
}
};
xhrFile.send();
});
}
};
xhr.send();
}
}
loadHTMLFiles('notebooks/output');
</script>
<p>This is some additional text that will appear after the loaded HTML files.</p>
<a href="notebooks/output/conj-stations.html">Link to File 1</a>
</body>
Expand Down

0 comments on commit b87ca8d

Please sign in to comment.