Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Hide navigation bar/arrows in quizzes #123

Open
rfuehrer opened this issue Feb 22, 2023 · 2 comments
Open

[Feature] Hide navigation bar/arrows in quizzes #123

rfuehrer opened this issue Feb 22, 2023 · 2 comments

Comments

@rfuehrer
Copy link

rfuehrer commented Feb 22, 2023

In testing, it is helpful if navigation to the next question is not enabled until the question has been solved or resolved correctly. Currently, quick navigation using arrow keys may (partially) skip the quiz questions, making it not obvious to the user that interaction is required here.

Possible solution:
Before a quiz, use a data tag (e.g. data-disable-navigation=true) to hide and disable navigation until the solution is found. After the solution has been found, the navigation can be displayed normally again and be usable.

Scaling:
This feature could also be used on other slides before headings to allow navigation via custom text links or links in SVGs.

Disadvantage:
Navigation is still possible via the page structure and users might get an inconsistent impression. However, the user is more likely to navigate via keyboard or navigation bar. With issue #120 this could be fixed.

@andre-dietrich
Copy link
Member

I think this is also possible with just a macro. I will have a look at it tomorrow ;-) ...

@andre-dietrich
Copy link
Member

deactivating keyboard navigation can be done globally in the following way:

<!--
@onload
document.body.removeEventListener('keydown', getEventListeners(document.body).keydown[0].listener)
@end
-->

# Main Title

The code within the onload section shall remove the only registered keydown listener on the document body. And thus, not react anymore to keyboard navigation ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants