Skip to content
Discussion options

You must be logged in to vote

Here you go:

jsPsych.plugins["word-by-word"] = (function() {

  var plugin = {};

  plugin.info = {
    name: "word-by-word",
    parameters: {
      words: {
        type: jsPsych.plugins.parameterType.STRING, 
        default: undefined
      },
      stimulus_duration: {
        type: jsPsych.plugins.parameterType.INT,
        pretty_name: 'Stimulus duration',
        default: null,
        description: 'How long to hide the stimulus.'
      }
    }
  }

  plugin.trial = function(display_element, trial) {

    // data saving
    var trial_data = {
      words: trial.words
    };
    var current_position = 0;
    var n_words = trial.words.split(' ').length;

    function create_moving_w…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@becky-gilbert
Comment options

@pcompen1
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1730 on April 28, 2021 00:03.