Skip to content

Commit

Permalink
fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaa-bbaa committed Jun 9, 2024
1 parent 4d64391 commit bad6d74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down Expand Up @@ -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());
}
}
Expand Down

0 comments on commit bad6d74

Please sign in to comment.