mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-02-09 15:10:53 +00:00
Small bug fix
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
// Your JavaScript
|
// Your JavaScript
|
||||||
$(function() {
|
$(function() {
|
||||||
$('.img-center-fill').each(function(){
|
$('.img-center-fill').load(function(){
|
||||||
var parent = $(this).parent();
|
var parent = $(this).parent();
|
||||||
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
|
var imgClass = (this.width/this.height > parent.width()/parent.height()) ? 'wide' : 'tall';
|
||||||
$(this).addClass(imgClass);
|
$(this).addClass(imgClass);
|
||||||
|
|||||||
Reference in New Issue
Block a user