Added cover image to jumbotron

This commit is contained in:
Asutosh Palai
2016-06-18 15:16:03 +05:30
parent b9e5d057d0
commit 412ad95e56
6 changed files with 133 additions and 103 deletions

View File

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