diff --git a/imagehosting/templates/imagehosting/all.html b/imagehosting/templates/imagehosting/all.html index 5b3f92f..53596bb 100644 --- a/imagehosting/templates/imagehosting/all.html +++ b/imagehosting/templates/imagehosting/all.html @@ -18,10 +18,10 @@ var prev = []; var total_w = 0; imgs.each(function (i, e) { - $(this).height(200); - prev[prev.length] = $(e); - total_w += $(e).width(); - if (total_w > row_width) { + $(this).height(200); + prev[prev.length] = $(e); + total_w += $(e).width(); + if (total_w > row_width) { prev = $(prev); prev.each(function (indx, element) {$(element).height(row_width*200/total_w)}); prev = []; diff --git a/imagehosting/templates/imagehosting/base.html b/imagehosting/templates/imagehosting/base.html index 4a15b1b..d99a272 100644 --- a/imagehosting/templates/imagehosting/base.html +++ b/imagehosting/templates/imagehosting/base.html @@ -1,106 +1,106 @@ - - - - - - - +
- new image - all images - + new image + all images +
{% block content %} {% endblock%}