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