// Numbas version: exam_results_page_options {"name": "On HTML attached", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "On HTML attached", "tags": [], "metadata": {"description": "

This question shows how to run some JavaScript code when the question's HTML is displayed on the page.

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

This is a statement

", "advice": "", "rulesets": {}, "extensions": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "question.signals.on('HTMLAttached',function() {\n var p = document.createElement('p');\n p.textContent = 'READY!';\n $(question.display.html).append(p);\n});", "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/"}]}