Fix bugu, kdy se na apríla objeví na chvíli stránka normálně

This commit is contained in:
Pavel "LEdoian" Turinsky 2021-03-31 21:40:33 +02:00
parent afff7973fe
commit f1aa2d6368
2 changed files with 3 additions and 4 deletions

View file

@ -169,10 +169,8 @@
return Math.floor(360*Math.random()); return Math.floor(360*Math.random());
} }
$(document).ready(function(){ $('.container').css('margin', 0);
$('.container').css('margin', 0); rotace_a_posun($('.container'), randomUhel());
rotace_a_posun($('.container'), randomUhel());
});
</script> </script>
{% endif %} {% endif %}
{% render_block "js" %} {% render_block "js" %}

View file

@ -1,4 +1,5 @@
def april(req): def april(req):
return {'april': 2021}
if 'X-April' in req.headers: if 'X-April' in req.headers:
try: try:
year = int(req.headers['X-April']) year = int(req.headers['X-April'])