mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
move img width from <style> to param
This commit is contained in:
parent
a20d6f9e04
commit
c026c62ea0
@ -8,11 +8,6 @@
|
|||||||
<script src="../plugins/jspsych-audio-keyboard-response.js"></script>
|
<script src="../plugins/jspsych-audio-keyboard-response.js"></script>
|
||||||
<script src="../plugins/jspsych-html-keyboard-response.js"></script>
|
<script src="../plugins/jspsych-html-keyboard-response.js"></script>
|
||||||
<link rel="stylesheet" href="../css/jspsych.css">
|
<link rel="stylesheet" href="../css/jspsych.css">
|
||||||
<style>
|
|
||||||
img {
|
|
||||||
width: 300px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -32,13 +27,14 @@
|
|||||||
type: 'html-keyboard-response',
|
type: 'html-keyboard-response',
|
||||||
choices: ['none'], // Y or N
|
choices: ['none'], // Y or N
|
||||||
stimulus: "<p style='text-align:center; font-size:80px;'>+</p>",
|
stimulus: "<p style='text-align:center; font-size:80px;'>+</p>",
|
||||||
trial_duration: 500,
|
trial_duration: 500
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'image-keyboard-response',
|
type: 'image-keyboard-response',
|
||||||
choices: [89, 78], // Y or N
|
choices: [89, 78], // Y or N
|
||||||
stimulus: jsPsych.timelineVariable('v1'),
|
stimulus: jsPsych.timelineVariable('v1'),
|
||||||
prompt: function() { return '<p>Have you seen '+jsPsych.timelineVariable('v2', true)+ ' before? Y or N.</p>' }
|
prompt: function() { return '<p>Have you seen '+jsPsych.timelineVariable('v2', true)+ ' before? Y or N.</p>' },
|
||||||
|
stimulus_width: 300
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
randomize_order: true,
|
randomize_order: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user