{% extends "base.html.twig" %} {% block metablock %} {% endblock %} {% block localstyle %} {% if not next is empty %} {% endif %} {% if not prev is empty %} {% endif %}

{{ illustration.name }}

le {{ illustration.submittime|date('d/m/Y H:i') }}
{% autoescape 'html' %} {{ illustration.description|raw }} {% endautoescape %}
{% endblock %} {% block localjavascript %} function resizeImage() { height=$(window).height()-70; $("#illustration_illustration_img").css({height:height,width:'auto'}); width=$(window).width()-90; if($("#illustration_illustration_img").width()>width) $("#illustration_illustration_img").css({width:width,height:'auto'}); height=$("#illustration_illustration_img").height(); $("#bigright").css({height:height,"line-height":height+"px"}); $("#bigleft").css({height:height,"line-height":height+"px"}); } $(document).ready(function() { $('body').imagesLoaded(function() { resizeImage(); $("#illustration_illustration_img").fadeIn(); }); }); $("body").keydown(function(e) { if(e.keyCode == 37) { // left var href = $('#bigleft').attr('href'); if(href!=null) window.location.href = href; } else if(e.keyCode == 39) { var href = $('#bigright').attr('href'); if(href!=null) window.location.href = href; } }); $(window).resize(function() { resizeImage(); }); {% endblock %}