Documentation

Show Answers

Description

Show Answers is a module that allows users to view the correct answers for every activity on a page.

Currently Show Answers has been integrated with the following addons:

  • Basic Math Gaps
  • Choice
  • Clock
  • Coloring
  • Connecting Dots
  • Connection
  • Count and Graph
  • Crossword
  • Figure Drawing
  • Fractions
  • Fractions Binder
  • Image gap
  • Image Identification
  • ImageViewer
  • Graph
  • Hangman
  • Line Number
  • Math
  • Magic Boxes
  • Memo Game
  • Multiple Gaps
  • Line Selection
  • Pie CHart
  • Plot
  • Points and Lines
  • Puzzle
  • Quiz
  • Ordering
  • Shape Tracing
  • Shooting Range
  • Sudoku
  • Table (gaps)
  • Text (gaps)
  • Text Identification
  • Text Coloring
  • Text Selection
  • TrueFalse
  • Writing Calculations


The Show Answers module is connected to all Limited Show Answer modules. Selecting the module disables or enables all Limited Show Answer modules.

Properties

The list starts with the common properties, learn more about them by visiting the Modules description section. The other available properties are described below.

Property name Description
Text Text displayed on the button.
Text selected Text displayed on the button when it's selected.
Increment check counter When this option is selected, check counter will be increased while showing answers.
Increase mistake counter When this option is selected, mistake counter will be increased while showing answers.
Lang attribute This property allows to define the language for this addon (different than the language of the lesson).

Supported commands

Command name Params Description
hide --- Hides the module.
show --- Shows the module.

Advanced Connector integration

Each command supported by the Show Answers module can be used in the Advanced Connector's scripts. The below example shows how it interacts with module Next.

EVENTSTART
    Name:AllAttempted
SCRIPTSTART
    var showAnswers= presenter.playerController.getModule('ShowAnswers1');
    showAnswers.show();
SCRIPTEND
EVENTEND

EVENTSTART
    Name:NotAllAttempted
SCRIPTSTART
    var showAnswers= presenter.playerController.getModule('ShowAnswers1');
    showAnswers.hide();
SCRIPTEND
EVENTEND

Events

Show Answers sends events compatible with Advanced Connector.

It sends ShowAnswers event when a user selects the button.

Field name Description
Name ShowAnswers

It sends HideAnswers event when a user deselects the button.

Field name Description
Name HideAnswers

CSS Classes

Property name Description
.show-answers-wrapper The outer wrapper of the whole module.
.show-answers-container The inner container of the whole addon.
.show-answers-button Button element

Default Styling

.show-answers-wrapper,
.show-answers-wrapper .show-answers-container,
.show-answers-wrapper .show-answers-container .show-answers-button {
    width: 100%;
    height: 100%;
}

.show-answers-wrapper .show-answers-container .show-answers-button {
    background: url('resources/show-answers-button.png') no-repeat center;
    cursor: pointer;
    text-align: center;
}

Demo presentation

Demo presentation contains examples of how to use this module.