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
cf3b5f1c
Commit
cf3b5f1c
authored
Jul 04, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill some unused CSS
parent
d40f0e55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
102 deletions
+2
-102
drag_and_drop_v2/public/css/drag_and_drop.css
+0
-20
drag_and_drop_v2/public/css/drag_and_drop_edit.css
+0
-67
drag_and_drop_v2/public/js/drag_and_drop.js
+2
-15
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
cf3b5f1c
...
@@ -62,7 +62,6 @@
...
@@ -62,7 +62,6 @@
max-width
:
100%
;
max-width
:
100%
;
}
}
.xblock--drag-and-drop
.option.hover
{
background
:
#ccc
;
}
.xblock--drag-and-drop
.option.fade
{
opacity
:
0.6
;
}
.xblock--drag-and-drop
.option.fade
{
opacity
:
0.6
;
}
...
@@ -122,25 +121,6 @@
...
@@ -122,25 +121,6 @@
margin-bottom
:
auto
;
margin-bottom
:
auto
;
}
}
.xblock--drag-and-drop
.zone.one
{
height
:
75px
;
width
:
115px
;
top
:
130px
;
left
:
200px
;
}
.xblock--drag-and-drop
.zone.two
{
height
:
120px
;
width
:
200px
;
top
:
220px
;
left
:
157px
;
}
.xblock--drag-and-drop
.zone.three
{
height
:
120px
;
width
:
200px
;
bottom
:
30px
;
left
:
157px
;
}
/*** IE9 alignment fix ***/
/*** IE9 alignment fix ***/
.lt-ie10
.xblock--drag-and-drop
.zone
{
.lt-ie10
.xblock--drag-and-drop
.zone
{
display
:
table
;
display
:
table
;
...
...
drag_and_drop_v2/public/css/drag_and_drop_edit.css
View file @
cf3b5f1c
...
@@ -6,33 +6,6 @@
...
@@ -6,33 +6,6 @@
background
:
#fff
;
background
:
#fff
;
}
}
.xblock--drag-and-drop
.problem-header
{
display
:
inline-block
;
margin
:
0
0
15px
0
;
}
.xblock--drag-and-drop
.problem-progress
{
display
:
inline-block
;
padding-left
:
5px
;
color
:
#666
;
font-weight
:
100
;
font-size
:
1em
;
}
.xblock--drag-and-drop
.problem
p
{
margin-bottom
:
1.41575em
;
}
.xblock--drag-and-drop
.drag-container
{
width
:
760px
;
background
:
#ebf0f2
;
position
:
relative
;
}
.xblock--drag-and-drop
.clear
{
clear
:
both
;
}
/** Draggable Items **/
/** Draggable Items **/
.xblock--drag-and-drop
.items
{
.xblock--drag-and-drop
.items
{
width
:
210px
;
width
:
210px
;
...
@@ -45,21 +18,6 @@
...
@@ -45,21 +18,6 @@
list-style-type
:
none
;
list-style-type
:
none
;
}
}
.xblock--drag-and-drop
.items
.option
{
width
:
190px
;
background
:
#2e83cd
;
color
:
#fff
;
position
:
relative
;
float
:
left
;
display
:
inline
;
z-index
:
100
;
margin-bottom
:
5px
;
padding
:
10px
;
}
.xblock--drag-and-drop
.option.hover
{
background
:
#ccc
;
}
.xblock--drag-and-drop
.option.fade
{
opacity
:
0.6
;
}
/*** Drop Target ***/
/*** Drop Target ***/
.xblock--drag-and-drop
.target
{
.xblock--drag-and-drop
.target
{
...
@@ -117,25 +75,6 @@
...
@@ -117,25 +75,6 @@
margin-bottom
:
auto
;
margin-bottom
:
auto
;
}
}
.xblock--drag-and-drop
.zone.one
{
height
:
75px
;
width
:
115px
;
top
:
130px
;
left
:
200px
;
}
.xblock--drag-and-drop
.zone.two
{
height
:
120px
;
width
:
200px
;
top
:
220px
;
left
:
157px
;
}
.xblock--drag-and-drop
.zone.three
{
height
:
120px
;
width
:
200px
;
bottom
:
30px
;
left
:
157px
;
}
/*** IE9 alignment fix ***/
/*** IE9 alignment fix ***/
.lt-ie10
.xblock--drag-and-drop
.zone
{
.lt-ie10
.xblock--drag-and-drop
.zone
{
display
:
table
;
display
:
table
;
...
@@ -191,12 +130,6 @@
...
@@ -191,12 +130,6 @@
float
:
left
;
float
:
left
;
}
}
.xblock--drag-and-drop
.drag-builder
.continue
{
position
:
absolute
;
right
:
0
;
top
:
-5px
;
}
.xblock--drag-and-drop
.drag-builder
.items
{
.xblock--drag-and-drop
.drag-builder
.items
{
width
:
calc
(
100%
-
515px
);
width
:
calc
(
100%
-
515px
);
margin
:
10px
0
0
0
;
margin
:
10px
0
0
0
;
...
...
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
cf3b5f1c
...
@@ -99,8 +99,6 @@ function DragAndDropBlock(runtime, element) {
...
@@ -99,8 +99,6 @@ function DragAndDropBlock(runtime, element) {
$drag
.
on
(
'dragstop'
,
clk
.
drag
.
stop
);
$drag
.
on
(
'dragstop'
,
clk
.
drag
.
stop
);
$dropzone
.
on
(
'drop'
,
clk
.
drop
.
success
);
$dropzone
.
on
(
'drop'
,
clk
.
drop
.
success
);
$dropzone
.
on
(
'dropover'
,
clk
.
drop
.
hover
.
in
);
$dropzone
.
on
(
'dropout'
,
clk
.
drop
.
hover
.
out
);
},
},
drag
:
{
drag
:
{
start
:
function
(
event
,
ui
)
{
start
:
function
(
event
,
ui
)
{
...
@@ -126,8 +124,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -126,8 +124,7 @@ function DragAndDropBlock(runtime, element) {
left
:
$el
.
css
(
'left'
)
left
:
$el
.
css
(
'left'
)
})).
done
(
function
(
data
){
})).
done
(
function
(
data
){
if
(
data
.
correct
)
{
if
(
data
.
correct
)
{
$el
.
removeClass
(
'hover'
)
$el
.
draggable
(
'disable'
);
.
draggable
(
'disable'
);
if
(
data
.
final_feedback
)
{
if
(
data
.
final_feedback
)
{
_fn
.
finish
(
data
.
final_feedback
);
_fn
.
finish
(
data
.
final_feedback
);
...
@@ -153,7 +150,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -153,7 +150,7 @@ function DragAndDropBlock(runtime, element) {
},
},
reset
:
function
(
$el
)
{
reset
:
function
(
$el
)
{
$el
.
removeClass
(
'within-dropzone fade
hover
'
)
$el
.
removeClass
(
'within-dropzone fade'
)
.
css
({
.
css
({
top
:
''
,
top
:
''
,
left
:
''
left
:
''
...
@@ -161,16 +158,6 @@ function DragAndDropBlock(runtime, element) {
...
@@ -161,16 +158,6 @@ function DragAndDropBlock(runtime, element) {
}
}
},
},
drop
:
{
drop
:
{
hover
:
{
in
:
function
(
event
,
ui
)
{
var
zone
=
$
(
event
.
currentTarget
).
data
(
'zone'
);
ui
.
draggable
.
addClass
(
'hover'
).
data
(
'zone'
,
zone
);
},
out
:
function
(
event
,
ui
)
{
ui
.
draggable
.
removeClass
(
'hover'
);
}
},
success
:
function
(
event
,
ui
)
{
success
:
function
(
event
,
ui
)
{
ui
.
draggable
.
addClass
(
'within-dropzone'
);
ui
.
draggable
.
addClass
(
'within-dropzone'
);
}
}
...
...
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