Skip to main content

Hotspot - Multiple

<?xml version="1.0" encoding="UTF-8"?>
<question type="hotspot" width="200" height="200">
  <text>Point out all instances of the product.
  </text>

  <!--
  The image on which the user has to point things out. maxChoices is the
  number of pointers the user can add.
  Attach it to the node using the upload functionality and de-select the
  "list" option for each file to hide it from the user.

  This example uses the following image:

  -->
  <matchImg src="/sites/wmmrc.wur.nl/files/EnzymCyclus.png" maxChoices="2">
    <!-- hotspots work similar to the html imagemap definition -->
    <hotspot identifier="ESC" shape="circle" coords="275,68,68">This is a hotspot.</hotspot>
    <hotspot identifier="E" shape="circle" coords="85,259,70">This is a hotspot.</hotspot>
    <hotspot identifier="EPC" shape="circle" coords="325,335,70">This is a hotspot.</hotspot>
    <hotspot identifier="S" shape="rect" coords="0,21,43,121">This is a hotspot.</hotspot>
    <hotspot identifier="P" shape="rect" coords="173,436,278,500">This is a hotspot.</hotspot>
    <!-- hotspot identifier="shapeB" shape="rect" coords="162,182,180,226" / -->
    <!-- hotspot identifier="shapeC" shape="poly" coords="174,282,258,293,320,318,366,360,267,468,207,438,149,443,99,465,85,486,7,416,7,354,64,307" / -->
  </matchImg>


  <hint mintries="1">Hint 1: There are two instances of the product in the image.</hint>
  <hint mintries="2">Hint 2: The product is released from the reaction.</hint>

  <!--
  mapping work like those in dragdrop and fillblanks questions. Use <and> <or>
  and <not> to combine things.
  -->
  <mapping correct="1">
    <match hotspot="EPC" />
    <match hotspot="P" />
    <feedback mintries="0">
      Very Good!
    </feedback>
  </mapping>

  <mapping correct="0">
    <match hotspot="EPC" />
    <not><match hotspot="P" /></not>
    <feedback>
      You have found the enzyme-bound product.
    </feedback>
  </mapping>

  <mapping correct="0">
    <match hotspot="P" />
    <not><match hotspot="EPC" /></not>
    <feedback>
      You have found the free product.
    </feedback>
  </mapping>

  <mapping correct="0">
    <match hotspot="E" />
    <feedback>
      You have selected the free enzyme that contains no product.
    </feedback>
  </mapping>

  <mapping correct="0">
    <not>
      <match hotspot="P" />
    </not>

    <feedback mintries="1">
      You have not selected the free product.
    </feedback>
  </mapping>

  <mapping correct="0">
    <match hotspot="S" />
    <feedback>
      You have selected the free substrate
    </feedback>
  </mapping>

  <mapping correct="0">
    <not>
      <or>
        <match hotspot="ESC" />
        <match hotspot="EPC" />
        <match hotspot="E" />
        <match hotspot="P" />
        <match hotspot="S" />
      </or>
    </not>
    <feedback mintries="1">You have not selected any component!</feedback>
  </mapping>

</question>