diff --git a/docs/plugins/demos/jspsych-survey-likert-demo1.html b/docs/plugins/demos/jspsych-survey-likert-demo1.html new file mode 100644 index 00000000..d8b195d7 --- /dev/null +++ b/docs/plugins/demos/jspsych-survey-likert-demo1.html @@ -0,0 +1,67 @@ + + +
+ + + + + + + + + diff --git a/docs/plugins/demos/jspsych-survey-likert-demo2.html b/docs/plugins/demos/jspsych-survey-likert-demo2.html new file mode 100644 index 00000000..1d064594 --- /dev/null +++ b/docs/plugins/demos/jspsych-survey-likert-demo2.html @@ -0,0 +1,69 @@ + + + + + + + + + + + + diff --git a/docs/plugins/jspsych-survey-likert.md b/docs/plugins/jspsych-survey-likert.md index 07adb516..f6aa0537 100644 --- a/docs/plugins/jspsych-survey-likert.md +++ b/docs/plugins/jspsych-survey-likert.md @@ -27,44 +27,60 @@ question_order | array | An array with the order of questions. For example `[2,0 ## Examples -#### Basic example +???+ example "Single Question" + === "Code" + ```javascript + var trial = { + type: 'survey-likert', + questions: [ + { + prompt: "I like vegetables.", + labels: [ + "Strongly Disagree", + "Disagree", + "Neutral", + "Agree", + "Strongly Agree" + ] + } + ] + }; + ``` -```javascript -var scale_1 = [ - "Strongly Disagree", - "Disagree", - "Neutral", - "Agree", - "Strongly Agree" -]; + === "Demo" +