-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
95 lines (92 loc) · 2.51 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
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
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<title>pie-demo</title>
<link type="text/css" rel="stylesheet" href="/assets/docson.css" />
<script type="module" src="/build/pie-demo.esm.js"></script>
<script nomodule src="/build/pie-demo.js"></script>
</head>
<body>
<pie-demo
id="demo"
editor="true"
pie="@pie-element/math-inline@latest"
></pie-demo>
<script>
const model = (id, element) => ({
id,
element,
equationEditor: 'geometry',
responseType: 'Advanced Multi',
expression: '{{response}}',
responses: [
{
allowSpaces: true,
answer: '1',
id: '1',
alternates: {},
validation: 'symbolic'
}
],
});
const configure = {
answerChoiceCount: 4,
addChoiceButton: {
settings: true,
label: 'Add Choice'
},
choiceMode: {
settings: false,
label: 'Response Type'
},
lockChoiceOrder: {
settings: true,
label: 'Lock Choice Order'
},
partialScoring: {
settings: false,
label: 'Allow Partial Scoring'
},
choicePrefix: {
settings: true,
label: 'Choice Labels'
},
deleteChoice: {
settings: true
},
feedback: {
settings: false,
label: 'Student Feedback'
},
prompt: {
settings: true,
label: 'Item Stem'
},
rationale: {
settings: true,
label: 'Rationale'
},
studentInstructions: {
settings: false,
label: 'Student Instructions'
},
teacherInstructions: {
settings: true,
label: 'Teacher Instructions'
}
};
const pieDemo = document.querySelector("pie-demo");
pieDemo.model = model("1", "pie-element-multiple-choice");
pieDemo.configure = configure;
pieDemo.configureSchemaJSONURI =
"https://raw.githubusercontent.com/pie-framework/pie-elements/develop/packages/categorize/docs/config-schema.json";
pieDemo.modelSchemaJSONURI =
"https://raw.githubusercontent.com/pie-framework/pie-elements/develop/packages/categorize/docs/pie-schema.json";
</script>
</body>
</html>