Skip to content

Conversation

@becky-gilbert
Copy link
Contributor

@becky-gilbert becky-gilbert commented Nov 13, 2025

This PR adds a new optional prompt parameter to the image-hotspots and video-hotspots plugins. This is an HTML string that can be used to provide instructions about how to respond.

This also adds a new show_prompt_on_video_end parameter to the video-hotspots plugin so that the prompt appears when the participant is able to respond. This defaults to true but can be set to false, which will make the prompt appear immediately so that it is visible during the video playback.

In addition to the changes to the index.ts files, this PR also updates the following for each plugin:

  • documentation
  • tests
  • example HTML file (video-hotspots only, because the image version already contained a prompt in the image itself)

Updated video-hotspots example

Screen.Recording.2025-11-13.at.1.34.39.PM.mov

image-hotspots parameters

Screenshot 2025-11-13 at 1 32 35 PM

video-hotspots parameters

Screenshot 2025-11-13 at 1 33 11 PM

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: 8908ed6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@jspsych-contrib/plugin-image-hotspots Minor
@jspsych-contrib/plugin-video-hotspots Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@becky-gilbert
Copy link
Contributor Author

@jodeleeuw am I ok to merge this and #199?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants