Commit 133adecc authored by Simon Daron's avatar Simon Daron
Browse files

Adding some scroll to help user nav

parent e7865db6
......@@ -14,6 +14,9 @@ $(function() {
*/
var bodyID = html.match(/<body id="(.*?)">/)[1].trim();
$('body').attr('id',bodyID);
$('html, body').animate({
scrollTop: $main.offset().top-$('#metaNav').height()
}, 500);
init();
};
......
......@@ -23,7 +23,7 @@
</head>
<body id="{% block bodyID %}{% endblock %}">
{% block meta %}<div id="metaNav-container">{% include "includes/metaNav.html" %}</div>{% endblock %}
{% block meta %}<div id="metaNav">{% include "includes/metaNav.html" %}</div>{% endblock %}
<div id="Commons">
<div id="Panik">
......
......@@ -16,11 +16,11 @@
{{ episode.first_diffusion|date:"H:i" }}
</span>
</div>
<!--
{% if episode.main_sound %}
<div class="controls right">
{% include "includes/audio.html" with file=episode.main_sound.file %}
</div>
<!--
<div class="controls todo right">
<button class="symbol play">A</button><button class="symbol add">B</button>
</div>
......
<nav id="metaNav" class="contextual-menu">
<nav class="contextual-menu">
<div class="wrapper">
<ul class="distributed">
<!--<li><a href="{% url 'get' %}">☰</a></li>-->
......
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