Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
fe3a6bd7
Commit
fe3a6bd7
authored
Feb 01, 2012
by
Ernie Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add leanmodal minified and original
parent
b985ef17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
0 deletions
+76
-0
js/jquery.leanModal.js
+75
-0
js/jquery.leanModal.min.js
+1
-0
No files found.
js/jquery.leanModal.js
0 → 100644
View file @
fe3a6bd7
(
function
(
$
){
$
.
fn
.
extend
({
leanModal
:
function
(
options
)
{
var
defaults
=
{
top
:
100
,
overlay
:
0.5
}
options
=
$
.
extend
(
defaults
,
options
);
return
this
.
each
(
function
()
{
var
o
=
options
;
$
(
this
).
click
(
function
(
e
)
{
var
overlay
=
$
(
"<div id='lean_overlay'></div>"
);
var
modal_id
=
$
(
this
).
attr
(
"href"
);
$
(
".leanModal_box"
).
css
({
'display'
:
'none'
});
$
(
"body"
).
append
(
overlay
);
$
(
"#lean_overlay"
).
click
(
function
()
{
close_modal
(
modal_id
);
});
var
modal_height
=
$
(
modal_id
).
outerHeight
();
var
modal_width
=
$
(
modal_id
).
outerWidth
();
$
(
'#lean_overlay'
).
css
({
'display'
:
'block'
,
opacity
:
0
});
$
(
'#lean_overlay'
).
fadeTo
(
200
,
o
.
overlay
);
$
(
modal_id
).
css
({
'display'
:
'block'
,
'position'
:
'fixed'
,
'opacity'
:
0
,
'z-index'
:
11000
,
'left'
:
50
+
'%'
,
'margin-left'
:
-
(
modal_width
/
2
)
+
"px"
,
'top'
:
o
.
top
+
"px"
});
var
top_position
=
$
(
modal_id
).
offset
().
top
+
"px"
;
$
(
modal_id
).
css
({
'position'
:
'absolute'
,
'top'
:
top_position
});
$
(
modal_id
).
fadeTo
(
200
,
1
);
e
.
preventDefault
();
});
});
function
close_modal
(
modal_id
){
$
(
"#lean_overlay"
).
fadeOut
(
200
);
$
(
modal_id
).
css
({
'display'
:
'none'
});
}
}
});
})(
jQuery
);
js/jquery.leanModal.min.js
0 → 100644
View file @
fe3a6bd7
(
function
(
a
){
a
.
fn
.
extend
({
leanModal
:
function
(
b
){
function
d
(
b
){
a
(
"#lean_overlay"
).
fadeOut
(
200
);
a
(
b
).
css
({
display
:
"none"
})}
var
c
=
{
top
:
100
,
overlay
:.
5
};
b
=
a
.
extend
(
c
,
b
);
return
this
.
each
(
function
(){
var
c
=
b
;
a
(
this
).
click
(
function
(
b
){
var
e
=
a
(
"<div id='lean_overlay'></div>"
);
var
f
=
a
(
this
).
attr
(
"href"
);
a
(
".leanModal_box"
).
css
({
display
:
"none"
});
a
(
"body"
).
append
(
e
);
a
(
"#lean_overlay"
).
click
(
function
(){
d
(
f
)});
var
g
=
a
(
f
).
outerHeight
();
var
h
=
a
(
f
).
outerWidth
();
a
(
"#lean_overlay"
).
css
({
display
:
"block"
,
opacity
:
0
});
a
(
"#lean_overlay"
).
fadeTo
(
200
,
c
.
overlay
);
a
(
f
).
css
({
display
:
"block"
,
position
:
"fixed"
,
opacity
:
0
,
"z-index"
:
11
e3
,
left
:
50
+
"%"
,
"margin-left"
:
-
(
h
/
2
)
+
"px"
,
top
:
c
.
top
+
"px"
});
var
i
=
a
(
f
).
offset
().
top
+
"px"
;
a
(
f
).
css
({
position
:
"absolute"
,
top
:
i
});
a
(
f
).
fadeTo
(
200
,
1
);
b
.
preventDefault
()})})}})})(
jQuery
)
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