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
6dd47547
Commit
6dd47547
authored
Jun 21, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip modal
parent
c517b9e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
lms/static/coffee/src/modal.coffee
+6
-0
lms/static/js/sticky_filter.js
+11
-9
lms/templates/login_modal.html
+3
-0
No files found.
lms/static/coffee/src/modal.coffee
0 → 100644
View file @
6dd47547
class
@
Modal
initialize
:
(
options
)
->
@
el
=
options
[
'el'
]
render
:
->
@
el
.
hide
()
lms/static/js/sticky_filter.js
View file @
6dd47547
$
(
function
()
{
var
offset
=
$
(
'.filter nav'
).
offset
().
top
;
if
(
$
(
'.filter nav'
).
length
>
0
)
{
var
offset
=
$
(
'.filter nav'
).
offset
().
top
;
$
(
window
).
scroll
(
function
()
{
if
(
offset
<=
window
.
pageYOffset
)
{
return
$
(
'.filter nav'
).
addClass
(
'fixed-top'
);
}
else
if
(
offset
>=
window
.
pageYOffset
)
{
return
$
(
'.filter nav'
).
removeClass
(
'fixed-top'
);
}
});
$
(
window
).
scroll
(
function
()
{
if
(
offset
<=
window
.
pageYOffset
)
{
return
$
(
'.filter nav'
).
addClass
(
'fixed-top'
);
}
else
if
(
offset
>=
window
.
pageYOffset
)
{
return
$
(
'.filter nav'
).
removeClass
(
'fixed-top'
);
}
});
}
});
lms/templates/login_modal.html
View file @
6dd47547
...
...
@@ -34,3 +34,6 @@
</div>
</section>
</section>
<script
type=
"text/javascript"
>
new
Modal
({
el
:
$
(
".login-modal"
)}).
render
()
</script>
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