// Numbas version: finer_feedback_settings {"name": "JSXGraph: Show an object when advice is displayed", "extensions": ["jsxgraph"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "JSXGraph: Show an object when advice is displayed", "tags": [], "metadata": {"description": "
The diagram contains a line and a hidden glider on that line.
\nThe JavaScript preamble adds a callback which shows the glider when the question advice is displayed.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "The point should go here:
", "rulesets": {}, "extensions": ["jsxgraph"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"coords": {"name": "coords", "group": "Ungrouped variables", "definition": "vector(x,y)", "description": "", "templateType": "anything", "can_override": false}, "diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "jsxgraph(\n 500,500,\n [\n \"l\": ['line', [[0,1], [1,2]]],\n \"p\": ['glider', ['l'], [visible: false, id: 'p']],\n ]\n)", "description": "", "templateType": "anything", "can_override": false}, "x": {"name": "x", "group": "Ungrouped variables", "definition": "random(-3..3)", "description": "", "templateType": "anything", "can_override": false}, "y": {"name": "y", "group": "Ungrouped variables", "definition": "random(-3..3 except x)", "description": "", "templateType": "anything", "can_override": false}, "correct_diagram": {"name": "correct_diagram", "group": "Ungrouped variables", "definition": "jessiecode(400,400,\"\"\"\n point({x},{y}) <Move the dot to the coordinates $\\var[rowvector]{coords}$.
\n{diagram}
"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}], "resources": []}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://localhost:8000/accounts/profile/1/"}]}