|
|
@ -879,6 +879,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
var logo = null;
|
|
|
|
var logo = null;
|
|
|
|
var logoSrc = $(linkTag).parents('.game-li').eq(0).find('.img-box').children('img').attr('src');
|
|
|
|
var logoSrc = $(linkTag).parents('.game-li').eq(0).find('.img-box').children('img').attr('src');
|
|
|
|
|
|
|
|
console.log(isImg(logoSrc));
|
|
|
|
if (isImg(logoSrc)) {
|
|
|
|
if (isImg(logoSrc)) {
|
|
|
|
logo = $(linkTag).parents('.game-li').eq(0).find('.img-box').children('img')[0]
|
|
|
|
logo = $(linkTag).parents('.game-li').eq(0).find('.img-box').children('img')[0]
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
@ -909,10 +910,8 @@
|
|
|
|
function isImg(src) {
|
|
|
|
function isImg(src) {
|
|
|
|
var img = new Image();
|
|
|
|
var img = new Image();
|
|
|
|
img.src = src;
|
|
|
|
img.src = src;
|
|
|
|
img.onload = function () {
|
|
|
|
if (img.width > 0 || img.height > 0) {
|
|
|
|
if (img.width > 0 || img.height > 0) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|