Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
xblock-drag-and-drop-v2
Commits
3e3db962
Commit
3e3db962
authored
Jul 11, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyle question feedback
parent
39f28df0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
11 deletions
+21
-11
drag_and_drop_v2/public/css/drag_and_drop.css
+12
-4
drag_and_drop_v2/public/js/drag_and_drop.js
+2
-0
drag_and_drop_v2/templates/html/drag_and_drop.html
+7
-7
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
3e3db962
...
@@ -32,6 +32,14 @@
...
@@ -32,6 +32,14 @@
clear
:
both
;
clear
:
both
;
}
}
.xblock--drag-and-drop
.title1
{
color
:
rgb
(
85
,
85
,
85
);
text-transform
:
uppercase
;
font-weight
:
bold
;
font-style
:
normal
;
margin
:
10px
0
;
}
/** Draggable Items **/
/** Draggable Items **/
.xblock--drag-and-drop
.drag-container
.items
{
.xblock--drag-and-drop
.drag-container
.items
{
...
@@ -133,10 +141,10 @@
...
@@ -133,10 +141,10 @@
}
}
/*** FEEDBACK ***/
/*** FEEDBACK ***/
.xblock--drag-and-drop
.feedback
p
{
.xblock--drag-and-drop
.feedback
{
line-height
:
1.5em
;
margin-top
:
20px
;
font-weight
:
bold
;
border-top
:
solid
1px
rgb
(
189
,
189
,
189
)
;
margin-bottom
:
1.41575em
;
padding-top
:
20px
;
}
}
.no-close
.ui-dialog-titlebar-close
{
.no-close
.ui-dialog-titlebar-close
{
...
...
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
3e3db962
...
@@ -207,6 +207,8 @@ function DragAndDropBlock(runtime, element) {
...
@@ -207,6 +207,8 @@ function DragAndDropBlock(runtime, element) {
feedback
:
{
feedback
:
{
// Update DOM with feedback
// Update DOM with feedback
set
:
function
(
str
)
{
set
:
function
(
str
)
{
if
(
$
.
trim
(
str
)
===
''
)
_fn
.
$feedback
.
parent
().
hide
();
else
_fn
.
$feedback
.
parent
().
show
();
return
_fn
.
$feedback
.
html
(
str
);
return
_fn
.
$feedback
.
html
(
str
);
},
},
...
...
drag_and_drop_v2/templates/html/drag_and_drop.html
View file @
3e3db962
...
@@ -8,13 +8,8 @@
...
@@ -8,13 +8,8 @@
<div
class=
"problem-progress"
>
{{ max_score_string }}
</div>
<div
class=
"problem-progress"
>
{{ max_score_string }}
</div>
<section
class=
"problem"
role=
"application"
>
<section
class=
"problem"
role=
"application"
>
<p>
<div
class=
"title1"
>
Question
</div>
{{ question_text }}
<p>
{{ question_text }}
</p>
</p>
</section>
<section
class=
"feedback"
>
<p
class=
"message"
></p>
</section>
</section>
<section
class=
"drag-container"
>
<section
class=
"drag-container"
>
...
@@ -26,4 +21,9 @@
...
@@ -26,4 +21,9 @@
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</section>
</section>
<section
class=
"feedback"
>
<div
class=
"title1"
>
Feedback
</div>
<p
class=
"message"
></p>
</section>
</section>
</section>
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