|
|
|
@ -586,13 +586,15 @@
|
|
|
|
|
function isImg(src) {
|
|
|
|
|
var img = new Image();
|
|
|
|
|
img.src = src;
|
|
|
|
|
return true;
|
|
|
|
|
if (img.fileSize > 0) {
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getGameLogo(obj) {
|
|
|
|
|
var logo = null;
|
|
|
|
|
var logoSrc = $(obj).parents('.game-li').eq(0).find('.img-box').children('img').attr('src');
|
|
|
|
|
console.log(isImg(logoSrc))
|
|
|
|
|
if (isImg(logoSrc)) {
|
|
|
|
|
logo = $(obj).parents('.game-li').eq(0).find('.img-box').children('img')[0]
|
|
|
|
|
} else {
|
|
|
|
|