API Docs for: 0.5.1
Show:

ExpLookitText Class

A frame to display text-only instructions, etc. to the user.

"frames": {
   "study-intro": {
       "id": "geom-intro",
       "blocks": [
           {
               "emph": true,
               "text": "Important: your child does not need to be with you until the videos begin. First, let's go over what will happen!",
               "title": "Your baby, the physicist"
           },
           {
               "text": "Some introductory text about this study."
           },
           {
               "text": "Another paragraph about this study."
           }
       ],
       "showPreviousButton": false,
       "kind": "exp-lookit-text"
   }
}

Item Index

Events

Methods

serializeContent

(
  • eventTimings
)
Object

The base class does not define any data to save to the server. It does, however, capture some basic event timing data. (such as when the user clicks the "next" button)

This section slightly breaks YUIDoc conventions- rather than being a literal guide to using the code, the "parameters" here are abstract descriptions of what data is captured.

Each frame that extends ExpFrameBase will send an array eventTimings back to the server upon completion. This array is an ordered list (oldest to newest) of every EVENT that happened during the frame. Each event is represented as an object with at least the properties {'eventType': EVENTNAME, 'timestamp': TIMESTAMP}. Frame-specific events may define additional properties that are sent.

Parameters:

Returns:

Properties

blocks

Object

Array of text blocks (paragraphs) to display.

Sub-properties:

  • title String

    title to display

  • text String

    paragraph of text

  • emph Boolean

    whether to bold this paragraph

id

String

A unique identifier for this item

showPreviousButton

Boolean

Whether to show a 'previous' button

Default: true

Events

nextFrame

Move to next frame