mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Added cover image to jumbotron
This commit is contained in:
@ -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);
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user