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
68aa5212
Commit
68aa5212
authored
Sep 22, 2013
by
Simon Daron
Committed by
fred
Sep 22, 2013
Browse files
add a withoutPlaylist class to player when it has no playlist
parent
3947309c
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
68aa5212
...
...
@@ -267,10 +267,10 @@ $(function() {
//doLog(JSON.stringify(self.playlist, null, '\t'));
if
(
self
.
playlist
.
length
>=
1
){
self
.
element
.
show
();
$
(
'
#Player
'
).
addClass
(
'
withPlaylist
'
);
$
(
'
#Player
'
).
addClass
(
'
withPlaylist
'
)
.
removeClass
(
'
withoutPlaylist
'
)
;
}
else
{
self
.
element
.
hide
();
$
(
'
#Player
'
).
removeClass
(
'
withPlaylist
'
);
$
(
'
#Player
'
).
removeClass
(
'
withPlaylist
'
)
.
addClass
(
'
withoutPlaylist
'
)
;
}
}
});
...
...
panikweb_templates/templates/base.html
View file @
68aa5212
...
...
@@ -49,7 +49,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 %}-->
</div>
<div
id=
"Player"
class=
"
{% block player-class %}{% endblock %}
"
>
<div
id=
"Player"
class=
"
withoutPlaylist
"
>
{% block listen %}{% player %}{% endblock %}
</div>
</div>
...
...
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