mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 11:10:54 +00:00
move img width from <style> to parameter
This commit is contained in:
parent
6aa5641bb5
commit
887dcbd627
@ -1,16 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<script src="../jspsych.js"></script>
|
||||
<script src="../plugins/jspsych-image-keyboard-response.js"></script>
|
||||
<link rel="stylesheet" href="../css/jspsych.css">
|
||||
<style>
|
||||
img {
|
||||
width: 300px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body></body>
|
||||
<script>
|
||||
@ -31,6 +24,7 @@
|
||||
timeline: [trial_1, trial_2, trial_3],
|
||||
choices: [89, 78], // Y or N
|
||||
prompt: '<p>Have you seen this face before? Y or N.</p>',
|
||||
stimulus_width: 300,
|
||||
data: {
|
||||
node_data: true
|
||||
},
|
||||
@ -39,7 +33,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
jsPsych.init({
|
||||
timeline: [node],
|
||||
on_finish: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user