Commit 03aa5f47 authored by Simon Daron's avatar Simon Daron

Preparing for multiple audios

parent bb38dac0
......@@ -190,15 +190,15 @@ class Get(TemplateView):
get = Get.as_view()
class Player(TemplateView):
template_name = 'player.html'
class Listen(TemplateView):
template_name = 'listen.html'
def get_context_data(self, **kwargs):
context = super(Player, self).get_context_data(**kwargs)
context = super(Listen, self).get_context_data(**kwargs)
context['player'] = audioPlayer()
return context
player = Player.as_view()
listen = Listen.as_view()
class audioPlayer:
def __init__(self):
......
......@@ -29,7 +29,8 @@ img {max-width:100%;
h1, h2, h3, h4, h5{
font-family: 'RegloBold';
}
h4, h5{
h1, h2{
text-transform: uppercase;
}
h1 { font-size: 6em;}
h2 { font-size: 4em;}
......
......@@ -62,7 +62,6 @@
font-size: 0.9em;
}
h1.title{
text-transform: uppercase;
}
.date, .dateBloc {
font-family: "Reglo";
......
......@@ -9,7 +9,7 @@
</nav>
-->
<header class="mainHeader">
<h1 class="squashed title">{{ emission.title }}</h1>
<h2 class="squashed title">{{ emission.title }}</h2>
</header>
<div class="metas">
{% if schedules %}
......
<!--
<li>{{ episode.first_diffusion|date:"d E o H:i"|lower }}
<br/>   <a href="{{ episode.slug }}/">{{ episode.title }}</a>
{% if episode.has_sound %}<span class="icon-music"/>{%endif%}
</li>
-->
<div class="episode resume episode-resume cf">
<div class="date dateBloc">
<span class="day">
......
{% if src %}
<audio
id="Audio-{{ id }}"
{% if preload %}preload="{{ preload }}"{% endif%}
class="hidden {{ class }}"
src="{{ src }}"
{% if controls %}controls="{{ controls }}"{% endif%}
></audio>
{% endif%}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment