diff --git a/index.html b/index.html index e1649e8..6950dda 100644 --- a/index.html +++ b/index.html @@ -215,10 +215,12 @@ } $("#result").show(); for (let i = 0; i < resultCards.length; i++) { + let span = $(resultCards[i]).find(".mdui-card-primary-subtitle span"); + span.text(""); $(resultCards[i]) .find(".mdui-card-primary-title") .text(identifior.charList[i + ptr].name); - $($(resultCards[i]).find(".mdui-card-primary-subtitle span")[0]).text( + $(span[0]).text( (identifior.charList[i + ptr].conf * 100).toFixed(2) + "%" ); $(resultCards[i]) @@ -251,7 +253,7 @@ if (imageElement) { imageElement = imageElement.replace(/\|\d+px/g, ""); let FileArg = imageElement.split("|"); - if (FileArg.length >= 4) { + if (FileArg.length >= 3) { $($(resultCards[i]).find(".mdui-card-primary-subtitle span")[1]).text(FileArg.pop()); } }