mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
Set link protocol in docs to https
This commit is contained in:
parent
b8df41aa4e
commit
53e88f22e2
@ -1,7 +1,7 @@
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-50563838-1', 'jspsych.org');
|
||||
ga('send', 'pageview');
|
||||
ga('send', 'pageview');
|
||||
|
@ -7,8 +7,8 @@ The similarity plugin displays two stimuli sequentially. The stimuli can be imag
|
||||
This plugin requires the jQuery UI javascript library and accompanying CSS theme. To use this library, you must include both. Google hosts versions of both, which you can use in your project by including the following two lines in the `<head>` section of the HTML document:
|
||||
|
||||
```html
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/black-tie/jquery-ui.min.css" rel="stylesheet" type="text/css"></link>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/black-tie/jquery-ui.min.css" rel="stylesheet" type="text/css"></link>
|
||||
```
|
||||
|
||||
This example uses the 'black-tie' theme, but any theme should work.
|
||||
@ -21,12 +21,12 @@ Parameter | Type | Default Value | Description
|
||||
----------|------|---------------|------------
|
||||
stimuli | array | *undefined* | Each element of the array is a pair of stimuli. Each pair is represented as an array with two entries, one for each stimulus. A stimulus can be either a path to an image file or a string containing valid HTML markup. Stimuli will be shown in the order that they are defined in the array. Each pair will be presented in its own trial, and thus the length of this array determines the total number of trials.
|
||||
is_html | boolean | false | If the elements of the `stimuli` array are strings containing HTML content, then this parameter must be set to true.
|
||||
labels | array | `['Not at all similar', 'Identical']` | Array of strings to label the slider. Labels will be evenly spaced based on how many are in the array, with the outermost elements always anchored to the ends of the slider.
|
||||
labels | array | `['Not at all similar', 'Identical']` | Array of strings to label the slider. Labels will be evenly spaced based on how many are in the array, with the outermost elements always anchored to the ends of the slider.
|
||||
intervals | numeric | 100 | How many different choices are available on the slider. For example, 5 will limit the options to 5 different places on the slider. Default value is 100, to simulate a smooth slider.
|
||||
show_ticks | boolean | false | If true, then the slider will have tick marks indicating where the response options lie on the slider.
|
||||
show_response | string | `"SECOND_STIMULUS"` | Determines when the response slider will appear in the trial. `"FIRST_STIMULUS"` will show the response slider as soon as the first stimulus is shown. `"SECOND_STIMULUS"` will show the response slider as soon as the second stimulus is shown. `"POST_STIMULUS"` will show the response slider after the second stimulus disappears. Response time measure will start when the response slider appears.
|
||||
timing_first_stim | numeric | 1000 | How long to show the first stimulus for in milliseconds.
|
||||
timing_second_stim | numeric | -1 | How long to show the second stimulus for in milliseconds. -1 will show the stimulus until a response is made by the subject.
|
||||
timing_second_stim | numeric | -1 | How long to show the second stimulus for in milliseconds. -1 will show the stimulus until a response is made by the subject.
|
||||
timing_image_gap | numeric | 1000 | How long to show a blank screen in between the two stimuli.
|
||||
prompt | string | "" | This string can contain HTML markup. Any content here will be displayed below the stimulus. The intention is that it can be used to provide a reminder about the action the subject is supposed to take.
|
||||
|
||||
@ -40,7 +40,6 @@ Name | Type | Value
|
||||
stimulus | string | Either the path to the image file or the string containing the HTML formatted content that the subject saw first on this trial.
|
||||
stimulus_2 | string | Either the path to the image file or the string containing the HTML formatted content that the subject saw second on this trial.
|
||||
sim_score | numeric | The position of the slider when the subject submitted their response. Larger numbers are to the right on the slider. The range will depend on the value of the `intervals` parameter.
|
||||
rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the response slider first appears on the screen until the subject's response.
|
||||
rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the response slider first appears on the screen until the subject's response.
|
||||
|
||||
## Example
|
||||
|
||||
|
@ -7,8 +7,8 @@ The survey-likert plugin displays a set of questions with Likert scale responses
|
||||
This plugin requires the jQuery UI javascript library and accompanying CSS theme. To use this library, you must include both. Google hosts versions of both, which you can use in your project by including the following two lines in the `<head>` section of the HTML document:
|
||||
|
||||
```html
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/black-tie/jquery-ui.min.css" rel="stylesheet" type="text/css"></link>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
||||
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/black-tie/jquery-ui.min.css" rel="stylesheet" type="text/css"></link>
|
||||
```
|
||||
|
||||
This example uses the 'black-tie' theme, but any theme should work.
|
||||
@ -31,7 +31,7 @@ In addition to the [default data collected by all plugins](), this plugin collec
|
||||
Name | Type | Value
|
||||
-----|------|------
|
||||
Q0, Q1, ... , Q*n* | numeric | The response to each question will be recorded in its own variable, with the first question in the trial being recorded in `Q0`, the second in `Q1`, and so on. The responses are recorded as integers, representing the position of the slider on the scale.
|
||||
rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the questions first appear on the screen until the subject's response.
|
||||
rt | numeric | The response time in milliseconds for the subject to make a response. The time is measured from when the questions first appear on the screen until the subject's response.
|
||||
|
||||
## Examples
|
||||
|
||||
|
@ -18,7 +18,7 @@ Start by downloading jsPsych and setting up a folder to contain your experiment
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
@ -67,7 +67,7 @@ jsPsych.init({
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
@ -129,7 +129,7 @@ experiment.push(instructions_block);
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
@ -214,7 +214,7 @@ experiment.push(test_block);
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -309,7 +309,7 @@ If you are wondering where to figure out what the various parameter options for
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -401,7 +401,7 @@ Now our experiment is 20 trials long, and the trials are shown in a random order
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -482,7 +482,7 @@ jsPsych.init({
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -592,7 +592,7 @@ var test_block = {
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -702,7 +702,7 @@ If you run the experiment, you'll notice that the interval between trials change
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
@ -828,7 +828,7 @@ experiment.push(debrief_block);
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-single-stim.js"></script>
|
||||
|
@ -52,7 +52,7 @@ To use jsPsych, add a `<script>` tag to import the library. You'll need to impor
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@ -67,7 +67,7 @@ You may also want to import the jsPsych stylesheet, which applies a basic set of
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
</head>
|
||||
@ -85,7 +85,7 @@ For the demo, we want to show some text on the screen. This is exactly what the
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
@ -104,7 +104,7 @@ To add JavaScript code directly to the webpage we need to add a set of `<script>
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
@ -129,7 +129,7 @@ Now that we have the trial defined, we just need to tell jsPsych to run an exper
|
||||
<html>
|
||||
<head>
|
||||
<title>My experiment</title>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<script src="jsPsych-4.0/jspsych.js"></script>
|
||||
<script src="jsPsych-4.0/plugins/jspsych-text.js"></script>
|
||||
<link href="jsPsych-4.0/css/jspsych.css" rel="stylesheet" type="text/css"></link>
|
||||
|
Loading…
Reference in New Issue
Block a user