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
2a5978fa
Commit
2a5978fa
authored
Jan 04, 2015
by
solashirai
Committed by
Piotr Mitros
Oct 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on css changes
parent
fa2ef295
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
crowdsourcehinter/static/css/crowdsourcehinter.css
+4
-4
crowdsourcehinter/static/html/crowdsourcehinter.html
+1
-1
crowdsourcehinter/static/js/src/crowdsourcehinter.js
+2
-0
No files found.
crowdsourcehinter/static/css/crowdsourcehinter.css
View file @
2a5978fa
...
@@ -7,8 +7,8 @@
...
@@ -7,8 +7,8 @@
}
}
.crowdsourcehinter_block
.csh_vote
{
.crowdsourcehinter_block
.csh_vote
{
padding-top
:
0px
!important
;
padding-top
:
2px
;
padding-bottom
:
0px
!important
;
padding-bottom
:
2px
;
}
}
.csh_hint_value
{
.csh_hint_value
{
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.crowdsourcehinter_block
.csh_HintsToUse
{
.crowdsourcehinter_block
{
background-color
:
#
FF8
;
background-color
:
#
BBE2ED
;
}
}
.csh_hint_reveal
{
.csh_hint_reveal
{
...
...
crowdsourcehinter/static/html/crowdsourcehinter.html
View file @
2a5978fa
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<script
type=
"x-tmpl/mustache"
id=
"show_answer_feedback"
>
<script
type=
"x-tmpl/mustache"
id=
"show_answer_feedback"
>
<
div
class
=
"csh_student_answer"
>
<
div
class
=
"csh_student_answer"
>
<
h
class
=
"csh_answer_text"
>
{{
answer
}}
<
/h
>
<
h
class
=
"csh_answer_text"
>
<
i
>
Your
incorrect
answer
:
{{
answer
}}
<
/i>
</
h
>
<
/div
>
<
/div
>
</script>
</script>
...
...
crowdsourcehinter/static/js/src/crowdsourcehinter.js
View file @
2a5978fa
...
@@ -3,6 +3,7 @@ function CrowdsourceHinter(runtime, element){
...
@@ -3,6 +3,7 @@ function CrowdsourceHinter(runtime, element){
//If the code is not made to stop running, the hinter will act up after switching from and back to
//If the code is not made to stop running, the hinter will act up after switching from and back to
//a certain unit.
//a certain unit.
var
executeHinter
=
true
;
var
executeHinter
=
true
;
$
(
".csh_HintQuickFeedback"
,
element
).
hide
();
if
(
executeHinter
){
if
(
executeHinter
){
var
isShowingHintFeedback
=
false
;
var
isShowingHintFeedback
=
false
;
...
@@ -29,6 +30,7 @@ function CrowdsourceHinter(runtime, element){
...
@@ -29,6 +30,7 @@ function CrowdsourceHinter(runtime, element){
//This function will determine whether or not the student correctly answered the question.
//This function will determine whether or not the student correctly answered the question.
//If it was correctly answered it will begin the process for giving feedback on hints.
//If it was correctly answered it will begin the process for giving feedback on hints.
if
(
problem_graded_event_data
[
1
].
search
(
/class="correct/
)
===
-
1
){
if
(
problem_graded_event_data
[
1
].
search
(
/class="correct/
)
===
-
1
){
$
(
".csh_HintQuickFeedback"
,
element
).
show
();
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
runtime
.
handlerUrl
(
element
,
'get_hint'
),
url
:
runtime
.
handlerUrl
(
element
,
'get_hint'
),
...
...
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