Working till listing of post

This commit is contained in:
Asutosh Palai
2016-06-18 22:58:48 +05:30
parent 412ad95e56
commit a42ed793c1
4 changed files with 157 additions and 101 deletions

View File

@ -1,6 +1,6 @@
// Your JavaScript
$(function() {
$('.container').find('img').each(function(){
$('.img-center-fill').each(function(){
var parent = $(this).parent();
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
$(this).addClass(imgClass);