Property | Description | Modes | Type | Example value |
---|
id | The unique id for the question on the page | all | String | question1 |
class | The html classes for the question | all | String | html5 hotspot edit |
data-number | The number of the question | all | Integer | 1 |
data-type | Identifies it as a hotspot html5 question | all | String | hotspot |
data-mode | The mode that the hotspot question is in, this is used to determine which question class to load | all | String | edit |
data-image | The url of the image used by the hotspot question. It should be generated by the url method of a Rogo directory class | all | URL | ../../getfile.php?type=media&filename=1463649649.jpg |
data-image-width | The width of the image in pixels | all | Integer | 600 |
data-image-height | The height of the image in pixels | all | Integer | 400 |
data-setup | Defines the correct answer | all except answer | String | Deer~16776960~ellipse~384,335,51b,3c3~0~|birds~45136~rectangle~fa,51,1db,121~0~ |
data-answer | The answer given by the user who responded to the question. In both cases the answer for each part of the question is separated by a pipe (|) character. In answer mode each part answer should be made of two components the x and y axis values of the user answer separated by a comma In script mode a boolean describing if the answer is correct should be before the coordinate. | answer, script | String | answer mode: 523,400|208,88 script mode: 0,523,400|1,208,88 |
data-exclusions | Used in script and standardset modes only. Defines which parts of the question have been excluded. Each character represents a layer, with '1' meaning excluded and '0' meaning not excluded. | script, standardset | String | 0100000000 |
data-answers | All the answers that have been given for the question. The answer for each part of the question is separated by a pipe (|) character. Each individual answer is separated by a semi-colon. Each individual answer is made up of three parts: - a boolean to state how the answer was marked
- the x coordinate
- the y coordinate
| analysis | String | 1,570,414;1,564,401|1,1118,897;0,362,153 |