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
c17b3ffb
Commit
c17b3ffb
authored
Aug 31, 2013
by
Simon Daron
Browse files
Fix bug on page Listen
parent
9ad53cbb
Changes
3
Show whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
c17b3ffb
...
...
@@ -50,12 +50,12 @@ $(function() {
topPosition
=
$
(
'
#player-container
'
).
offset
().
top
;
$
(
window
).
bind
(
'
scroll load
'
,
function
(
event
)
{
//$('#player-container').removeClass('fixed');
var
y
=
$
(
this
).
scrollTop
()
-
$
(
'
#
Listen
'
).
height
();
var
y
=
$
(
this
).
scrollTop
()
-
$
(
'
#
Player
'
).
height
();
if
(
topPosition
!==
0
&&
y
>=
topPosition
)
{
$
(
'
#
Listen
'
).
css
({
'
min-height
'
:
$
(
'
#
Listen
'
).
height
()});
$
(
'
#
Player
'
).
css
({
'
min-height
'
:
$
(
'
#
Player
'
).
height
()});
$
(
'
#player-container
'
).
addClass
(
'
fixed
'
).
removeClass
(
'
normal
'
);
}
else
{
$
(
'
#
Listen
'
).
css
({
'
min-height
'
:
'
auto
'
});
$
(
'
#
Player
'
).
css
({
'
min-height
'
:
'
auto
'
});
$
(
'
#player-container
'
).
removeClass
(
'
fixed
'
).
addClass
(
'
normal
'
);
}
});
...
...
panikweb_templates/templates/base.html
View file @
c17b3ffb
...
...
@@ -37,7 +37,7 @@
<h1><span
id=
"radioPanik"
class=
"inBlock"
>
Radio Panik
</span>
<span
id=
"frequence"
class=
"inBlock"
>
105.4 FM
</span></h1>
<!--{% block logo %}<img class="logo" src="{{ STATIC_URL }}/img/LogoPanik.jpg"/>{% endblock %}-->
</a>
<div
id=
"
Listen
"
class=
"{% block player-class %}{% endblock %}"
>
<div
id=
"
Player
"
class=
"{% block player-class %}{% endblock %}"
>
{% block listen %}{% player %}{% endblock %}
</div>
</div>
...
...
panikweb_templates/templates/listen.html
View file @
c17b3ffb
{% extends "base.html" %}
{% load paniktags %}
{% block bodyID %}Player{% endblock %}
{% block main %}
<div
class=
"padded"
>
<ul
class=
"custom columns list"
>
...
...
Write
Preview
Supports
Markdown
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