Repository navigation
Web courses: HTML, CSS and browser JavaScript in C - #29
Merged
Merged
Conversation
Three courses of five modules each, as static pages under web/, opened in the browser by the launcher through a small wrapper. They are the one exception to a course being a CLI program, and docs/writing-a-course.md says so. The HTML and CSS courses contain no JavaScript. web/check-course.js compares every demo with its listing and CI runs it. The exercises are covered by tools/check-teaching-order.py. Each lesson's claims were measured in Chromium, which corrected three of them. Menu numbers after C# move up by three, and the smoke test follows. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The browser pages and the wrappers that opened them are gone. HTML, CSS and Web JavaScript are now terminal programs in plain C with the same layout as gui/, built and bundled with the other compiled courses, and none of them opens a browser. What only a browser can show is quoted from the Chromium measurements taken for the earlier version. What C can work out, it computes when the lesson runs: form encoding, reading UTF-8 bytes as another charset, box and flex arithmetic, clamp and specificity. CI builds them with -Werror and walks every module to its SUMMARY. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
html/,css/andwebjs/, with the same layout asgui/. Five modules each. None of them opens a browser or links against one..deb, Arch package, AppImage andinstall.sh.first_taughttables for them totools/check-teaching-order.py.The first commit on this branch built these as browser pages and the second replaces that. Squash on merge so the removed pages stay out of
main.Stacked on #28. Merge #27 and #28 first, then retarget this to
main;Fixesonly closes the issue once it lands there.How lessons make claims
A terminal cannot render a page. Where a result depends on a browser, the lesson quotes what one did, measured by script in Chromium 152. Anything C can work out it computes when the lesson runs: form encoding, reading UTF-8 bytes as windows-1252, box and flex arithmetic,
clamp()and specificity.Checked
60da20e, Windows and Linux: the three courses compile with-Wall -Wextra -Werror.tools/check-teaching-order.pypasses.fetchone against the live API.Not checked
Fixes #22
🤖 Generated with Claude Code