Full example

Answering a question example

See below an example of custom integration. In this webpage, the user has to write the answer to a mathematical equation. A custom check button is added at the bottom right. If the answer is incorrect, the text is displayed in red. The text turns green when the answer is correct. To do so, the default control buttons are hidden and a new button is created. When the user presses it, the export_() method is called and when the exported event is received, the LaTeX result is compared to the answer. To set the button color and the theme, [see the styling section][styling].

We use cookies to ensure that we give you the best experience on our website Read the privacy policy