Shreshth Saxena
<html>
<head>
<title>...</title>
</head>
<body>
<script>
...
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
</head>
<body>
<script>
...
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
</head>
<body>
<script>
...
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
<link href="https://unpkg.com/jspsych@8.2.0/css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
...
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
<link href="https://unpkg.com/jspsych@8.2.0/css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
const jsPsych = initJsPsych();
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
<link href="https://unpkg.com/jspsych@8.2.0/css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
const jsPsych = initJsPsych({
on_finish: function() {
jsPsych.data.displayData('json');
}
});
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
<link href="https://unpkg.com/jspsych@8.2.0/css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
const jsPsych = initJsPsych({
on_finish: function() {
jsPsych.data.displayData('json');
}
});
const hello_trial = {
type: jsPsychHtmlKeyboardResponse,
stimulus: 'Hello world!'
}
</script>
</body>
</html>
<html>
<head>
<title>Hello world</title>
<script src="https://unpkg.com/jspsych@8.2.0"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response@2.1.0"></script>
<link href="https://unpkg.com/jspsych@8.2.0/css/jspsych.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
const jsPsych = initJsPsych({
on_finish: function() {
jsPsych.data.displayData('json');
}
});
const hello_trial = {
type: jsPsychHtmlKeyboardResponse,
stimulus: 'Hello world!'
}
jsPsych.run([hello_trial]);
</script>
</body>
</html>
saxens17@mcmaster.ca