You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

2h 3m 42s logged

v1.03.55 | 6-16-26

I added a new lesson type, “cookingSim”, it currently only has one simulation “heatControl”. Its a simple minigame for monitoring heat. Later I will have several cooking simulations, and use them in a cooking curriculum.
The reason for creating special simulations, is because cooking is a visual and hands on thing, you can’t learn to cook by simply reading and answering questions about it.

I’m also working on wiring together a way for the url to reflect the current view, that way you can bookmark specific courses or share specific curriculums.
The main focus of it is: history.pushState() and window.addEventListener("popstate").
Another important part is this:

const params = new URLSearchParams(window.location.search);
const view = params.get(“view”);
const id = params.get(“id”);

so on page load, you can get the right viewport, eg: ?view=syllabus&id=js-course, would show "syllabus" and "js-course".

Since its on page load the code is primarly residing in window.firebaseAuth.onAuthStateChanged since that part automatically signs in the user and skips over the authentication and homepage process if the user has signed in before.

0
13

Comments 0

No comments yet. Be the first!