Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
519d8db3
Commit
519d8db3
authored
Sep 07, 2013
by
Simon Daron
Browse files
Test... put fixed player on bottom
parent
69e217c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/css/specifics.css
View file @
519d8db3
...
...
@@ -357,7 +357,8 @@ background-color:#ff6633; border-color:#fff;}
z-index
:
500
;
position
:
fixed
;
width
:
100%
;
top
:
2em
;
/*top:2em;*/
bottom
:
0em
;
font-size
:
0.9em
;
}
#player-container
.fixed
.padded
{
...
...
panikweb_templates/static/js/specifics.js
View file @
519d8db3
...
...
@@ -187,7 +187,7 @@ $(function() {
topPosition
=
$
(
'
#player-container
'
).
offset
().
top
;
$
(
window
).
bind
(
'
scroll load
'
,
function
(
event
)
{
//$('#player-container').removeClass('fixed');
var
y
=
$
(
this
).
scrollTop
()
-
$
(
'
#Player
'
).
height
();
var
y
=
$
(
this
).
scrollTop
()
-
$
(
'
#Player
'
).
height
()
+
$
(
'
#metaNav
'
).
height
()
+
5
;
if
(
topPosition
!==
0
&&
y
>=
topPosition
)
{
$
(
'
#Player
'
).
css
({
'
min-height
'
:
$
(
'
#Player
'
).
height
()});
$
(
'
#player-container
'
).
addClass
(
'
fixed
'
).
removeClass
(
'
normal
'
);
...
...
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