Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Render Post Content #3

Open
nomadicGopher opened this issue Jan 25, 2025 · 0 comments
Open

Render Post Content #3

nomadicGopher opened this issue Jan 25, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@nomadicGopher
Copy link
Owner

nomadicGopher commented Jan 25, 2025

If rendering a custom/....html file directly in a browser, fetch stadard & custom styles & JS, render a blacked out page for MVP with dynamic content.

/web/scripts.js / /web/scripts.ts

//function init(wasmObj) {
	// ...
  setEventListeners();
//}

function setEventListeners() {
  document.addEventListener("DOMContentLoaded", function () {
  	let postList = fetchPostList();
    buildNav(postList);

    // Automatically load the home page by default
    fetchPost('home');
    displayPost('home');
  });
}
@nomadicGopher nomadicGopher added the enhancement New feature or request label Jan 25, 2025
@nomadicGopher nomadicGopher self-assigned this Jan 25, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant