Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crowdsourcehinter
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
crowdsourcehinter
Commits
7a1b0fdf
Commit
7a1b0fdf
authored
Feb 18, 2015
by
solashirai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on fixing problem_check and parse_xml
parent
30a18610
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
crowdsourcehinter/crowdsourcehinter.py
+4
-3
crowdsourcehinter/static/js/src/crowdsourcehinter.js
+1
-0
No files found.
crowdsourcehinter/crowdsourcehinter.py
View file @
7a1b0fdf
...
@@ -18,7 +18,7 @@ class CrowdsourceHinter(XBlock):
...
@@ -18,7 +18,7 @@ class CrowdsourceHinter(XBlock):
This is the Crowd Sourced Hinter XBlock. This Xblock seeks to provide students with hints
This is the Crowd Sourced Hinter XBlock. This Xblock seeks to provide students with hints
that specifically address their mistake. Additionally, the hints that this Xblock shows
that specifically address their mistake. Additionally, the hints that this Xblock shows
are created by the students themselves. This doc string will probably be edited later.
are created by the students themselves. This doc string will probably be edited later.
"""
"""
# Database of hints. hints are stored as such: {"incorrect_answer": {"hint": rating}}. each key (incorrect answer)
# Database of hints. hints are stored as such: {"incorrect_answer": {"hint": rating}}. each key (incorrect answer)
# has a corresponding dictionary (in which hints are keys and the hints' ratings are the values).
# has a corresponding dictionary (in which hints are keys and the hints' ratings are the values).
#
#
...
@@ -385,7 +385,7 @@ class CrowdsourceHinter(XBlock):
...
@@ -385,7 +385,7 @@ class CrowdsourceHinter(XBlock):
"""
"""
<verticaldemo>
<verticaldemo>
<crowdsourcehinter>
<crowdsourcehinter>
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to che
kc
your spelling"}
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to che
ck
your spelling"}
</crowdsourcehinter>
</crowdsourcehinter>
</verticaldemo>
</verticaldemo>
"""
"""
...
@@ -398,5 +398,6 @@ class CrowdsourceHinter(XBlock):
...
@@ -398,5 +398,6 @@ class CrowdsourceHinter(XBlock):
A minimal working test for parse_xml
A minimal working test for parse_xml
"""
"""
block
=
runtime
.
construct_xblock_from_class
(
cls
,
keys
)
block
=
runtime
.
construct_xblock_from_class
(
cls
,
keys
)
#import pdb; pdb.set_trace()
#from IPython import embed
#embed()
return
block
return
block
crowdsourcehinter/static/js/src/crowdsourcehinter.js
View file @
7a1b0fdf
...
@@ -24,6 +24,7 @@ function CrowdsourceHinter(runtime, element){
...
@@ -24,6 +24,7 @@ function CrowdsourceHinter(runtime, element){
//directly passing data to onStudentSubmission does not appear to work
//directly passing data to onStudentSubmission does not appear to work
function
get_event_data
(
event_type
,
data
,
element
){
function
get_event_data
(
event_type
,
data
,
element
){
onStudentSubmission
(
data
);
onStudentSubmission
(
data
);
console
.
log
(
data
);
}
}
Logger
.
listen
(
'problem_check'
,
null
,
get_event_data
);
Logger
.
listen
(
'problem_check'
,
null
,
get_event_data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment