mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Small bug fix
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// Your JavaScript
|
||||
$(function() {
|
||||
$('.img-center-fill').each(function(){
|
||||
$('.img-center-fill').load(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