NO PRODUCT SETTINGS FOUND FOR:
examples

Gentle remainder that the product name comes from the `origin` first subfolder (after `/pms` ).

Basic i-Radio Button Questions

This demonstrates the basic i-radio fragment system with flag-based answer validation.

Visual Behavior

  • Initial state: All buttons appear as soft primary outline buttons
  • On click: Button turns green (correct) or red (wrong)
  • Other buttons: Reset to soft outline state when a new answer is selected

Example 1: Simple Binary Choice

Which programming language are we learning?

Example 2: With Always-Visible Comment

What is 2 + 2?

The last item without a flag is always visible as a comment.

Example 3: Multiple Correct Answers

Which of these are even numbers?

Multiple answers can be marked as correct (flag 20).

Example 4: With LaTeX Math

Solve: $x^2 - 4 = 0$

LaTeX expressions work seamlessly in radio buttons.

Example 5: French Question

Quelle est la capitale de la France?

Flag System Reference

FlagMeaningVisual Result
20Correct answerGreen button (btn-success)
21Wrong answerRed button (btn-error)
-1 or noneCommentAlways visible text below buttons

Markdown Syntax

- Answer text{:flag}
{: .i-radio}

Where flag is 20 (correct) or 21 (wrong).

Maths.pm ne collecte aucune donnée.
Aucun cookie collecté, aucune ligne de log d'écrite, pas l'ombre d'une base de données distante - nihil omnino.
Toutes les exécutions de code se font localement. Nous expliquons notre démarche sur cette page.

Limites de confidentialité (impact de l'hébergeur)
Aspects technologiques
Chez Pointcarre.app, nous nous engageons en faveur des communs numériques.

Ressources pédagogiques
Logiciels Libres & Infrastructure 🇫🇷

Codes sources
Logo licence AGPLv3
Contenus
Logo licence Creative Commons

Maths.pm, par

pointcarre.app