API Docs for: 0.5.1
Show:

ExpLookitExitSurvey Class

Standard exit survey for Lookit studies: confirm participant birthdate, ask user for video sharing permission level & Databrary sharing, option to withdraw, freeform comments, debriefing/thank you text. Leaves fullscreen mode.

"frames": {
    "my-exit-survey": {
        "kind": "exp-lookit-exit-survey"
        "debriefing": {
            "title": "Thank you!",
            "text": "Learning how children react to ducks will help scientists design better rubber ducks.",
            "image": {
                "src": "https://s3.amazonaws.com/lookitcontents/ducks/duck.png",
                "alt": "Very cute duck"
            }
        }
    }
}

Methods

exitFullscreen

()
Exit fullscreen mode

serializeContent

(
  • birthDate
  • databraryShare
  • useOfMedia
  • withdrawal
  • feedback
  • eventTimings
)
Object

Parameters captured and sent to the server

Parameters:

  • birthDate String

    Child's birthdate as entered into exit survey; timestamp string starting YYYY-mm-dd.

  • databraryShare String

    Whether data can be shared with Databrary: 'yes' or 'no'

  • useOfMedia String

    Video privacy level: 'private', 'scientific', or 'public'

  • withdrawal Boolean

    Whether the user checked the box to withdraw video data

  • feedback String

    Freeform comments entered by parent

  • eventTimings Object

    Only event captured during this frame is 'nextFrame'; example eventTimings value: [{u'eventType': u'nextFrame', u'timestamp': u'2016-08-03T00:45:37.157Z'}]

Returns:

Object:

The payload sent to the server

showFullscreen

()
Make a specified element fullscreen

Properties

debriefing

Object

Object specifying information to show on second page of exit survey, before returning to main Lookit site.

Sub-properties:

  • title String

    Title of debriefing page

  • text String

    Paragraph to show as debriefing

  • image Object

    Object specifying source URL [src] & alt-text [alt] for any image to show during debriefing (optional). Example: { "src": "https://s3.amazonaws.com/lookitcontents/ducks/duck.png", "alt": "Very cute duck" }

fsButtonID

String
The element ID of a button to show if the user leaves fullscreen mode

fullScreenElementId

String
The element ID of the thing to make full screen (video element, div, etc)

id

String

A unique identifier for this item

Events

nextFrame

Move to next frame