-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
115 lines (104 loc) · 4.36 KB
/
test.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<!-- <meta charset="UTF-8">
<title>FAD-PLUS test html</title>
<script src="jspsych-7.3.1/jspsych.js"></script>
<script src="jspsych-7.3.1/plugins/plugin-fullscreen.js"></script>
<script src="jspsych-7.3.1/plugins/plugin-survey.js"></script>
<link href="jspsych-7.3.1/css/jspsych.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://unpkg.com/@jspsych/[email protected]/css/survey.css"> -->
<meta charset="utf-8">
<script src="docs-demo-timeline.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/@jspsych/[email protected]"></script>
<script src="https://unpkg.com/@jspsych/[email protected]"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/jspsych.css" />
<link rel="stylesheet" href="https://unpkg.com/@jspsych/[email protected]/css/survey.css">
<link rel="stylesheet" href="docs-demo.css" type="text/css">
</head>
<body>
</body>
<script>
const jsPsych = initJsPsych();
const trial = {
type: jsPsychSurvey,
pages: [
[
{
type: 'likert',
prompt: '我相信未来是命运已经安排好的。',
likert_scale_min_label: '非常不同意',
likert_scale_max_label: '非常同意',
likert_scale_values: [
{ value: 1 },
{ value: 2 },
{ value: 3 },
{ value: 4 },
{ value: 5 }
]
},
{
type: 'likert',
prompt: '人们的生物因素(如基因)决定了他们的天赋和个性。',
likert_scale_min_label: '非常不同意',
likert_scale_max_label: '非常同意',
likert_scale_values: [
{ value: 1 },
{ value: 2 },
{ value: 3 },
{ value: 4 },
{ value: 5 }
]
},
{
type: 'likert',
prompt: '偶然性事件是人类历史的主要影响因素。',
likert_scale_min_label: '非常不同意',
likert_scale_max_label: '非常同意',
likert_scale_values: [
{ value: 1 },
{ value: 2 },
{ value: 3 },
{ value: 4 },
{ value: 5 }
]
},
{
type: 'likert',
prompt: '人们对自己的决策有完全的控制权。',
likert_scale_min_label: '非常不同意',
likert_scale_max_label: '非常同意',
likert_scale_values: [
{ value: 1 },
{ value: 2 },
{ value: 3 },
{ value: 4 },
{ value: 5 }
]
},
],
[
{
type: 'likert-table',
prompt: ' ',
statements: [
{ prompt: '我相信未来是命运已经安排好的。', name: 'FAD1' },
{ prompt: '人们的生物因素(如基因)决定了他们的天赋和个性。', name: 'SD2' },
{ prompt: '偶然性事件是人类历史的主要影响因素。', name: 'UD3' },
{ prompt: '人们对自己的决策有完全的控制权。', name: 'FW4' },
],
options: ['非常不同意', '不同意', '态度中立', '同意', '非常同意'],
}
]
],
title: 'Style Test',
button_label_next: 'Continue',
button_label_back: 'Previous',
button_label_finish: 'Submit',
show_question_numbers: 'onPage'
};
const timeline = [trial];
jsPsych.run(timeline)
</script>
</html>