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
8fcab250
Commit
8fcab250
authored
Oct 24, 2014
by
E. Kolpakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed default image blink on load
parent
dbbd3afd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
.gitignore
+5
-0
drag_and_drop_v2/public/css/drag_and_drop.css
+1
-0
drag_and_drop_v2/public/js/drag_and_drop.js
+4
-1
No files found.
.gitignore
View file @
8fcab250
...
@@ -36,6 +36,7 @@ htmlcov/
...
@@ -36,6 +36,7 @@ htmlcov/
.tox/
.tox/
.coverage
.coverage
.cache
.cache
.noseids
nosetests.xml
nosetests.xml
coverage.xml
coverage.xml
...
@@ -53,3 +54,7 @@ docs/_build/
...
@@ -53,3 +54,7 @@ docs/_build/
target/
target/
workbench.db
workbench.db
# IDEs
.idea
.idea/*
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
8fcab250
...
@@ -86,6 +86,7 @@
...
@@ -86,6 +86,7 @@
}
}
.xblock--drag-and-drop
.target-img
{
.xblock--drag-and-drop
.target-img
{
display
:
none
;
background
:
url('../img/triangle.png')
no-repeat
;
background
:
url('../img/triangle.png')
no-repeat
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
8fcab250
...
@@ -74,6 +74,9 @@ function DragAndDropBlock(runtime, element) {
...
@@ -74,6 +74,9 @@ function DragAndDropBlock(runtime, element) {
if
(
_fn
.
data
.
targetImg
)
if
(
_fn
.
data
.
targetImg
)
_fn
.
$target
.
css
(
'background'
,
'url('
+
_fn
.
data
.
targetImg
+
') no-repeat'
);
_fn
.
$target
.
css
(
'background'
,
'url('
+
_fn
.
data
.
targetImg
+
') no-repeat'
);
// Display target image
_fn
.
$target
.
show
();
// Display the zone names if required
// Display the zone names if required
if
(
_fn
.
data
.
displayLabels
)
{
if
(
_fn
.
data
.
displayLabels
)
{
$
(
'p'
,
_fn
.
$zones
).
css
(
'visibility'
,
'visible'
);
$
(
'p'
,
_fn
.
$zones
).
css
(
'visibility'
,
'visible'
);
...
@@ -287,7 +290,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -287,7 +290,7 @@ function DragAndDropBlock(runtime, element) {
content
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
(),
content
:
_fn
.
$popup
.
find
(
".popup-content"
).
text
(),
manually
:
false
manually
:
false
});
});
}
;
}
publish_event
({
publish_event
({
event_type
:
"xblock.drag-and-drop-v2.feedback.opened"
,
event_type
:
"xblock.drag-and-drop-v2.feedback.opened"
,
content
:
str
content
:
str
...
...
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