// Numbas version: exam_results_page_options {"name": "Testing GGB button", "extensions": ["geogebra"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Testing GGB button", "tags": [], "metadata": {"description": "", "licence": "None specified"}, "statement": "

Just some text

\n
\n

and some more surrounding the div containg the ggbapplet

\n

And a link here to the first version of exam.geogebra.org

", "advice": "", "rulesets": {}, "extensions": ["geogebra"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "function loadJS(FILE_URL, async = true) {\n let scriptEle = document.createElement(\"script\");\n\n scriptEle.setAttribute(\"src\", FILE_URL);\n scriptEle.setAttribute(\"type\", \"text/javascript\");\n scriptEle.setAttribute(\"async\", async);\n\n document.body.appendChild(scriptEle);\n\n // success event \n scriptEle.addEventListener(\"load\", () => {\n console.log(\"File loaded\")\n });\n // error event\n scriptEle.addEventListener(\"error\", (ev) => {\n console.log(\"Error on loading file\", ev);\n });\n}\nloadJS(\"https://www.geogebra.org/apps/deployggb.js\", false);\n\nvar params = {\"appName\": \"graphing\", \"width\": 800, \"height\": 600, \"showAlgebraInput\": true };\nvar applet = new GGBApplet(params, true);\n\nquestion.signals.on('HTMLAttached',function() {\n applet.inject('ggb-element');\n});\n\n//window.addEventListener(\"load\", function() { \n//applet.inject('ggb-element');\n//});", "css": ""}, "parts": [], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Alexander Holvoet", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/19859/"}]}]}], "contributors": [{"name": "Alexander Holvoet", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/19859/"}]}