├── README.md ├── advanced-design-patterns ├── conditionals.html ├── event-handlers.html ├── functions-as-parameters.html ├── jspsych-4.3 │ ├── README.md │ ├── Thumbs.db │ ├── css │ │ └── jspsych.css │ ├── jspsych.js │ ├── license.txt │ ├── plugins │ │ ├── jspsych-animation.js │ │ ├── jspsych-call-function.js │ │ ├── jspsych-categorize-animation.js │ │ ├── jspsych-categorize.js │ │ ├── jspsych-free-sort.js │ │ ├── jspsych-html.js │ │ ├── jspsych-instructions.js │ │ ├── jspsych-multi-stim-multi-response.js │ │ ├── jspsych-palmer.js │ │ ├── jspsych-reconstruction.js │ │ ├── jspsych-same-different.js │ │ ├── jspsych-similarity.js │ │ ├── jspsych-single-audio.js │ │ ├── jspsych-single-stim.js │ │ ├── jspsych-survey-likert.js │ │ ├── jspsych-survey-text.js │ │ ├── jspsych-text.js │ │ ├── jspsych-visual-search-circle.js │ │ ├── jspsych-vsl-animate-occlusion.js │ │ ├── jspsych-vsl-grid-scene.js │ │ ├── jspsych-xab.js │ │ └── template │ │ │ └── jspsych-plugin-template.js │ └── tests&examples │ │ ├── chunk_level_data.html │ │ ├── css │ │ └── jquery-ui.css │ │ ├── data-add-properties.html │ │ ├── data-add-to-last-trial.html │ │ ├── data-as-function.html │ │ ├── end-experiment.html │ │ ├── error-messages-for-bad-experiment-structures.html │ │ ├── external_html │ │ └── simple_consent.html │ │ ├── img │ │ ├── 1.gif │ │ ├── 10.gif │ │ ├── 11.gif │ │ ├── 12.gif │ │ ├── 2.gif │ │ ├── 3.gif │ │ ├── 4.gif │ │ ├── 5.gif │ │ ├── 6.gif │ │ ├── 7.gif │ │ ├── 8.gif │ │ ├── 9.gif │ │ ├── backwardN.gif │ │ ├── fixation.gif │ │ ├── happy_face_1.jpg │ │ ├── happy_face_2.jpg │ │ ├── happy_face_3.jpg │ │ ├── happy_face_4.jpg │ │ ├── normalN.gif │ │ ├── sad_face_1.jpg │ │ ├── sad_face_2.jpg │ │ ├── sad_face_3.jpg │ │ └── sad_face_4.jpg │ │ ├── js │ │ ├── jquery-ui.min.js │ │ ├── jquery.min.js │ │ └── snap.svg-min.js │ │ ├── jspsych-animation.html │ │ ├── jspsych-call-function.html │ │ ├── jspsych-categorize-animation.html │ │ ├── jspsych-categorize.html │ │ ├── jspsych-free-sort.html │ │ ├── jspsych-html.html │ │ ├── jspsych-instructions.html │ │ ├── jspsych-multi-stim-multi-response.html │ │ ├── jspsych-palmer.html │ │ ├── jspsych-reconstruction.html │ │ ├── jspsych-same-different.html │ │ ├── jspsych-similarity.html │ │ ├── jspsych-single-audio.html │ │ ├── jspsych-single-stim.html │ │ ├── jspsych-survey-likert.html │ │ ├── jspsych-survey-text.html │ │ ├── jspsych-text.html │ │ ├── jspsych-visual-search-circle.html │ │ ├── jspsych-vsl-animate-occlusion.html │ │ ├── jspsych-vsl-grid-scene.html │ │ ├── jspsych-xab.html │ │ ├── navigate-experiment.html │ │ ├── randomization-module.html │ │ ├── sound │ │ └── sound.mp3 │ │ └── timing-post-trial-function.html ├── loops.html └── sub-trials.html ├── hello-world ├── experiment.html └── jspsych-4.3 │ ├── README.md │ ├── Thumbs.db │ ├── css │ └── jspsych.css │ ├── jspsych.js │ ├── license.txt │ ├── plugins │ ├── jspsych-animation.js │ ├── jspsych-call-function.js │ ├── jspsych-categorize-animation.js │ ├── jspsych-categorize.js │ ├── jspsych-free-sort.js │ ├── jspsych-html.js │ ├── jspsych-instructions.js │ ├── jspsych-multi-stim-multi-response.js │ ├── jspsych-palmer.js │ ├── jspsych-reconstruction.js │ ├── jspsych-same-different.js │ ├── jspsych-similarity.js │ ├── jspsych-single-audio.js │ ├── jspsych-single-stim.js │ ├── jspsych-survey-likert.js │ ├── jspsych-survey-text.js │ ├── jspsych-text.js │ ├── jspsych-visual-search-circle.js │ ├── jspsych-vsl-animate-occlusion.js │ ├── jspsych-vsl-grid-scene.js │ ├── jspsych-xab.js │ └── template │ │ └── jspsych-plugin-template.js │ └── tests&examples │ ├── chunk_level_data.html │ ├── css │ └── jquery-ui.css │ ├── data-add-properties.html │ ├── data-add-to-last-trial.html │ ├── data-as-function.html │ ├── end-experiment.html │ ├── error-messages-for-bad-experiment-structures.html │ ├── external_html │ └── simple_consent.html │ ├── img │ ├── 1.gif │ ├── 10.gif │ ├── 11.gif │ ├── 12.gif │ ├── 2.gif │ ├── 3.gif │ ├── 4.gif │ ├── 5.gif │ ├── 6.gif │ ├── 7.gif │ ├── 8.gif │ ├── 9.gif │ ├── backwardN.gif │ ├── fixation.gif │ ├── happy_face_1.jpg │ ├── happy_face_2.jpg │ ├── happy_face_3.jpg │ ├── happy_face_4.jpg │ ├── normalN.gif │ ├── sad_face_1.jpg │ ├── sad_face_2.jpg │ ├── sad_face_3.jpg │ └── sad_face_4.jpg │ ├── js │ ├── jquery-ui.min.js │ ├── jquery.min.js │ └── snap.svg-min.js │ ├── jspsych-animation.html │ ├── jspsych-call-function.html │ ├── jspsych-categorize-animation.html │ ├── jspsych-categorize.html │ ├── jspsych-free-sort.html │ ├── jspsych-html.html │ ├── jspsych-instructions.html │ ├── jspsych-multi-stim-multi-response.html │ ├── jspsych-palmer.html │ ├── jspsych-reconstruction.html │ ├── jspsych-same-different.html │ ├── jspsych-similarity.html │ ├── jspsych-single-audio.html │ ├── jspsych-single-stim.html │ ├── jspsych-survey-likert.html │ ├── jspsych-survey-text.html │ ├── jspsych-text.html │ ├── jspsych-visual-search-circle.html │ ├── jspsych-vsl-animate-occlusion.html │ ├── jspsych-vsl-grid-scene.html │ ├── jspsych-xab.html │ ├── navigate-experiment.html │ ├── randomization-module.html │ ├── sound │ └── sound.mp3 │ └── timing-post-trial-function.html ├── lexical-decision ├── Rubenstein, Garfield, & Millikan, 1970.pdf ├── experiment-instructions-only.html ├── experiment-with-mean-rt.html ├── experiment.html └── jspsych-4.3 │ ├── README.md │ ├── Thumbs.db │ ├── css │ └── jspsych.css │ ├── jspsych.js │ ├── license.txt │ ├── plugins │ ├── jspsych-animation.js │ ├── jspsych-call-function.js │ ├── jspsych-categorize-animation.js │ ├── jspsych-categorize.js │ ├── jspsych-free-sort.js │ ├── jspsych-html.js │ ├── jspsych-instructions.js │ ├── jspsych-multi-stim-multi-response.js │ ├── jspsych-palmer.js │ ├── jspsych-reconstruction.js │ ├── jspsych-same-different.js │ ├── jspsych-similarity.js │ ├── jspsych-single-audio.js │ ├── jspsych-single-stim.js │ ├── jspsych-survey-likert.js │ ├── jspsych-survey-text.js │ ├── jspsych-text.js │ ├── jspsych-visual-search-circle.js │ ├── jspsych-vsl-animate-occlusion.js │ ├── jspsych-vsl-grid-scene.js │ ├── jspsych-xab.js │ └── template │ │ └── jspsych-plugin-template.js │ └── tests&examples │ ├── chunk_level_data.html │ ├── css │ └── jquery-ui.css │ ├── data-add-properties.html │ ├── data-add-to-last-trial.html │ ├── data-as-function.html │ ├── end-experiment.html │ ├── error-messages-for-bad-experiment-structures.html │ ├── external_html │ └── simple_consent.html │ ├── img │ ├── 1.gif │ ├── 10.gif │ ├── 11.gif │ ├── 12.gif │ ├── 2.gif │ ├── 3.gif │ ├── 4.gif │ ├── 5.gif │ ├── 6.gif │ ├── 7.gif │ ├── 8.gif │ ├── 9.gif │ ├── backwardN.gif │ ├── fixation.gif │ ├── happy_face_1.jpg │ ├── happy_face_2.jpg │ ├── happy_face_3.jpg │ ├── happy_face_4.jpg │ ├── normalN.gif │ ├── sad_face_1.jpg │ ├── sad_face_2.jpg │ ├── sad_face_3.jpg │ └── sad_face_4.jpg │ ├── js │ ├── jquery-ui.min.js │ ├── jquery.min.js │ └── snap.svg-min.js │ ├── jspsych-animation.html │ ├── jspsych-call-function.html │ ├── jspsych-categorize-animation.html │ ├── jspsych-categorize.html │ ├── jspsych-free-sort.html │ ├── jspsych-html.html │ ├── jspsych-instructions.html │ ├── jspsych-multi-stim-multi-response.html │ ├── jspsych-palmer.html │ ├── jspsych-reconstruction.html │ ├── jspsych-same-different.html │ ├── jspsych-similarity.html │ ├── jspsych-single-audio.html │ ├── jspsych-single-stim.html │ ├── jspsych-survey-likert.html │ ├── jspsych-survey-text.html │ ├── jspsych-text.html │ ├── jspsych-visual-search-circle.html │ ├── jspsych-vsl-animate-occlusion.html │ ├── jspsych-vsl-grid-scene.html │ ├── jspsych-xab.html │ ├── navigate-experiment.html │ ├── randomization-module.html │ ├── sound │ └── sound.mp3 │ └── timing-post-trial-function.html └── plugin-development ├── jspsych-4.3 ├── README.md ├── Thumbs.db ├── css │ └── jspsych.css ├── jspsych.js ├── license.txt ├── plugins │ ├── jspsych-animation.js │ ├── jspsych-call-function.js │ ├── jspsych-categorize-animation.js │ ├── jspsych-categorize.js │ ├── jspsych-free-sort.js │ ├── jspsych-html.js │ ├── jspsych-instructions.js │ ├── jspsych-multi-stim-multi-response.js │ ├── jspsych-palmer.js │ ├── jspsych-reconstruction.js │ ├── jspsych-same-different.js │ ├── jspsych-similarity.js │ ├── jspsych-single-audio.js │ ├── jspsych-single-stim.js │ ├── jspsych-survey-likert.js │ ├── jspsych-survey-text.js │ ├── jspsych-text.js │ ├── jspsych-visual-search-circle.js │ ├── jspsych-vsl-animate-occlusion.js │ ├── jspsych-vsl-grid-scene.js │ ├── jspsych-xab.js │ └── template │ │ └── jspsych-plugin-template.js └── tests&examples │ ├── chunk_level_data.html │ ├── css │ └── jquery-ui.css │ ├── data-add-properties.html │ ├── data-add-to-last-trial.html │ ├── data-as-function.html │ ├── end-experiment.html │ ├── error-messages-for-bad-experiment-structures.html │ ├── external_html │ └── simple_consent.html │ ├── img │ ├── 1.gif │ ├── 10.gif │ ├── 11.gif │ ├── 12.gif │ ├── 2.gif │ ├── 3.gif │ ├── 4.gif │ ├── 5.gif │ ├── 6.gif │ ├── 7.gif │ ├── 8.gif │ ├── 9.gif │ ├── backwardN.gif │ ├── fixation.gif │ ├── happy_face_1.jpg │ ├── happy_face_2.jpg │ ├── happy_face_3.jpg │ ├── happy_face_4.jpg │ ├── normalN.gif │ ├── sad_face_1.jpg │ ├── sad_face_2.jpg │ ├── sad_face_3.jpg │ └── sad_face_4.jpg │ ├── js │ ├── jquery-ui.min.js │ ├── jquery.min.js │ └── snap.svg-min.js │ ├── jspsych-animation.html │ ├── jspsych-call-function.html │ ├── jspsych-categorize-animation.html │ ├── jspsych-categorize.html │ ├── jspsych-free-sort.html │ ├── jspsych-html.html │ ├── jspsych-instructions.html │ ├── jspsych-multi-stim-multi-response.html │ ├── jspsych-palmer.html │ ├── jspsych-reconstruction.html │ ├── jspsych-same-different.html │ ├── jspsych-similarity.html │ ├── jspsych-single-audio.html │ ├── jspsych-single-stim.html │ ├── jspsych-survey-likert.html │ ├── jspsych-survey-text.html │ ├── jspsych-text.html │ ├── jspsych-visual-search-circle.html │ ├── jspsych-vsl-animate-occlusion.html │ ├── jspsych-vsl-grid-scene.html │ ├── jspsych-xab.html │ ├── navigate-experiment.html │ ├── randomization-module.html │ ├── sound │ └── sound.mp3 │ └── timing-post-trial-function.html ├── jspsych-random-number.js └── using-the-plugin.html /README.md: -------------------------------------------------------------------------------- 1 | # Programming Online Experiments with jsPsych 2 | #### Tutorial presented at the 2015 Annual Meeting of the Cognitive Science Society 3 | 4 | **I'm still updating the content of this repository, so a few things might be missing at the moment** 5 | 6 | This repository contains materials for the tutorial on jspsych at the 2015 CogSci meeting. The materials are intended to accompany the presentation, but you might find them useful even if you didn't attend the session. 7 | 8 | ## Presentation Slides 9 | 10 | [The tutorial slides](https://docs.google.com/presentation/d/1sBMW2uBvT82sVc1esZzNLxYwBE4urizNtXc4lH4treY/edit?usp=sharing) can be viewed on Google Drive. 11 | 12 | ## Repository Contents 13 | 14 | ### hello-world 15 | 16 | This folder contains a working copy of the [hello-world example](http://docs.jspsych.org/tutorials/hello-world/) from the jsPsych documentation. 17 | 18 | ### lexical-decision 19 | 20 | The lexical decision task example. There are three versions of the experiment in this folder. 21 | 22 | * `experiment-instructions-only.html` contains a truncated version of the experiment with only the instructions trial. 23 | * `experiment.html` contains the full version of the experiment as covered in the tutorial. 24 | * `experiment-with-mean-rt.html` is an extended version of the experiment that shows how to access data generated by the participant to compute a mean response time for each condition and an overall accuracy score. These values are then displayed to the participant at the end of the experiment. 25 | 26 | ### plugin-development 27 | 28 | This folder contains the `random-number` plugin example and a simple experiment that uses the plugin. 29 | 30 | ### advanced-design-patterns 31 | 32 | Working examples of the "advanced design patterns" covered in the tutorial. These are examples that highlight different programming strategies for getting jspsych to do more advanced tasks. 33 | 34 | ## Other helpful links 35 | 36 | ### jsPsych project 37 | [github.com/jodeleeuw/jsPsych](https://github.com/jodeleeuw/jsPsych) 38 | 39 | ### jsPsych documentation 40 | [docs.jspsych.org](http://docs.jspsych.org) 41 | 42 | ### jsPsych support forum 43 | [https://groups.google.com/forum/#!forum/jspsych](https://groups.google.com/forum/#!forum/jspsych) 44 | -------------------------------------------------------------------------------- /advanced-design-patterns/conditionals.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Advanced Patterns: Sub-trials 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 67 | 68 | -------------------------------------------------------------------------------- /advanced-design-patterns/event-handlers.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Advanced Patterns: Event Handlers 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 30 | 31 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/README.md: -------------------------------------------------------------------------------- 1 | ![logo](jspsych-logo-readme.jpg) 2 | 3 | jsPsych is a JavaScript library for creating and running behavioral experiments in a web browser. jsPsych simplifies the process of coding browser-based experiments by providing a set of flexibile plugins that define different kinds of tasks a subject could complete during an experiment. By assembling different plugins together and customizing the parameters of each, it is possible to create many different types of experiments. 4 | 5 | Documentation 6 | ------------- 7 | 8 | Documentation is available at [docs.jspsych.org](http://docs.jspsych.org). 9 | 10 | Contributing 11 | ------------ 12 | 13 | Contributions to the code are welcome. Please use the [Issue tracker system](https://github.com/jodeleeuw/jsPsych/issues) to report bugs or discuss suggestions for new features and improvements. If you would like to contribute code, [submit a Pull request](https://help.github.com/articles/using-pull-requests). 14 | 15 | Need help? 16 | ---------- 17 | 18 | For questions about using the library, please post to the [jsPsych e-mail list](https://groups.google.com/forum/#!forum/jspsych). This creates a publically available archive of questions and solutions. 19 | 20 | Contact 21 | ------- 22 | 23 | jsPsych was created by Josh de Leeuw ([@jodeleeu](https://github.com/jodeleeuw)) at Indiana University. 24 | 25 | Citation 26 | -------- 27 | 28 | If you use this library in academic work, please cite the [paper that describes jsPsych](http://link.springer.com/article/10.3758%2Fs13428-014-0458-y) 29 | 30 | de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. *Behavior Research Methods*, _47_(1), 1-12. doi:10.3758/s13428-014-0458-y 31 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/Thumbs.db -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Joshua R. de Leeuw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/plugins/jspsych-call-function.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jspsych-call-function 3 | * plugin for calling an arbitrary function during a jspsych experiment 4 | * Josh de Leeuw 5 | * 6 | * documentation: docs.jspsych.org 7 | * 8 | **/ 9 | 10 | (function($) { 11 | jsPsych['call-function'] = (function() { 12 | 13 | var plugin = {}; 14 | 15 | plugin.create = function(params) { 16 | var trials = new Array(1); 17 | trials[0] = { 18 | "func": params.func 19 | }; 20 | return trials; 21 | }; 22 | 23 | plugin.trial = function(display_element, trial) { 24 | var return_val = trial.func(); 25 | 26 | jsPsych.data.write({ 27 | value: return_val 28 | }); 29 | 30 | 31 | jsPsych.finishTrial(); 32 | }; 33 | 34 | return plugin; 35 | })(); 36 | })(jQuery); 37 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/plugins/template/jspsych-plugin-template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Josh de Leeuw 3 | * November 2013 4 | * 5 | * This is a basic template for a jsPsych plugin. Use it to start creating your 6 | * own plugin. There is more information about how to create a plugin on the 7 | * jsPsych wiki (https://github.com/jodeleeuw/jsPsych/wiki/Create-a-Plugin). 8 | * 9 | * 10 | */ 11 | 12 | (function( $ ) { 13 | jsPsych["PLUGIN-NAME"] = (function(){ 14 | 15 | var plugin = {}; 16 | 17 | plugin.create = function(params) { 18 | var trials = new Array(NUMBER_OF_TRIALS); 19 | for(var i = 0; i < NUMBER_OF_TRIALS; i++) 20 | { 21 | trials[i] = {}; 22 | trials[i].type = "PLUGIN-NAME"; 23 | // other information needed for the trial method can be added here 24 | 25 | // supporting the generic data object with the following line 26 | // is always a good idea. it allows people to pass in the data 27 | // parameter, but if they don't it gracefully adds an empty object 28 | // in it's place. 29 | trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i]; 30 | } 31 | return trials; 32 | }; 33 | 34 | plugin.trial = function(display_element, block, trial, part) { 35 | // code for running the trial goes here 36 | 37 | // allow variables as functions 38 | // this allows any trial variable to be specified as a function 39 | // that will be evaluated when the trial runs. this allows users 40 | // to dynamically adjust the contents of a trial as a result 41 | // of other trials, among other uses. you can leave this out, 42 | // but in general it should be included 43 | trial = jsPsych.evaluateFunctionParameters(trial); 44 | 45 | // data saving 46 | // this is technically optional, but virtually every plugin will 47 | // need to do it. it is good practice to include the type and 48 | // trial_index fields for all plugins. 49 | var trial_data = { 50 | type: trial.type, 51 | trial_index: block.trial_idx, 52 | // other values to save go here 53 | }; 54 | 55 | // this line merges together the trial_data object and the generic 56 | // data object (trial.data), and then stores them. 57 | block.writeData($.extend({}, trial_data, trial.data)); 58 | 59 | // this method must be called at the end of the trial 60 | block.next(); 61 | }; 62 | 63 | return plugin; 64 | })(); 65 | }) (jQuery); -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/chunk_level_data.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/data-add-properties.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/data-add-to-last-trial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 40 | 41 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/data-as-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/end-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/error-messages-for-bad-experiment-structures.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 30 | 31 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/external_html/simple_consent.html: -------------------------------------------------------------------------------- 1 |

This is a demo consent form. Click the checkbox below to indicate the you 2 | would like to participate in the experiment

3 |

I agree to take part in this study.

4 | 5 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/1.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/10.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/11.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/12.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/2.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/3.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/4.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/5.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/6.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/7.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/8.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/9.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/backwardN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/backwardN.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/fixation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/fixation.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_1.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_2.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_3.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/happy_face_4.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/normalN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/normalN.gif -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_1.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_2.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_3.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/img/sad_face_4.jpg -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 32 | 33 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-call-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 27 | 28 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-categorize-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 38 | 39 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-categorize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-free-sort.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 29 | 30 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 47 | 48 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-instructions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-multi-stim-multi-response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 43 | 44 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-palmer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 49 | 50 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-reconstruction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 34 | 35 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-same-different.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-similarity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 |
16 | 17 | 35 | 36 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-single-audio.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-single-stim.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-survey-likert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 39 | 40 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-survey-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 33 | 34 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 25 | 26 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-visual-search-circle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 34 | 35 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-vsl-animate-occlusion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 33 | 34 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-vsl-grid-scene.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 45 | 46 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/jspsych-xab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 33 | 34 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/navigate-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 59 | 60 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/randomization-module.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 23 | 24 | -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/sound/sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/advanced-design-patterns/jspsych-4.3/tests&examples/sound/sound.mp3 -------------------------------------------------------------------------------- /advanced-design-patterns/jspsych-4.3/tests&examples/timing-post-trial-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 37 | 38 | -------------------------------------------------------------------------------- /advanced-design-patterns/sub-trials.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Advanced Patterns: Sub-trials 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 42 | 43 | -------------------------------------------------------------------------------- /hello-world/experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello world experiment 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 22 | 23 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/README.md: -------------------------------------------------------------------------------- 1 | ![logo](jspsych-logo-readme.jpg) 2 | 3 | jsPsych is a JavaScript library for creating and running behavioral experiments in a web browser. jsPsych simplifies the process of coding browser-based experiments by providing a set of flexibile plugins that define different kinds of tasks a subject could complete during an experiment. By assembling different plugins together and customizing the parameters of each, it is possible to create many different types of experiments. 4 | 5 | Documentation 6 | ------------- 7 | 8 | Documentation is available at [docs.jspsych.org](http://docs.jspsych.org). 9 | 10 | Contributing 11 | ------------ 12 | 13 | Contributions to the code are welcome. Please use the [Issue tracker system](https://github.com/jodeleeuw/jsPsych/issues) to report bugs or discuss suggestions for new features and improvements. If you would like to contribute code, [submit a Pull request](https://help.github.com/articles/using-pull-requests). 14 | 15 | Need help? 16 | ---------- 17 | 18 | For questions about using the library, please post to the [jsPsych e-mail list](https://groups.google.com/forum/#!forum/jspsych). This creates a publically available archive of questions and solutions. 19 | 20 | Contact 21 | ------- 22 | 23 | jsPsych was created by Josh de Leeuw ([@jodeleeu](https://github.com/jodeleeuw)) at Indiana University. 24 | 25 | Citation 26 | -------- 27 | 28 | If you use this library in academic work, please cite the [paper that describes jsPsych](http://link.springer.com/article/10.3758%2Fs13428-014-0458-y) 29 | 30 | de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. *Behavior Research Methods*, _47_(1), 1-12. doi:10.3758/s13428-014-0458-y 31 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/Thumbs.db -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Joshua R. de Leeuw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/plugins/jspsych-call-function.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jspsych-call-function 3 | * plugin for calling an arbitrary function during a jspsych experiment 4 | * Josh de Leeuw 5 | * 6 | * documentation: docs.jspsych.org 7 | * 8 | **/ 9 | 10 | (function($) { 11 | jsPsych['call-function'] = (function() { 12 | 13 | var plugin = {}; 14 | 15 | plugin.create = function(params) { 16 | var trials = new Array(1); 17 | trials[0] = { 18 | "func": params.func 19 | }; 20 | return trials; 21 | }; 22 | 23 | plugin.trial = function(display_element, trial) { 24 | var return_val = trial.func(); 25 | 26 | jsPsych.data.write({ 27 | value: return_val 28 | }); 29 | 30 | 31 | jsPsych.finishTrial(); 32 | }; 33 | 34 | return plugin; 35 | })(); 36 | })(jQuery); 37 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/plugins/template/jspsych-plugin-template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Josh de Leeuw 3 | * November 2013 4 | * 5 | * This is a basic template for a jsPsych plugin. Use it to start creating your 6 | * own plugin. There is more information about how to create a plugin on the 7 | * jsPsych wiki (https://github.com/jodeleeuw/jsPsych/wiki/Create-a-Plugin). 8 | * 9 | * 10 | */ 11 | 12 | (function( $ ) { 13 | jsPsych["PLUGIN-NAME"] = (function(){ 14 | 15 | var plugin = {}; 16 | 17 | plugin.create = function(params) { 18 | var trials = new Array(NUMBER_OF_TRIALS); 19 | for(var i = 0; i < NUMBER_OF_TRIALS; i++) 20 | { 21 | trials[i] = {}; 22 | trials[i].type = "PLUGIN-NAME"; 23 | // other information needed for the trial method can be added here 24 | 25 | // supporting the generic data object with the following line 26 | // is always a good idea. it allows people to pass in the data 27 | // parameter, but if they don't it gracefully adds an empty object 28 | // in it's place. 29 | trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i]; 30 | } 31 | return trials; 32 | }; 33 | 34 | plugin.trial = function(display_element, block, trial, part) { 35 | // code for running the trial goes here 36 | 37 | // allow variables as functions 38 | // this allows any trial variable to be specified as a function 39 | // that will be evaluated when the trial runs. this allows users 40 | // to dynamically adjust the contents of a trial as a result 41 | // of other trials, among other uses. you can leave this out, 42 | // but in general it should be included 43 | trial = jsPsych.evaluateFunctionParameters(trial); 44 | 45 | // data saving 46 | // this is technically optional, but virtually every plugin will 47 | // need to do it. it is good practice to include the type and 48 | // trial_index fields for all plugins. 49 | var trial_data = { 50 | type: trial.type, 51 | trial_index: block.trial_idx, 52 | // other values to save go here 53 | }; 54 | 55 | // this line merges together the trial_data object and the generic 56 | // data object (trial.data), and then stores them. 57 | block.writeData($.extend({}, trial_data, trial.data)); 58 | 59 | // this method must be called at the end of the trial 60 | block.next(); 61 | }; 62 | 63 | return plugin; 64 | })(); 65 | }) (jQuery); -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/chunk_level_data.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/data-add-properties.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/data-add-to-last-trial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 40 | 41 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/data-as-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/end-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/error-messages-for-bad-experiment-structures.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 30 | 31 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/external_html/simple_consent.html: -------------------------------------------------------------------------------- 1 |

This is a demo consent form. Click the checkbox below to indicate the you 2 | would like to participate in the experiment

3 |

I agree to take part in this study.

4 | 5 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/1.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/10.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/11.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/12.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/2.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/3.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/4.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/5.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/6.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/7.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/8.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/9.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/backwardN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/backwardN.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/fixation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/fixation.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/happy_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/happy_face_1.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/happy_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/happy_face_2.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/happy_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/happy_face_3.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/happy_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/happy_face_4.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/normalN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/normalN.gif -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/sad_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/sad_face_1.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/sad_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/sad_face_2.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/sad_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/sad_face_3.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/img/sad_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/img/sad_face_4.jpg -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 32 | 33 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-call-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 27 | 28 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-categorize-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 38 | 39 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-categorize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-free-sort.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 29 | 30 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 47 | 48 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-instructions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-multi-stim-multi-response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 43 | 44 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-palmer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 49 | 50 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-reconstruction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 34 | 35 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-same-different.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-similarity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 |
16 | 17 | 35 | 36 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-single-audio.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-single-stim.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-survey-likert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 39 | 40 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-survey-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 33 | 34 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 25 | 26 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-visual-search-circle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 34 | 35 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-vsl-animate-occlusion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 33 | 34 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-vsl-grid-scene.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 45 | 46 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/jspsych-xab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 33 | 34 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/navigate-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 59 | 60 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/randomization-module.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 23 | 24 | -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/sound/sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/hello-world/jspsych-4.3/tests&examples/sound/sound.mp3 -------------------------------------------------------------------------------- /hello-world/jspsych-4.3/tests&examples/timing-post-trial-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 37 | 38 | -------------------------------------------------------------------------------- /lexical-decision/Rubenstein, Garfield, & Millikan, 1970.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/Rubenstein, Garfield, & Millikan, 1970.pdf -------------------------------------------------------------------------------- /lexical-decision/experiment-instructions-only.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello world experiment 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 48 | 49 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/README.md: -------------------------------------------------------------------------------- 1 | ![logo](jspsych-logo-readme.jpg) 2 | 3 | jsPsych is a JavaScript library for creating and running behavioral experiments in a web browser. jsPsych simplifies the process of coding browser-based experiments by providing a set of flexibile plugins that define different kinds of tasks a subject could complete during an experiment. By assembling different plugins together and customizing the parameters of each, it is possible to create many different types of experiments. 4 | 5 | Documentation 6 | ------------- 7 | 8 | Documentation is available at [docs.jspsych.org](http://docs.jspsych.org). 9 | 10 | Contributing 11 | ------------ 12 | 13 | Contributions to the code are welcome. Please use the [Issue tracker system](https://github.com/jodeleeuw/jsPsych/issues) to report bugs or discuss suggestions for new features and improvements. If you would like to contribute code, [submit a Pull request](https://help.github.com/articles/using-pull-requests). 14 | 15 | Need help? 16 | ---------- 17 | 18 | For questions about using the library, please post to the [jsPsych e-mail list](https://groups.google.com/forum/#!forum/jspsych). This creates a publically available archive of questions and solutions. 19 | 20 | Contact 21 | ------- 22 | 23 | jsPsych was created by Josh de Leeuw ([@jodeleeu](https://github.com/jodeleeuw)) at Indiana University. 24 | 25 | Citation 26 | -------- 27 | 28 | If you use this library in academic work, please cite the [paper that describes jsPsych](http://link.springer.com/article/10.3758%2Fs13428-014-0458-y) 29 | 30 | de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. *Behavior Research Methods*, _47_(1), 1-12. doi:10.3758/s13428-014-0458-y 31 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/Thumbs.db -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Joshua R. de Leeuw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/plugins/jspsych-call-function.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jspsych-call-function 3 | * plugin for calling an arbitrary function during a jspsych experiment 4 | * Josh de Leeuw 5 | * 6 | * documentation: docs.jspsych.org 7 | * 8 | **/ 9 | 10 | (function($) { 11 | jsPsych['call-function'] = (function() { 12 | 13 | var plugin = {}; 14 | 15 | plugin.create = function(params) { 16 | var trials = new Array(1); 17 | trials[0] = { 18 | "func": params.func 19 | }; 20 | return trials; 21 | }; 22 | 23 | plugin.trial = function(display_element, trial) { 24 | var return_val = trial.func(); 25 | 26 | jsPsych.data.write({ 27 | value: return_val 28 | }); 29 | 30 | 31 | jsPsych.finishTrial(); 32 | }; 33 | 34 | return plugin; 35 | })(); 36 | })(jQuery); 37 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/plugins/template/jspsych-plugin-template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Josh de Leeuw 3 | * November 2013 4 | * 5 | * This is a basic template for a jsPsych plugin. Use it to start creating your 6 | * own plugin. There is more information about how to create a plugin on the 7 | * jsPsych wiki (https://github.com/jodeleeuw/jsPsych/wiki/Create-a-Plugin). 8 | * 9 | * 10 | */ 11 | 12 | (function( $ ) { 13 | jsPsych["PLUGIN-NAME"] = (function(){ 14 | 15 | var plugin = {}; 16 | 17 | plugin.create = function(params) { 18 | var trials = new Array(NUMBER_OF_TRIALS); 19 | for(var i = 0; i < NUMBER_OF_TRIALS; i++) 20 | { 21 | trials[i] = {}; 22 | trials[i].type = "PLUGIN-NAME"; 23 | // other information needed for the trial method can be added here 24 | 25 | // supporting the generic data object with the following line 26 | // is always a good idea. it allows people to pass in the data 27 | // parameter, but if they don't it gracefully adds an empty object 28 | // in it's place. 29 | trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i]; 30 | } 31 | return trials; 32 | }; 33 | 34 | plugin.trial = function(display_element, block, trial, part) { 35 | // code for running the trial goes here 36 | 37 | // allow variables as functions 38 | // this allows any trial variable to be specified as a function 39 | // that will be evaluated when the trial runs. this allows users 40 | // to dynamically adjust the contents of a trial as a result 41 | // of other trials, among other uses. you can leave this out, 42 | // but in general it should be included 43 | trial = jsPsych.evaluateFunctionParameters(trial); 44 | 45 | // data saving 46 | // this is technically optional, but virtually every plugin will 47 | // need to do it. it is good practice to include the type and 48 | // trial_index fields for all plugins. 49 | var trial_data = { 50 | type: trial.type, 51 | trial_index: block.trial_idx, 52 | // other values to save go here 53 | }; 54 | 55 | // this line merges together the trial_data object and the generic 56 | // data object (trial.data), and then stores them. 57 | block.writeData($.extend({}, trial_data, trial.data)); 58 | 59 | // this method must be called at the end of the trial 60 | block.next(); 61 | }; 62 | 63 | return plugin; 64 | })(); 65 | }) (jQuery); -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/chunk_level_data.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/data-add-properties.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/data-add-to-last-trial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 40 | 41 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/data-as-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/end-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/error-messages-for-bad-experiment-structures.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 30 | 31 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/external_html/simple_consent.html: -------------------------------------------------------------------------------- 1 |

This is a demo consent form. Click the checkbox below to indicate the you 2 | would like to participate in the experiment

3 |

I agree to take part in this study.

4 | 5 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/1.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/10.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/11.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/12.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/2.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/3.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/4.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/5.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/6.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/7.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/8.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/9.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/backwardN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/backwardN.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/fixation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/fixation.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/happy_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/happy_face_1.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/happy_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/happy_face_2.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/happy_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/happy_face_3.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/happy_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/happy_face_4.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/normalN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/normalN.gif -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/sad_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/sad_face_1.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/sad_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/sad_face_2.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/sad_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/sad_face_3.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/img/sad_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/img/sad_face_4.jpg -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 32 | 33 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-call-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 27 | 28 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-categorize-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 38 | 39 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-categorize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-free-sort.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 29 | 30 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 47 | 48 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-instructions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-multi-stim-multi-response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 43 | 44 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-palmer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 49 | 50 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-reconstruction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 34 | 35 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-same-different.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-similarity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 |
16 | 17 | 35 | 36 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-single-audio.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-single-stim.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-survey-likert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 39 | 40 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-survey-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 33 | 34 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 25 | 26 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-visual-search-circle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 34 | 35 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-vsl-animate-occlusion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 33 | 34 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-vsl-grid-scene.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 45 | 46 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/jspsych-xab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 33 | 34 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/navigate-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 59 | 60 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/randomization-module.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 23 | 24 | -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/sound/sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/lexical-decision/jspsych-4.3/tests&examples/sound/sound.mp3 -------------------------------------------------------------------------------- /lexical-decision/jspsych-4.3/tests&examples/timing-post-trial-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 37 | 38 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/README.md: -------------------------------------------------------------------------------- 1 | ![logo](jspsych-logo-readme.jpg) 2 | 3 | jsPsych is a JavaScript library for creating and running behavioral experiments in a web browser. jsPsych simplifies the process of coding browser-based experiments by providing a set of flexibile plugins that define different kinds of tasks a subject could complete during an experiment. By assembling different plugins together and customizing the parameters of each, it is possible to create many different types of experiments. 4 | 5 | Documentation 6 | ------------- 7 | 8 | Documentation is available at [docs.jspsych.org](http://docs.jspsych.org). 9 | 10 | Contributing 11 | ------------ 12 | 13 | Contributions to the code are welcome. Please use the [Issue tracker system](https://github.com/jodeleeuw/jsPsych/issues) to report bugs or discuss suggestions for new features and improvements. If you would like to contribute code, [submit a Pull request](https://help.github.com/articles/using-pull-requests). 14 | 15 | Need help? 16 | ---------- 17 | 18 | For questions about using the library, please post to the [jsPsych e-mail list](https://groups.google.com/forum/#!forum/jspsych). This creates a publically available archive of questions and solutions. 19 | 20 | Contact 21 | ------- 22 | 23 | jsPsych was created by Josh de Leeuw ([@jodeleeu](https://github.com/jodeleeuw)) at Indiana University. 24 | 25 | Citation 26 | -------- 27 | 28 | If you use this library in academic work, please cite the [paper that describes jsPsych](http://link.springer.com/article/10.3758%2Fs13428-014-0458-y) 29 | 30 | de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. *Behavior Research Methods*, _47_(1), 1-12. doi:10.3758/s13428-014-0458-y 31 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/Thumbs.db -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Joshua R. de Leeuw 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/plugins/jspsych-call-function.js: -------------------------------------------------------------------------------- 1 | /** 2 | * jspsych-call-function 3 | * plugin for calling an arbitrary function during a jspsych experiment 4 | * Josh de Leeuw 5 | * 6 | * documentation: docs.jspsych.org 7 | * 8 | **/ 9 | 10 | (function($) { 11 | jsPsych['call-function'] = (function() { 12 | 13 | var plugin = {}; 14 | 15 | plugin.create = function(params) { 16 | var trials = new Array(1); 17 | trials[0] = { 18 | "func": params.func 19 | }; 20 | return trials; 21 | }; 22 | 23 | plugin.trial = function(display_element, trial) { 24 | var return_val = trial.func(); 25 | 26 | jsPsych.data.write({ 27 | value: return_val 28 | }); 29 | 30 | 31 | jsPsych.finishTrial(); 32 | }; 33 | 34 | return plugin; 35 | })(); 36 | })(jQuery); 37 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/plugins/template/jspsych-plugin-template.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Josh de Leeuw 3 | * November 2013 4 | * 5 | * This is a basic template for a jsPsych plugin. Use it to start creating your 6 | * own plugin. There is more information about how to create a plugin on the 7 | * jsPsych wiki (https://github.com/jodeleeuw/jsPsych/wiki/Create-a-Plugin). 8 | * 9 | * 10 | */ 11 | 12 | (function( $ ) { 13 | jsPsych["PLUGIN-NAME"] = (function(){ 14 | 15 | var plugin = {}; 16 | 17 | plugin.create = function(params) { 18 | var trials = new Array(NUMBER_OF_TRIALS); 19 | for(var i = 0; i < NUMBER_OF_TRIALS; i++) 20 | { 21 | trials[i] = {}; 22 | trials[i].type = "PLUGIN-NAME"; 23 | // other information needed for the trial method can be added here 24 | 25 | // supporting the generic data object with the following line 26 | // is always a good idea. it allows people to pass in the data 27 | // parameter, but if they don't it gracefully adds an empty object 28 | // in it's place. 29 | trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i]; 30 | } 31 | return trials; 32 | }; 33 | 34 | plugin.trial = function(display_element, block, trial, part) { 35 | // code for running the trial goes here 36 | 37 | // allow variables as functions 38 | // this allows any trial variable to be specified as a function 39 | // that will be evaluated when the trial runs. this allows users 40 | // to dynamically adjust the contents of a trial as a result 41 | // of other trials, among other uses. you can leave this out, 42 | // but in general it should be included 43 | trial = jsPsych.evaluateFunctionParameters(trial); 44 | 45 | // data saving 46 | // this is technically optional, but virtually every plugin will 47 | // need to do it. it is good practice to include the type and 48 | // trial_index fields for all plugins. 49 | var trial_data = { 50 | type: trial.type, 51 | trial_index: block.trial_idx, 52 | // other values to save go here 53 | }; 54 | 55 | // this line merges together the trial_data object and the generic 56 | // data object (trial.data), and then stores them. 57 | block.writeData($.extend({}, trial_data, trial.data)); 58 | 59 | // this method must be called at the end of the trial 60 | block.next(); 61 | }; 62 | 63 | return plugin; 64 | })(); 65 | }) (jQuery); -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/chunk_level_data.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/data-add-properties.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/data-add-to-last-trial.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 40 | 41 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/data-as-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/end-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 44 | 45 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/error-messages-for-bad-experiment-structures.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 30 | 31 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/external_html/simple_consent.html: -------------------------------------------------------------------------------- 1 |

This is a demo consent form. Click the checkbox below to indicate the you 2 | would like to participate in the experiment

3 |

I agree to take part in this study.

4 | 5 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/1.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/10.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/11.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/12.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/2.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/3.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/4.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/5.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/6.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/7.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/8.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/9.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/backwardN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/backwardN.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/fixation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/fixation.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/happy_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/happy_face_1.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/happy_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/happy_face_2.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/happy_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/happy_face_3.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/happy_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/happy_face_4.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/normalN.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/normalN.gif -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/sad_face_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/sad_face_1.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/sad_face_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/sad_face_2.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/sad_face_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/sad_face_3.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/img/sad_face_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/img/sad_face_4.jpg -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 32 | 33 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-call-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 27 | 28 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-categorize-animation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 38 | 39 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-categorize.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 41 | 42 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-free-sort.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 29 | 30 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-html.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 47 | 48 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-instructions.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-multi-stim-multi-response.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 43 | 44 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-palmer.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 49 | 50 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-reconstruction.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 34 | 35 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-same-different.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-similarity.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 13 | 14 | 15 |
16 | 17 | 35 | 36 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-single-audio.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 31 | 32 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-single-stim.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 36 | 37 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-survey-likert.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 39 | 40 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-survey-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 33 | 34 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-text.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 25 | 26 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-visual-search-circle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 34 | 35 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-vsl-animate-occlusion.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 33 | 34 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-vsl-grid-scene.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 45 | 46 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/jspsych-xab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 33 | 34 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/navigate-experiment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 59 | 60 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/randomization-module.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 |
13 | 14 | 23 | 24 | -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/sound/sound.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jspsych/2015-jspsych-cogsci-tutorial/050cf92c1f7c184f2cdb2c15a8246503bb947188/plugin-development/jspsych-4.3/tests&examples/sound/sound.mp3 -------------------------------------------------------------------------------- /plugin-development/jspsych-4.3/tests&examples/timing-post-trial-function.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
14 | 15 | 37 | 38 | -------------------------------------------------------------------------------- /plugin-development/jspsych-random-number.js: -------------------------------------------------------------------------------- 1 | jsPsych['random-number'] = (function(){ 2 | 3 | var plugin = {}; 4 | 5 | plugin.create = function(params){ 6 | var trials = []; 7 | 8 | trials.push({ 9 | number: Math.random() * params.multiplier 10 | }); 11 | 12 | return trials; 13 | } 14 | 15 | plugin.trial = function(display_element, trial){ 16 | display_element.html( 17 | '

The number is: ' + trial.number + '

' 18 | ); 19 | setTimeout(function(){ 20 | display_element.empty(); 21 | jsPsych.data.write({ 22 | number: trial.number 23 | }); 24 | jsPsych.finishTrial(); 25 | }, 1000); 26 | } 27 | 28 | return plugin; 29 | 30 | })(); 31 | -------------------------------------------------------------------------------- /plugin-development/using-the-plugin.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | New plugin example 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 23 | 24 | --------------------------------------------------------------------------------