Skip to content

Commit

Permalink
dude jus work
Browse files Browse the repository at this point in the history
  • Loading branch information
jamopopper committed Jul 4, 2024
1 parent b7298b0 commit 9fe806f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
lines.forEach((line, index) => {
// Create a text node for each line
const textNode = document.createTextNode(line);


// Add blank line for empty lines
if (line.length == 0) {
textNode = document.createTextNode('\n');
}
// Append the text node to the main_page element
mainPageElement.appendChild(textNode);

Expand All @@ -30,13 +34,6 @@
.catch(error => console.error('Error:', error));
</script>

<!-- <script>
fetch('README.md')
.then(response => response.text())
.then(text => document.getElementById('main_page').innerHTML += text)
.catch(error => console.error('Error:', error));
</script> -->

<!-- Load the script and interpret markdown-->
<script src="md-page.js"></script>

0 comments on commit 9fe806f

Please sign in to comment.