Commit 07397aba authored by bmagnin's avatar bmagnin

Rescaling of images on Image planete

New resizingheight 180 to 150Remove forced width in js (index.html)Add ImgContainer img {max-width:150px; max-height:150px} in css
parent 41d8e4e4
......@@ -154,6 +154,10 @@ a {
vertical-align: top;
}
.imgContainer img{
max-width: 150px;
max-height:150px;
}
.filterContainer{
float: left;
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
......@@ -8,7 +8,7 @@
<script type="text/javascript">
var category = "image";
var thumbnails = true;
var minHeight = 180;
var minHeight = 150;
var minWidth = 150;
var currentIndex = 0;
......@@ -78,12 +78,12 @@
// There is also a result.file property which has the escaped version
if (thumbnails) {
newImg.src = result.file;
if(result.height >= result.width)
/*if(result.height >= result.width)
newImg.height = minHeight;
else{
newImg.width = minWidth;
//newImg.style.margin = (120 - result.height)/2 + "px 0";
}
}*/
} else {
newImg.src = "./images/thumbnail_icon.png";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment