sakrecoer-mother-web/_includes/navmenu.html
2020-07-19 13:39:02 +02:00

28 lines
875 B
HTML

<!-- BEGIN navmenu.html -->
{% include relBase.html %}
<div id="navigation">
{% if page.collection == 'tracks' %}
<a href="{{ relBase }}./#{{ page.uid }}" alt="Back" title="Back">
{% elsif page.url != '/music/' %}
<a href="{{ relBase }}/music/" alt="Music" title="Music">
{% else %}
<a href="{{ relBase }}/" alt="Back" title="About">
{% endif %}
<img src="{{ relBase }}/assets/img/sakrecoer-logo2.svg" width="125px" height="125px" alt="Sakrecoer Logo" />
</a>
</div>
{% if page.collection != 'tracks' %}
<script type="text/javascript">
$(window).scroll(function(){
$("#navigation").css("opacity", 0 + $(window).scrollTop() / 250);
});
</script>
{% else %}
<script type="text/javascript">
$(window).scroll(function(){
$("#navigation").css("opacity", 1 - $(window).scrollTop() / 250);
});
</script>
{% endif %}
<!-- END navmenu.html -->