jsxgraph advice advice

7 views
Skip to first unread message

William Haynes

unread,
Jul 13, 2025, 10:35:03 AMJul 13
to Numbas Users
Say I have created a jsxgraph board like this:

jsxgraph(
    500,500,
    [
        "l": ['line', [[0,1], [1,2]]],
        "p": ['glider', ['l'], [visible: false]],
    ]
)


How can I make the glider visible when the advice is shown?

Thanks,
Will

Christian Lawson-Perfect

unread,
Jul 16, 2025, 5:03:28 AMJul 16
to numbas...@googlegroups.com
You could add a bit of JavaScript to the question to wait for the 'adviceDisplayed' signal and then show the glider.

I'm a bit wary of doing things like this though. Is there a reason not to repeat the diagram in the advice section, with all the elements displayed?

--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/numbas-users/f517b867-53ca-43d8-9679-113859f3ed85n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages