Commit Graph
16 Commits
Author SHA1 Message Date
Dennis Eisold a1698c9d3d Use data-quiz-shown attributes for quiz mode visibility
Mark elements that should remain visible in quiz mode at build time
via data-quiz-shown attributes (toolbar, breadcrumb, h1, questions,
solution links, next-section/-chapter links). The runtime tail
detection becomes obsolete and the CSS collapses to a single show/hide
rule.

Switch the body markers to data-quiz-mode / data-quiz-has-questions
attributes, swap the toggle between btn-secondary and btn-primary
instead of hardcoded colors, and use Bootstrap's alert alert-info for
the no-questions notice.
2026-05-03 20:09:46 +02:00
Dennis Eisold 4d08c3db55 Add quiz mode toggle to chapter/section toolbar
Adds a button to the existing top-right button group on chapter and
section pages that hides everything outside of the breadcrumb, the
heading, the rendered questions and the link to the next section or
chapter at the end of the page. The state is persisted via
localStorage so it survives navigation. On pages without questions a
small notice is shown instead.

Replaces the previously published userscript by integrating the same
behaviour directly into the site.
2026-04-30 22:11:55 +02:00
Matthias Jung c20011f038 fix: shuffle bug in slides 2026-02-08 23:12:09 +01:00
Matthias Jung 309e4701a7 Merge branch 'main' into siunitx 2026-02-08 21:35:47 +01:00
Matthias Jung 6a49c5d358 feature: some more units 2026-02-08 21:26:37 +01:00
Mario Haustein 3d8d06595f Add more siunitx stubs 2026-02-07 01:40:42 +01:00
Matthias Jung f475eb4cb8 fix: add bit to units 2026-01-20 14:23:32 +01:00
Matthias Jung 60010525c5 refactor: update katex settings 2026-01-06 22:20:59 +04:00
Matthias Jung 119d01a760 fix: rendering problem with dash 2026-01-04 17:59:32 +04:00
Matthias Jung a7a03c084a fix: dash type 2026-01-04 17:51:50 +04:00
Matthias Jung f950a19d34 feature: add qtyrange command 2026-01-04 16:35:34 +04:00
Matthias Jung ab89966a05 feature: add decibel and percent 2026-01-04 16:11:29 +04:00
Matthias Jung 0ce73d93dc feature: add pico as unit prefix 2025-12-26 21:48:11 +01:00
Matthias Jung eb8f2aa91f feature: add \unit{} command 2025-12-25 22:37:52 +01:00
Matthias Jung 87a22978d3 fix: add dezi and centi for units 2025-12-25 18:36:51 +01:00
Prof. Dr. Matthias Jung DL9MJ e323954495 feature: assets migrated from old repro 2025-06-24 22:04:10 +02:00