// Numbas version: exam_results_page_options {"name": "GeoGebra: object replacements in JavaScript", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "GeoGebra: object replacements in JavaScript", "tags": [], "metadata": {"description": "

This question shows how to load a GeoGebra applet from geogebra.org.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

This worksheet has been loaded from https://www.geogebra.org/m/UqJChZFJ

\n

{geogebra_applet('https://www.geogebra.org/m/UqJChZFJ')}

\n

This applet has moved point A to (0,2):

\n

{replaced_applet(0,2)}

", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {"replaced_applet": {"parameters": [["x", "number"], ["y", "number"]], "type": "html", "language": "javascript", "definition": "var TString = Numbas.jme.types.TString;\nvar res = Numbas.extensions.geogebra.createGeogebraApplet({material_id: 'UqJChZFJ'},[\n {\n name: new TString('A'),\n definition: new TString('('+x+','+y+')')\n }\n]);\nreturn res.element;"}}, "preamble": {"js": "", "css": ""}, "parts": [], "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/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}