From a0daf3938617220adcff9e260c3b6d68b235c29d Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Wed, 1 Dec 2021 12:15:50 -0500 Subject: [PATCH] Deployed ffe2ec48 to 7.1 with MkDocs 1.2.2 and mike 1.0.1 --- 7.1/demos/docs-demo-timeline.js | 104 ++++++++++++++-------------- 7.1/demos/jspsych-survey-demo1.html | 4 +- 7.1/demos/jspsych-survey-demo2.html | 4 +- 7.1/demos/jspsych-survey-demo3.html | 4 +- 7.1/demos/jspsych-survey-demo4.html | 4 +- 7.1/plugins/survey/index.html | 2 +- 7.1/search/search_index.json | 2 +- 7.1/sitemap.xml.gz | Bin 955 -> 955 bytes 8 files changed, 62 insertions(+), 62 deletions(-) diff --git a/7.1/demos/docs-demo-timeline.js b/7.1/demos/docs-demo-timeline.js index d621ca13..8b92246a 100755 --- a/7.1/demos/docs-demo-timeline.js +++ b/7.1/demos/docs-demo-timeline.js @@ -1,52 +1,52 @@ -function generateDocsDemoTimeline(timeline, setup_timeline) { - let setup; - if (setup_timeline) { - setup = { - timeline: setup_timeline, - }; - } - - const start = { - type: jsPsychHtmlButtonResponse, - stimulus: "", - choices: ["Run demo"], - }; - - let run = 0; - - let trial = { - timeline: timeline, - data: { - run: () => { - return run; - }, - }, - }; - - const show_data = { - type: jsPsychHtmlButtonResponse, - stimulus: ` -

Trial data:

-
`,
-    on_load: function () {
-      const trial_data = jsPsych.data.get().filter({ run: run }).ignore("run").values();
-      const trial_json = JSON.stringify(trial_data, null, 2);
-      jsPsych.getDisplayElement().querySelector("pre").innerText = trial_json;
-    },
-    choices: ["Repeat demo"],
-  };
-
-  const trial_loop = {
-    timeline: [trial, show_data],
-    loop_function: function () {
-      run++;
-      return true;
-    },
-  };
-
-  if (setup_timeline) {
-    return [setup, start, trial_loop];
-  } else {
-    return [start, trial_loop];
-  }
-}
+function generateDocsDemoTimeline(timeline, setup_timeline) {
+  let setup;
+  if (setup_timeline) {
+    setup = {
+      timeline: setup_timeline,
+    };
+  }
+
+  const start = {
+    type: jsPsychHtmlButtonResponse,
+    stimulus: "",
+    choices: ["Run demo"],
+  };
+
+  let run = 0;
+
+  let trial = {
+    timeline: timeline,
+    data: {
+      run: () => {
+        return run;
+      },
+    },
+  };
+
+  const show_data = {
+    type: jsPsychHtmlButtonResponse,
+    stimulus: `
+      

Trial data:

+
`,
+    on_load: function () {
+      const trial_data = jsPsych.data.get().filter({ run: run }).ignore("run").values();
+      const trial_json = JSON.stringify(trial_data, null, 2);
+      jsPsych.getDisplayElement().querySelector("pre").innerText = trial_json;
+    },
+    choices: ["Repeat demo"],
+  };
+
+  const trial_loop = {
+    timeline: [trial, show_data],
+    loop_function: function () {
+      run++;
+      return true;
+    },
+  };
+
+  if (setup_timeline) {
+    return [setup, start, trial_loop];
+  } else {
+    return [start, trial_loop];
+  }
+}
diff --git a/7.1/demos/jspsych-survey-demo1.html b/7.1/demos/jspsych-survey-demo1.html
index b61af143..8e2fe6d0 100755
--- a/7.1/demos/jspsych-survey-demo1.html
+++ b/7.1/demos/jspsych-survey-demo1.html
@@ -4,9 +4,9 @@
     
     
     
-    
+    
     
-    
+    
     
   
   
diff --git a/7.1/demos/jspsych-survey-demo2.html b/7.1/demos/jspsych-survey-demo2.html
index 3a1518ed..68a1b80a 100755
--- a/7.1/demos/jspsych-survey-demo2.html
+++ b/7.1/demos/jspsych-survey-demo2.html
@@ -5,9 +5,9 @@
     
     
     
-    
+    
     
-    
+    
     
   
   
diff --git a/7.1/demos/jspsych-survey-demo3.html b/7.1/demos/jspsych-survey-demo3.html
index 91084369..d4d40583 100755
--- a/7.1/demos/jspsych-survey-demo3.html
+++ b/7.1/demos/jspsych-survey-demo3.html
@@ -5,9 +5,9 @@
     
     
     
-    
+    
     
-    
+    
     
   
   
diff --git a/7.1/demos/jspsych-survey-demo4.html b/7.1/demos/jspsych-survey-demo4.html
index 8cb4488d..4a6259a8 100755
--- a/7.1/demos/jspsych-survey-demo4.html
+++ b/7.1/demos/jspsych-survey-demo4.html
@@ -5,9 +5,9 @@
     
     
     
-    
+    
     
-    
+    
     
   
   
diff --git a/7.1/plugins/survey/index.html b/7.1/plugins/survey/index.html
index 062c9ec1..b649c670 100755
--- a/7.1/plugins/survey/index.html
+++ b/7.1/plugins/survey/index.html
@@ -1887,7 +1887,7 @@
 
 

CSS

This plugin uses an additional stylesheet called survey.css. You can load it via:

-
<link rel="stylesheet" href="https://unpkg.com/@jspsych/plugin-survey@0.1.0/css/survey.css">
+
<link rel="stylesheet" href="https://unpkg.com/@jspsych/plugin-survey@0.1.1/css/survey.css">
 

Parameters

In addition to the parameters available in all plugins, this plugin accepts the following parameters. diff --git a/7.1/search/search_index.json b/7.1/search/search_index.json index 700080b6..95726c8e 100755 --- a/7.1/search/search_index.json +++ b/7.1/search/search_index.json @@ -1 +1 @@ -{"config":{"indexing":"full","lang":["en"],"min_search_length":3,"prebuild_index":false,"separator":"[\\s\\-]+"},"docs":[{"location":"","text":"\u00b6 jsPsych is a JavaScript framework for creating behavioral experiments that run in a web browser. Experiments in jsPsych are created using plugins . Each plugin defines different kinds of events, like showing an image on the screen, and collects different kinds of data, like recording which key was pressed at which time. You can use the plugins that are included with jsPsych , use plugins that are developed by community members in the contrib repository , or create your own plugins . By assembling different plugins together into a timeline , it is possible to create a wide range of experiments. The page on timelines is a good place to start learning about jsPsych. From there, you might want to complete the hello world tutorial to learn how to set up a jsPsych experiment and the reaction time experiment tutorial to learn the core features of the framework.","title":"Introduction"},{"location":"#_1","text":"jsPsych is a JavaScript framework for creating behavioral experiments that run in a web browser. Experiments in jsPsych are created using plugins . Each plugin defines different kinds of events, like showing an image on the screen, and collects different kinds of data, like recording which key was pressed at which time. You can use the plugins that are included with jsPsych , use plugins that are developed by community members in the contrib repository , or create your own plugins . By assembling different plugins together into a timeline , it is possible to create a wide range of experiments. The page on timelines is a good place to start learning about jsPsych. From there, you might want to complete the hello world tutorial to learn how to set up a jsPsych experiment and the reaction time experiment tutorial to learn the core features of the framework.","title":""},{"location":"about/about/","text":"About jsPsych \u00b6 jsPsych is open source project with numerous contributors . The project is currently managed by the core team of Josh de Leeuw ( @jodeleeuw ), Becky Gilbert ( @becky-gilbert ), and Bj\u00f6rn Luchterhandt ( @bjoluc ). jsPsych was created by Josh de Leeuw . Citation \u00b6 If you use jsPsych please cite the following paper. 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 .","title":"About jsPsych"},{"location":"about/about/#about-jspsych","text":"jsPsych is open source project with numerous contributors . The project is currently managed by the core team of Josh de Leeuw ( @jodeleeuw ), Becky Gilbert ( @becky-gilbert ), and Bj\u00f6rn Luchterhandt ( @bjoluc ). jsPsych was created by Josh de Leeuw .","title":"About jsPsych"},{"location":"about/about/#citation","text":"If you use jsPsych please cite the following paper. 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 .","title":"Citation"},{"location":"about/license/","text":"License \u00b6 jsPsych is licensed under the MIT license. The MIT License (MIT) Copyright (c) 2014-2021 Joshua R. de Leeuw Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","title":"License"},{"location":"about/license/#license","text":"jsPsych is licensed under the MIT license. The MIT License (MIT) Copyright (c) 2014-2021 Joshua R. de Leeuw Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","title":"License"},{"location":"developers/configuration/","text":"Configuring the jsPsych development environment \u00b6 Setup \u00b6 JsPsych is written using TypeScript , a superset of JavaScript that adds static typing, but compiles to plain JavaScript. The TypeScript compiler itself is written in JavaScript and can be run by Node.js , a runtime to execute JavaScript code without a web browser. Node.js comes with a package manager called NPM (Node Package Manager) that can install JavaScript libraries to run on your machine, such as TypeScript and other build tools for jsPsych. In order to work on code in the jsPsych or the jspsych-contrib repository, it is recommended that you follow the steps below to set up your development environment. Install Node.js \u00b6 The jsPsych development setup requires Node.js >= v14 to be installed on your machine. We recommend that you install version 16 since it includes version 7 of NPM (required for the workspaces feature that the jsPsych repositories use). If you are bound to Node.js v14, make sure to install NPM v7 manually (via npm install -g npm@7 ). Clone the repository and install the dependencies \u00b6 Clone either the jsPsych repository or the jspsych-contrib repository by running git clone https://github.com/jspsych/jsPsych.git && cd jsPsych or git clone https://github.com/jspsych/jspsych-contrib.git && cd jspsych-contrib in a terminal. Then run npm install . This will create a node_modules directory and install all the dependencies into it that are required to build and test jsPsych. Attention It is important that npm install is only run in the root directory of the repository (due to the NPM workspaces feature). If you accidentally ran npm install anywhere else, remove the node_modules directory and the package-lock.json file that were created at that location and run npm install in the root directory again. Info If you are running npm install in the core jsPsych repository, this will also execute the build chain for all packages in the jsPsych repository. This step may take a few minutes. If you would like to use that time efficiently, consider reading the following two sections to know what's happening. Repository structure \u00b6 A Node.js package is a directory that contains a package.json file describing it. Most importantly, a package.json file lists other packages that the package depends on. The jsPsych and jspsych-contrib repositories use NPM workspaces . That means, running npm install in the repository root will install the dependencies for all packages in the packages directory. The core jsPsych library and every jsPsych plugin or extension is laid out as an individual package. These packages are published to the NPM registry where they can be downloaded by NPM or any CDN (such as unpkg ). Build chain and build artifacts \u00b6 JsPsych comes with a build chain (specified in the @jspsych/config package) that can be executed by running npm run build in a package's directory. The build chain will read the package (starting at its src/index.ts file) and create the following build artifacts in the package's dist directory: index.js This file contains everything from index.ts , but as plain JavaScript and bundled in a single file (i.e. without import ing files from the same package). It is used by bundlers like webpack . index.cjs Like index.js , but using the old CommonJS standard to support backwards-compatible tools like the Jest testing framework. index.browser.js This file, like index.js , contains the entire package as plain JavaScript, but this time wrapped in a function so that it can be included directly by browsers using the