jsPsych/examples/jspsych-audio-slider-response.html
2018-02-18 16:19:09 -05:00

29 lines
590 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="../jspsych.js"></script>
<script src="../plugins/jspsych-audio-slider-response.js"></script>
<link rel="stylesheet" href="../css/jspsych.css"></link>
</head>
<body></body>
<script>
var trial_1 = {
type: 'audio-slider-response',
stimulus: 'sound/speech_joke.mp3',
labels: ['Not Funny', 'Funny'],
prompt: '<p>How funny is the joke?</p>'
}
jsPsych.init({
timeline: [trial_1],
use_webaudio: false,
on_finish: function() {
jsPsych.data.displayData();
},
default_iti: 250
});
</script>
</html>