fixing scrolling macaron

This commit is contained in:
Set Sakrecoer 2019-06-18 11:59:16 +02:00
parent a10fbf402b
commit b375fa3784
5 changed files with 77 additions and 57 deletions

18
_includes/rightnow.html Normal file
View file

@ -0,0 +1,18 @@
<div id="rightnow">
{% if site.data.open.open == true %}
<h4>Just Nu:</h4>
<h3>Öppet<br />för almänheten!</h3>
<p>Kom hit!</p>
{% else %}
<h4>Just Nu:</h4>
<h3>Produktion <br />på gång! </h3>
<p>kom tillbaka snart!
<br /><a href="{{ site.baseurl }}/privacy-policy/">Bli stödmedlem</a></p>
{% endif %}
</div>
<script type="text/javascript">
$(window).scroll(function(){
$("#rightnow").css("opacity", 1 - $(window).scrollTop() / 650);
});
</script>