//
var first = playlist.find('li a').attr('data-src');
playlist.find('li').first().addClass('playing');
- that.setTitle(as[i], playlist.find('li:first-child a').text());
+ that.setTitle(as[i], playlist.find('li:first-child a span').text(), playlist.find('li:first-child a small').text());
as[i].load(first);
playlist.find('li').bind('click', function(e) {
$(this).addClass('playing').siblings().removeClass('playing');
that.audios[idx].load($('a', this).attr('data-src'));
that.audios[idx].play();
- that.setTitle(that.audios[idx], $('a', this).text());
+ that.setTitle(that.audios[idx], $('a span', this).text(), $('a small', this).text());
});
};
-Audio.prototype.setTitle = function(audio, title) {
+Audio.prototype.setTitle = function(audio, title, subtitle) {
var split = title.split(",");
var html = '';
- if(split[0]) {
+ /*if(split[0]) {
html += split[0];
}
if(split[1]) {
html += '<br/><span>'+split[1]+'</span>'
+ }*/
+
+ html += title;
+
+ if(subtitle) {
+ html += '<br/><span>'+subtitle+'</span>';
}
audio.title.html(html);
@include font-size(xs);
@include typeface(sans-serif);
@include transition(all 0.25s ease-in-out);
+ font-style: italic;
+
+ small {
+ font-style: normal;
+ display: inline-block;
+ margin-left: 5px;
+ }
+
color: white;
&.playing {
@include typeface(sans-serif);
@include transition(all 0.25s ease-in-out);
color: white;
+ font-style: italic;
+
+ small {
+ font-style: normal;
+ display: inline-block;
+ margin-left: 5px;
+ }
&.playing {
left: 116px;
top: 30px;
+ /*@include font-size(m);
+ @include typeface(serif);
+ font-weight: weight(bold);*/
+
@include font-size(m);
@include typeface(serif);
font-weight: weight(bold);
+ font-style: italic;
span {
- @include font-size(m);
+ /*@include font-size(m);
@include typeface(serif);
font-weight: weight(regular);
- font-style: italic;
+ font-style: italic;*/
+
+ @include font-size(s);
+ @include typeface(serif);
+ font-weight: weight(light);
+ font-style: normal;
}
}
{% with media.media as media %}
{% for transcoded in media.transcoded.all %}
{% if transcoded.mime_type == "audio/mp4" or transcoded.mime_type == "audio/mp3" %}
- <a href="#" data-src="{{ transcoded.url }}">{{ media.title }}</a>
+ <a href="#" data-src="{{ transcoded.url }}"><span>{{ media.title }}</span>{% if media.description %}<small> {{ media.description }}</small>{% endif %}</a>
{% endif %}
{% endfor %}
{% endwith %}
<ol class="video-playlist">
{% endif %}
{% spaceless %}
- <li class="video-playlist__item{% if forloop.first %} playing{% endif %}"><a href="#" data-poster="{{media.poster_url }}" data-src="{% for transcoded in media.transcoded.all %}{% if forloop.first %}{% else %},{% endif %}{{ transcoded.url }}{% if forloop.last %}{% endif %}{% endfor %}" data-mime="{% for transcoded in media.transcoded.all %}{% if forloop.first %}{% else %},{% endif %}{{ transcoded.mime_type }}{% if forloop.last %}{% endif %}{% endfor %}">{{ media.title }}</a></li>
+ <li class="video-playlist__item{% if forloop.first %} playing{% endif %}"><a href="#" data-poster="{{media.poster_url }}" data-src="{% for transcoded in media.transcoded.all %}{% if forloop.first %}{% else %},{% endif %}{{ transcoded.url }}{% if forloop.last %}{% endif %}{% endfor %}" data-mime="{% for transcoded in media.transcoded.all %}{% if forloop.first %}{% else %},{% endif %}{{ transcoded.mime_type }}{% if forloop.last %}{% endif %}{% endfor %}"><span>{{ media.title }}</span>{% if media.description %}<small> {{ media.description }}</small>{% endif %}</a></li>
{% endspaceless %}
{% if forloop.last %}
</ol>