-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
45 lines (41 loc) · 1.57 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html>
<head>
<!-- Customize the title! -->
<title>JSmisc</title>
<!-- Scripts -->
<script src="https://unpkg.com/jspsych"></script>
<script src="https://unpkg.com/@jspsych/plugin-html-keyboard-response"></script>
<!-- <script src="jspsych/jspsych.js"></script>
<script src="jspsych/plugins/jspsych-html-keyboard-response.js"></script> -->
<!-- <script src="jspsych_extensions/image-buttonkeyboard-response.js"></script> -->
<!-- <script src="jspsych_extensions/image-keyboardmouse-response.js"></script> -->
<!-- CSS -->
<link
href="https://unpkg.com/[email protected]/css/jspsych.css"
rel="stylesheet"
type="text/css"
/>
</head>
<script>
var jsPsych = initJsPsych({
on_finish: function () {
jsPsych.data.displayData()
},
})
var screen = {
type: jsPsychHtmlKeyboardResponse,
stimulus:
'<p>This webpage is useless.</p> \
<p>Instructions on how to use the JSmisc repo can be found at \
<a href="https://github.com/RealityBending/JSmisc">GitHub/RealityBending/JSmisc</a>.</p>',
}
// var keyboardmouse = {
// type: "image-keyboardmouse-response",
// stimulus:
// "https://useruploads.socratic.org/xwQUTMyYSea2cQxsbmUh_quadrants.gif",
// keys: ["leftarrow", "rightarrow", "esc"],
// }
jsPsych.run([screen])
</script>
</html>